Skip to content

Commit

Permalink
Merge pull request #14 from bsg-sfrazer/master
Browse files Browse the repository at this point in the history
fix permissions on manifest
  • Loading branch information
bsg-sfrazer authored Oct 11, 2019
2 parents 246d663 + a970be0 commit e8ca406
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions manifests/addon.pp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,18 @@
ensure => present,
owner => $owner,
group => $owner,
} ~> exec { "chown -R ${owner}:${owner} ${_splunk_home}/etc/apps/${name}":
cwd => "${_splunk_home}",
} ~> exec { "chmod u+rw,g+rw -R ${_splunk_home}/etc/apps/${name}":
cwd => "${_splunk_home}",
}
exec { "chown -R ${owner}:${owner} ${_splunk_home}/etc/apps/${name}":
subscribe => [
File["${addon_creates}"]
],
refreshonly => true,
}
exec { "chmod u+rw,g+rw -R ${_splunk_home}/etc/apps/${name}":
subscribe => [
File["${addon_creates}"]
],
refreshonly => true,
}
} else {
package { $package_name:
Expand Down

0 comments on commit e8ca406

Please sign in to comment.