Skip to content

Instantly share code, notes, and snippets.

@binford2k
Last active June 26, 2019 22:10
Show Gist options
  • Save binford2k/641452c706bb2cd543f8b334515ce002 to your computer and use it in GitHub Desktop.
Save binford2k/641452c706bb2cd543f8b334515ce002 to your computer and use it in GitHub Desktop.
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