Created
June 20, 2015 09:32
-
-
Save initcron/3106ab4d779286b93e04 to your computer and use it in GitHub Desktop.
nginx::configure class with static files. part of 003 modules chapter
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
| 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