Skip to content

Instantly share code, notes, and snippets.

@Tombar
Created June 5, 2013 19:05
Show Gist options
  • Save Tombar/5716311 to your computer and use it in GitHub Desktop.
Save Tombar/5716311 to your computer and use it in GitHub Desktop.
augeas { '/etc/php5/fpm/php-fpm.conf custom_log_settings':
lens => 'Php.aug',
incl => '/etc/php5/fpm/php-fpm.conf',
context => '/files/etc/php5/fpm/php-fpm.conf',
changes => [
'set global/error_log "/var/log/php/php5-fpm.log" ',
'set global/log_level debug',
],
require => Package['libaugeas-ruby']
}
augeas { '/etc/php5/fpm/php-fpm.conf custom_perf_settings':
lens => 'Php.aug',
incl => '/etc/php5/fpm/php-fpm.conf',
context => '/files/etc/php5/fpm/php-fpm.conf',
changes => [
'set /files/etc/php5/fpm/php-fpm.conf/global/rlimit_core 32768',
'set /files/etc/php5/fpm/php-fpm.conf/global/events.mechanism epoll',
],
require => Package['libaugeas-ruby']
}
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Opening augeas with root /, lens path , flags 64
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Augeas version 0.10.0 is installed
Warning: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Will attempt to save and only run if files changed
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): sending command 'set' with params ["/files/etc/php5/fpm/php-fpm.conf/global/rlimit_core", "32768"]
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): sending command 'set' with params ["/files/etc/php5/fpm/php-fpm.conf/global/events.mechanism", "epoll"]
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Put failed on one or more files, output from /augeas//error:
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Closed the augeas connection
Error: /Stage[main]//Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings]: Could not evaluate: Save failed with return code false, see debug
Debug: /Schedule[never]: Skipping device resources because running on a host
Debug: /Schedule[weekly]: Skipping device resources because running on a host
Debug: /Schedule[puppet]: Skipping device resources because running on a host
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): Opening augeas with root /, lens path , flags 64
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): Augeas version 0.10.0 is installed
Warning: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): Will attempt to save and only run if files changed
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): sending command 'set' with params ["/files/etc/php5/fpm/php-fpm.conf/global/error_log", "/var/log/php/php5-fpm.log"]
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): sending command 'set' with params ["/files/etc/php5/fpm/php-fpm.conf/global/log_level", "debug"]
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): Put failed on one or more files, output from /augeas//error:
Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings](provider=augeas): Closed the augeas connection
Error: /Stage[main]//Augeas[/etc/php5/fpm/php-fpm.conf custom_log_settings]: Could not evaluate: Save failed with return code false, see debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment