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

Track changes made to key_val_separator for ini_setting

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: inifile
    • Labels:
    • Template:

      Description

      If an ini_setting resource has already been created, changes to the key_val_seperator are not tracked. This is problematic, because in some cases a user may want to change key_val_seperator, possibly due to spacing issues, and the change will not take. The only workaround is to ensure the resource is absent, perform a run, then flip the resource back to present.

      Example:

      ini_setting { 'network-nisdomain': 
      ensure => present, 
      path => '/etc/sysconfig/network', 
      section => '', 
      setting => 'NISDOMAIN', 
      value => 'something.foo.com', 
      }
      

      And then changed it to:

      ini_setting { 'network-nisdomain': 
      ensure => present, 
      path => '/etc/sysconfig/network', 
      section => '', 
      setting => 'NISDOMAIN', 
      value => 'something.foo.com', 
      key_val_separator => '=', 
      }
      

      Results in no changes made.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jay Jay Wallace
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support