Skip to content

Instantly share code, notes, and snippets.

@initcron
Created June 20, 2015 09:32
Show Gist options
  • Select an option

  • Save initcron/3106ab4d779286b93e04 to your computer and use it in GitHub Desktop.

Select an option

Save initcron/3106ab4d779286b93e04 to your computer and use it in GitHub Desktop.
nginx::configure class with static files. part of 003 modules chapter
class nginx::configure{
file { '/var/www':
ensure => directory,
}
file { '/var/www/cinema':
ensure => directory,
}
file { '/var/www/cinema/index.html':
ensure => file,
source => 'puppet:///modules/nginx/index.html',
}
file { '/etc/nginx/conf.d/default.conf':
source => 'puppet:///modules/nginx/cinema.conf',
notify => Service['nginx'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment