Last active
June 26, 2019 22:10
-
-
Save binford2k/641452c706bb2cd543f8b334515ce002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define dir_perm ($path = $title) { | |
file { $path: | |
ensure => directory, | |
mode => '0755', | |
notify => Exec["dir_perm ${path}"], | |
} | |
exec { "dir_perm ${path}": | |
command => "find ${path} -type f -exec chmod 644 {} \;", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment