Issues with example42/php::augeas or with augeas in general

79 views
Skip to first unread message

Joseph Karns

unread,
Feb 9, 2016, 3:51:09 PM2/9/16
to Puppet Users
Hello All:

I started getting failed resources from augeas and I'm hoping someone can help.

The errors:

Warning: Augeas[php_ini-php-error_reporting](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Error: /Stage[main]/Oit_php::Augeas/Php::Augeas[php-error_reporting]/Augeas[php_ini-php-error_reporting]: Could not evaluate: Saving failed, see debug
Warning: Augeas[php_ini-php-session_save_handler](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Error: /Stage[main]/Oit_php::Augeas/Php::Augeas[php-session_save_handler]/Augeas[php_ini-php-session_save_handler]: Could not evaluate: Saving failed, see debug
Warning: Augeas[php_ini-php-session_save_path](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Error: /Stage[main]/Oit_php::Augeas/Php::Augeas[php-session_save_path]/Augeas[php_ini-php-session_save_path]: Could not evaluate: Saving failed, see debug
Warning: Augeas[php_ini-php-date_timezone](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Error: /Stage[main]/Oit_php::Augeas/Php::Augeas[php-date_timezone]/Augeas[php_ini-php-date_timezone]: Could not evaluate: Saving failed, see debug

From Hiera data we call a class that performs a create resource on php::augeas which is from example42/php module

The Hiera data:

oit_php::augeas::entries:
  'php-error_reporting':
    entry: 'PHP/error_reporting'
    value: 'E_ALL & ~E_STRICT & ~E_NOTICE'
    target: '/etc/php.ini'
  'php-session_save_handler':
    entry: 'Session/session.save_handler'
    value: 'memcache'
    target: '/etc/php.ini'
  'php-session_save_path':
    entry: 'Session/session.save_path'
    value: 'tcp://172.31.158.151:11211, tcp://172.28.246.163:11211'
    target: '/etc/php.ini'
  'php-date_timezone':
    entry: 'Date/date.timezone'
    value: 'America/New_York'
    target: '/etc/php.ini'


The Class:

class oit_php::augeas (
  $entries = {},
) {
  create_resources('php::augeas', $entries)
}


Can anyone help?

Thanks
Joey

Felix Frank

unread,
Feb 11, 2016, 5:25:24 PM2/11/16
to puppet...@googlegroups.com
On 02/09/2016 09:51 PM, Joseph Karns wrote:
> Hello All:
>
> I started getting failed resources from augeas and I'm hoping someone
> can help.
>
> The errors:

Hi,

your output asks you to enable debug output to get more information.
Please run again like

puppet agent --test --debug

...or whatever your usual invocation is, but with an added --debug flag.

Thanks,
Felix

Ryan Anderson

unread,
Feb 12, 2016, 7:35:55 AM2/12/16
to Puppet Users
Consider using the file_line resource in puppetlabs-stdlib, augeas is difficult to maintain and troubleshoot.

Joseph Karns

unread,
Feb 12, 2016, 11:04:57 AM2/12/16
to Puppet Users
Thanks everyone for the suggestions....Felix thank you for reminding me of the --debug on the end of a puppet run. This allowed me to find in php.ini that a developer added an extension line of code that is handled else where.

RESOLVED!
Reply all
Reply to author
Forward
0 new messages