.comm*Puppet Version: f77e9e00efcf9bd8dac66c6622f35cbe16c8eb7a (5.5.0)*
Puppet Server Version: (5.2.0)
OS Name/Version: Rhel 7
Describe your issue in as much detail as possible…
Describe steps to reproduce…
Even when using a codedir with only the inifile module installed, it should work.
In this example, /tmp/configure_inifile.aPkO3n is a tmpdir with just the inifile module installed.
An inifile resource such as the following should modify the existing java_args line:
In this case the value of JAVA_ARGS in the file is JAVA_ARGS="-Xms2g -Xmx2g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger"
It does not. inifile seems to be able to remove lines and add lines that don't already exist, but modifying existing lines does not work. Unfortunately even with --trace, --verbose and --debug there isn't anything useful coming out of the module. Note: this seems to only be the case when inifile is installed in its own codedir and puppet apply --codedir $codedir is used. When inifile is present in /etc/puppetlabs/code/environments/production/modules/inifile with other modules the resource behaves as expected.