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

inifile module creating duplicate records

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: wsus 0.1.3
    • Fix Version/s: None
    • Component/s: inifile
    • Labels:
      None
    • Environment:

      running puppetlabs-inifile 1.4.1, puppetserver 2.1.1, puppet-agent 1.2.2 on centos7.

    • Template:

      Description

      I want to manage a file using the inifile module. It seems to work fine, but every time I run puppet, it adds the exact same line again. Here's my config:

      ini_setting

      { '[manifests] path': ensure => present, section => 'manifests', setting => 'path', value => '/etc/puppetlabs/code/environments/production/manifests', key_val_separator => ' ', path => '/etc/puppetlabs/puppet/fileserver.conf', }

      ini_setting

      { '[manifests] allow': ensure => present, section => 'manifests', setting => 'allow', value => '*', key_val_separator => ' ', path => '/etc/puppetlabs/puppet/fileserver.conf', }

      After deleting the file and running puppet agent three times, the file shows:

      [manifests]
      path /etc/puppetlabs/code/environments/production/manifests
      allow *
      path /etc/puppetlabs/code/environments/production/manifests
      allow *
      path /etc/puppetlabs/code/environments/production/manifests
      allow *

      Is there a way I can have it just manage the keys, and not create new lines all the time?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              AxisNL Angelo Hongens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support