Skip to content

Commit

Permalink
manage base directory with recurse to fix owner/group permissions (vo…
Browse files Browse the repository at this point in the history
  • Loading branch information
slauger committed Jul 25, 2018
1 parent 2dfb489 commit a082a7e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions manifests/daemon.pp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@
'url': {
if $download_extension == '' {
file { "/opt/${name}-${version}.${os}-${arch}":
ensure => directory,
owner => 'root',
group => 0, # 0 instead of root because OS X uses "wheel".
mode => '0755',
ensure => directory,
owner => 'root',
group => 0, # 0 instead of root because OS X uses "wheel".
mode => '0755',
recurse => true,
}
-> archive { "/opt/${name}-${version}.${os}-${arch}/${name}":
ensure => present,
Expand All @@ -97,10 +98,11 @@
}
} else {
file { "/opt/${name}-${version}.${os}-${arch}":
ensure => directory,
owner => 'root',
group => 0, # 0 instead of root because OS X uses "wheel".
mode => '0755',
ensure => directory,
owner => 'root',
group => 0, # 0 instead of root because OS X uses "wheel".
mode => '0755',
recurse => true,
}
-> archive { "/tmp/${name}-${version}.${download_extension}":
ensure => present,
Expand Down

0 comments on commit a082a7e

Please sign in to comment.