Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit cddd4e7

Browse files
authored
Merge pull request #2491 from codeenigma/r72636-opcache-config-update-PR-devel-2.x
R72636 opcache config update pr devel 2.x
2 parents 25e050e + c71a765 commit cddd4e7

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

roles/debian/php-cli/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ php:
3939
memory_consumption: 128
4040
max_accelerated_files: 2000
4141
validate_timestamps: 1
42+
interned_strings_buffer: 8
4243

4344
```
4445

roles/debian/php-cli/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ php:
2929
memory_consumption: 128
3030
max_accelerated_files: 2000
3131
validate_timestamps: 1
32+
interned_strings_buffer: 8

roles/debian/php-cli/templates/php.cli.ini.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ opcache.enable_cli={{ php.cli.opcache.enable_cli }}
17391739
opcache.memory_consumption={{ php.cli.opcache.memory_consumption }}
17401740

17411741
; The amount of memory for interned strings in Mbytes.
1742-
;opcache.interned_strings_buffer=4
1742+
opcache.interned_strings_buffer={{ php.cli.opcache.interned_strings_buffer }}
17431743

17441744
; The maximum number of keys (scripts) in the OPcache hash table.
17451745
; Only numbers between 200 and 100000 are allowed.

roles/debian/php-fpm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ php:
6464
memory_consumption: 128
6565
max_accelerated_files: 2000
6666
validate_timestamps: 1
67+
interned_strings_buffer: 8
6768
clear_env: "yes"
6869

6970
```

roles/debian/php-fpm/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ php:
5454
memory_consumption: 128
5555
max_accelerated_files: 2000
5656
validate_timestamps: 1
57+
interned_strings_buffer: 8
5758
clear_env: "yes"
5859
# Cloudwatch log settings.
5960
log_group_prefix: ""

roles/debian/php-fpm/templates/php.fpm.ini.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ opcache.enable_cli={{ php.fpm.opcache.enable_cli }}
17391739
opcache.memory_consumption={{ php.fpm.opcache.memory_consumption }}
17401740

17411741
; The amount of memory for interned strings in Mbytes.
1742-
;opcache.interned_strings_buffer=4
1742+
opcache.interned_strings_buffer={{ php.fpm.opcache.interned_strings_buffer }}
17431743

17441744
; The maximum number of keys (scripts) in the OPcache hash table.
17451745
; Only numbers between 200 and 100000 are allowed.

roles/debian/sudo_config/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
state: directory
66
mode: "0750"
77

8-
- name: Create temporary directory for sudoers validation
8+
- name: Create temporary directory for sudoers validation.
99
ansible.builtin.tempfile:
1010
state: directory
1111
suffix: sudoers
1212
register: temp_sudoers_dir
1313
when: sudo_config | default([]) | length > 0
1414

15-
- name: Create sudoers file for validation
15+
- name: Create sudoers file for validation.
1616
ansible.builtin.template:
1717
src: "sudoer.j2"
1818
dest: "{{ temp_sudoers_dir.path }}/{{ item.filename }}"
@@ -23,7 +23,7 @@
2323
with_items: "{{ sudo_config if sudo_config is iterable and sudo_config is not mapping else [sudo_config] }}"
2424
register: sudo_templates
2525

26-
- name: Validate sudoers file on remote
26+
- name: Validate sudoers file on remote.
2727
ansible.builtin.command: "visudo -cf {{ temp_sudoers_dir.path }}/{{ item.filename }}"
2828
register: visudo_check
2929
failed_when: visudo_check.rc != 0
@@ -34,7 +34,7 @@
3434
label: "{{ item.filename }}"
3535
delegate_to: "{{ inventory_hostname }}"
3636

37-
- name: Install validated sudoers file
37+
- name: Install validated sudoers file.
3838
ansible.builtin.copy:
3939
src: "{{ temp_sudoers_dir.path }}/{{ item.filename }}"
4040
dest: "/etc/sudoers.d/{{ item.filename }}"
@@ -45,7 +45,7 @@
4545
when: item.entity_name | default('') | length > 0
4646
with_items: "{{ sudo_config if sudo_config is iterable and sudo_config is not mapping else [sudo_config] }}"
4747

48-
- name: Clean up temporary files
48+
- name: Clean up temporary files.
4949
ansible.builtin.file:
5050
path: "{{ temp_sudoers_dir.path }}"
5151
state: absent

0 commit comments

Comments
 (0)