Skip to content

Instantly share code, notes, and snippets.

@llowder
Forked from oneandoneis2/Puppet dupe
Last active August 29, 2015 13:57
Show Gist options
  • Save llowder/9891759 to your computer and use it in GitHub Desktop.
Save llowder/9891759 to your computer and use it in GitHub Desktop.
class bb_application(
$domain_name = $::domain
) {
include nginx
include ssl_certs
ssl_certs::install{$domain_name: }
}
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