Skip to content

Commit

Permalink
Merge pull request redhat-openstack#280 from thias/master
Browse files Browse the repository at this point in the history
Set script's group to 0 if script owner is root
  • Loading branch information
hunner committed Mar 16, 2015
2 parents 30fbfe1 + 9990f2e commit c4a14b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/setup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

$script_owner = $::osfamily ? { 'windows' => undef, default => $::id }

$script_group = $script_owner ? { 'root' => '0', default => undef }

$script_mode = $::osfamily ? { 'windows' => undef, default => '0755' }

$script_command = $::osfamily? {
Expand All @@ -51,6 +53,7 @@
file { $script_path:
ensure => file,
owner => $script_owner,
group => $script_group,
mode => $script_mode,
source => "puppet:///modules/concat/${script_name}",
}
Expand Down

0 comments on commit c4a14b4

Please sign in to comment.