Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6687

inifile no longer manages existing lines in puppet post 5.4.0

    XMLWordPrintable

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

          Activity

            People

              eric.putnam Eric Putnam
              matthaus Past Haus
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support