Skip to content

Commit

Permalink
Fix permissions of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Dec 20, 2023
1 parent cd20232 commit 10387fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_terraform_self.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
rescue Errno::EEXIST
end
FileUtils.chown 'root', 'puppet', '/etc/puppetlabs/data/nodes'
FileUtils.chmod 0644, '/etc/puppetlabs/data/nodes'
FileUtils.chmod 0640, '/etc/puppetlabs/data/nodes'
instances.each do | name, values |
filename = '/etc/puppetlabs/data/nodes/%s.yaml' % name
self_hash = { 'terraform' => { 'instances' => { 'self' => values } } }
Expand Down

0 comments on commit 10387fa

Please sign in to comment.