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

puppet agent option to wait for lock

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.16.0
    • None
    • Night's Watch
    • 3
    • NW - 2020-04-01, NW - 2020-04-15, NW - 2020-05-13, NW - 2020-05-27
    • Reviewed
    • 33323
    • 1
    • New Feature
    • Hide
      Before this commit, an agent run would immediately exit if there was an already ongoing instance.

      Two CLI arguments/puppet configuration settings were added in aid of this issue.

      Waitforlock: How frequently puppet agent should try running when there is an already ongoing puppet agent instance.

      Maxwaitforlock: The maximum amount of time the puppet agent should wait for an already running puppet agent to finish before starting a new one.
      Show
      Before this commit, an agent run would immediately exit if there was an already ongoing instance. Two CLI arguments/puppet configuration settings were added in aid of this issue. Waitforlock: How frequently puppet agent should try running when there is an already ongoing puppet agent instance. Maxwaitforlock: The maximum amount of time the puppet agent should wait for an already running puppet agent to finish before starting a new one.
    • Needs Assessment

    Description

      Please add an option to make puppet agent wait for the lock to become available and then run. As is I often end up retrying multiple times, or setting up a while loop to check for the presence of the lock file.

      For example, puppet agent --waitforlock --test or puppet agent -Wt.

      This should also work for the agent's ssl lock

      Attachments

        Issue Links

          Activity

            People

              dorin.pleava Dorin Pleava
              daniel.parks Daniel Parks
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support