Skip to content

Instantly share code, notes, and snippets.

@Tombar
Created June 5, 2013 18:32
Show Gist options
  • Save Tombar/5716077 to your computer and use it in GitHub Desktop.
Save Tombar/5716077 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',
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/fpom/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): 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): 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
Debug: Executing '/etc/init.d/php5-fpm status'
Debug: Executing '/etc/init.d/php5-fpm start'
Notice: /Stage[main]/Php::Fpm::Service/Service[php5-fpm]/ensure: ensure changed 'stopped' to 'running'
Debug: /Stage[main]/Php::Fpm::Service/Service[php5-fpm]: The container Class[Php::Fpm::Service] will propagate my refresh event
Debug: Class[Php::Fpm::Service]: The container Stage[main] will propagate my refresh event
Debug: Finishing transaction 22151820
Debug: Storing state
Debug: Stored state in 0.17 seconds
Notice: Finished catalog run in 13.73 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment