Skip to content

Commit 89f3f19

Browse files
committed
(PUP-11000) Change agent_disabled_lockfile setting type to string
There is a race condition that can cause parallel or rapid puppet agent runs to truncate the agent_disabled_lockfile. This changes the setting type to string to ensure that a file resource is not added to the catalog.
1 parent bc4f0a4 commit 89f3f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/defaults.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ def self.initialize_default_settings!(settings)
17681768
},
17691769
:agent_disabled_lockfile => {
17701770
:default => "$statedir/agent_disabled.lock",
1771-
:type => :file,
1771+
:type => :string,
17721772
:desc => "A lock file to indicate that puppet agent runs have been administratively
17731773
disabled. File contains a JSON object with state information.",
17741774
},

0 commit comments

Comments
 (0)