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

Ini_file module does not recognize section names with forward slashes in them

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: inifile
    • Labels:
    • Template:
    • Story Points:
      1
    • Sprint:
      MODS July 9 (PE 3.3, GA 07/01)

      Description

      In order to configure parts of splunk there are ini section names that need to include forward slashes in them.

      http://docs.splunk.com/Documentation/Splunk/6.1.1/admin/inputsconf

      Here's an example ini_setting that reproduces the issue:

        ini_setting { "example_setting":  
          ensure => present,  
          section => "monitor:///var/log/*.log",  
          path => '/tmp/test.conf',  
          setting => "disabled",  
          value => 'test_value',  
        }  
      

      On the first puppet run the section is created, but subsequent puppet runs do not recognize the section and it is continually recreated on each run.

      [monitor:///var/log/*.log]
      disabled = test_value
       
      [monitor:///var/log/*.log]
      disabled = test_value
       
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              hunter Hunter (Hunner) Haugen
              Reporter:
              nick.walker Nick Walker
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support