-
-
Save llowder/9891759 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
class bb_application( | |
$domain_name = $::domain | |
) { | |
include nginx | |
include ssl_certs | |
ssl_certs::install{$domain_name: } | |
} |
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
define install_nginx ( | |
$virtual_hostname, | |
$backend_port, | |
$perl_version="perl-5.16.3" | |
) { | |
file { | |
"/etc/nginx/sites-enabled/${name}.conf": | |
ensure => "present", | |
mode => "0644", | |
owner => "root", | |
group => "root", | |
content => template('nginx/nginx_virtual_host.conf'), | |
notify => Service['nginx'], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment