Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Needs Assessment
-
Needs Assessment
Description
.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…
Desired Behavior:
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:
[root@b3wa4ws5mg41efr ~]# puppet apply --codedir /tmp/configure_inifile.aPkO3n -e 'ini_setting { "JAVA_ARGS":
|
ensure => present,
|
path => "/etc/sysconfig/puppetserver",
|
section => "",
|
setting => "JAVA_ARGS",
|
key_val_separator => "=",
|
value => "\"-Xmx2g -Xms2g -XX:+PrintTenuringDistribution -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/var/log/puppetlabs/puppetserver/gc.log\"",
|
}'
|
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"
Actual Behavior:
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.
Attachments
Issue Links
- relates to
-
PUP-8442 type parameters do not honor when default is set to false
-
- Accepted
-
-
MODULES-6825 puppet_agent 1.6.0
-
- Closed
-
-
MODULES-6723 Supported Release (inifile) 2.2.1 - (04/13/2018) - (d8a6aeda01b95fbd98d13e7bc96c5f76425140cd)
-
- Resolved
-