Skip to content

Commit

Permalink
(PUP-3997) Create site.pp with root:root permissions
Browse files Browse the repository at this point in the history
Previously, the test created a `site.pp` on agent nodes without
specifying the owner and group, so the `create_test_file` method
defaulted the owner and group to `puppet`. However, the `puppet` user
isn't present on agent-only hosts.

This commit modifies the test to specify owner and group as `root`. The
test is confined to not run on Windows agents, so this is not an issue.
  • Loading branch information
joshcooper committed Feb 28, 2015
1 parent 500c7e0 commit ed7e048
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -10,7 +10,7 @@
agents.each do |agent|
logdir = get_test_file_path(agent, 'log')

create_test_file(agent, 'site.pp', <<-SITE)
create_test_file(agent, 'site.pp', <<-SITE, :owner => 'root', :group => 'root')
node default {
notify { puppet_run: }
}
Expand Down

0 comments on commit ed7e048

Please sign in to comment.