Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2997

Logdest cannot be set in the puppet.conf

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.8.7, PUP 4.8.1, PUP 4.10.10, PUP 5.5.0
    • Fix Version/s: PUP 5.5.7, PUP 6.0.3
    • Component/s: None
    • Labels:
    • Template:
    • Epic Link:
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • CS Priority:
      Normal
    • CS Frequency:
      2 - 5-25% of Customers
    • CS Severity:
      3 - Serious
    • CS Business Value:
      4 - $$$$$
    • CS Impact:
      Hide
      Users sometimes want to send their logs to a different location and have this work for ALL invocations of puppet(daemon or CLI). Example cases mentioned in this ticket are to send everything to splunk, or to make the puppet logs available to less privileged users. The wrapper script that was added in Puppet 5 could be modified to source a logdest from some other file such as puppet.conf or if that isn't workable something like environment settings such as sysconfig
      Show
      Users sometimes want to send their logs to a different location and have this work for ALL invocations of puppet(daemon or CLI). Example cases mentioned in this ticket are to send everything to splunk, or to make the puppet logs available to less privileged users. The wrapper script that was added in Puppet 5 could be modified to source a logdest from some other file such as puppet.conf or if that isn't workable something like environment settings such as sysconfig
    • Release Notes:
      New Feature
    • Release Notes Summary:
      The `--logdest` argument can now also be set in the puppet.conf file as the `logdest` setting.

      Description

      This is potentially a duplicate issue of a few things floating around out there, but most focus on masterlog, so I'm opening this up separately. Currently you can use --logdest /var/log/somelogfile, but you cannot set it in the puppet.conf. This seems like an oversight, especially since there seems to be a good number of people who wish to keep all puppet logs out of /var/log/messages. There are ways around this (etc/init.d/pe-puppet), but they are purely workarounds. It looks like some of the reason for this is the old masterlog option, which it seems is no longer in use, used to be the preferred way of setting in the puppet.conf.

      Potentially related tickets:
      https://projects.puppetlabs.com/issues/5952
      https://projects.puppetlabs.com/issues/4550
      https://projects.puppetlabs.com/issues/12361

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  jacob.helwig Jacob Helwig
                  Reporter:
                  redmine.exporter redmine.exporter
                • Votes:
                  6 Vote for this issue
                  Watchers:
                  19 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: