Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-1045

Settings in puppet.conf not available in puppet itself

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Module
    • Labels:
    • Environment:

      All

    • Template:
    • Story Points:
      1
    • UX Priority:
      Major

      Description

      Here is an example from puppetdb module.
      It hard codes the location of puppet configuration directory.

      ./params.pp:    $puppet_confdir       = '/etc/puppetlabs/puppet'
      ./params.pp:    $puppet_confdir       = '/etc/puppet'
      ./params.pp:    $puppet_conf           = "${puppet_confdir}/puppet.conf"
      

      So puppet can not self manage it's self if the confdir is different. Either hard code the conf dir and do not allow it to be changed in /etc/puppet/puppet.conf or on the command line. Or create special facts for puppet.conf so modules can find the correct confdir

      I suggest you create a test bed with /etc/puppet/puppet.conf with

      [main]
        confdir=/tmp/puppet
      [agent]
        vardir=/var/lib/puppet
      

      And see what breaks.

      See also https://tickets.puppetlabs.com/browse/PUP-3674

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            damona Damon Atkins
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support