Skip to content

Commit c4a14b4

Browse files
committed
Merge pull request redhat-openstack#280 from thias/master
Set script's group to 0 if script owner is root
2 parents 30fbfe1 + 9990f2e commit c4a14b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

manifests/setup.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

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

40+
$script_group = $script_owner ? { 'root' => '0', default => undef }
41+
4042
$script_mode = $::osfamily ? { 'windows' => undef, default => '0755' }
4143

4244
$script_command = $::osfamily? {
@@ -51,6 +53,7 @@
5153
file { $script_path:
5254
ensure => file,
5355
owner => $script_owner,
56+
group => $script_group,
5457
mode => $script_mode,
5558
source => "puppet:///modules/concat/${script_name}",
5659
}

0 commit comments

Comments
 (0)