Guy,
The way augeas works is each lens has filters for which files it
should include and exclude. The --noload switch tells augtool not to
automatically load the lenses in /usr/share/augeas/ so it does not see
these filters. You then have to manually load a lens and tell it
which files to parse.
The PHP lens on my machine for example includes the following files by default.
augtool> print /augeas/load/PHP/incl
/augeas/load/PHP/incl[1] = "/usr/local/zend/etc/conf.d/*.ini"
/augeas/load/PHP/incl[2] = "/usr/local/zend/etc/php.ini"
/augeas/load/PHP/incl[3] = "/etc/php.d/*.ini"
/augeas/load/PHP/incl[4] = "/etc/php.ini"
/augeas/load/PHP/incl[5] = "/etc/php*/*/*.ini"
What version of puppet are you using? There is a patch in newer
versions that prints the output of /augeas//error when --debug is used
but if you are like me and stuck on an older version you won't get get
/augeas//error.
Instead of using context can you try using a fully qualified set
statement? I did find a case where context failed me.
augeas { 'set_php_errorlog':
notify => Service['php5-fpm'],
require => Package['php5-fpm'],
changes => [
"set /files/etc/php5/fpm/php.ini/PHP/error_log /var/log/php/php.log",
],
}
-Alan