Last active
September 26, 2016 12:04
-
-
Save Alveel/0e62c92d33ba43aed232a2ae30b5542b to your computer and use it in GitHub Desktop.
This file contains 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
Tree | |
/etc/puppet/environments/production/applications/myapplication | |
manifest/nginx.pp | |
templates/nginx/rewrites.erb | |
In the nginx class in nginx.pp | |
file { $nginx_rules_location: | |
mode => '0664', | |
owner => 'liferay', | |
group => 'liferay', | |
content => template("${module_name}/nginx/rewrites.erb"), | |
tag => ['nginx_rules'], | |
} |
Using content => template("file")
instead of source => 'puppet:///file'
.
Also using double quotes instead of single, otherwise puppet can't extrapolate ${module_name}.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using puppet-nginx module from https://github.com/Proteon/puppet-nginx