Skip to content

Instantly share code, notes, and snippets.

@masterzen
Created January 28, 2010 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masterzen/288882 to your computer and use it in GitHub Desktop.
Save masterzen/288882 to your computer and use it in GitHub Desktop.
file { "/etc/nginx/$name":
ensure => $ensure,
mode => 0644, owner => root, group => 0,
checksum => md5,
require => Package[$nginx_package],
notify => Exec["reload-nginx"]
}
case $source {
'': { }
default: { File[$name] { source => $source } }
}
case $content {
'': { }
default: { File[$name] { content => $content } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment