Skip to content

Instantly share code, notes, and snippets.

@cwage

cwage/-

Created Nov 5, 2016
Embed
What would you like to do?
# puppet apply -v manifests/site.pp --modulepath=modules/ --noop --test
# puppet apply -v manifests/site.pp --modulepath=modules/
node default {
class { 'apache': }
# The non-ssl virtual host
apache::vhost { 'ssltest.quietlife.net non-ssl':
servername => 'ssltest.quietlife.net',
port => '80',
docroot => '/var/www/ssltest.quietlife.net',
}
# The SSL virtual host at the same domain
apache::vhost { 'ssltest.quietlife.net ssl':
servername => 'ssltest.quietlife.net',
port => '443',
docroot => '/var/www/ssltest.quietlife.net',
ssl => true,
ssl_key => '/etc/letsencrypt/live/ssltest.quietlife.net/privkey.pem',
ssl_cert => '/etc/letsencrypt/live/ssltest.quietlife.net/cert.pem',
}
class { ::letsencrypt:
email => 'cwage@quietlife.net',
}
letsencrypt::certonly { 'foo':
domains => ['ssltest.quietlife.net'],
plugin => 'apache',
manage_cron => true
}
# misc packages
package { [
'vim',
'git-core',
]:
ensure => 'installed',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.