module-nginx/tests/vhost_ssl.pp

35 lines
965 B
Puppet
Raw Normal View History

2014-01-14 19:07:17 +01:00
include nginx
2015-03-23 20:40:13 +01:00
nginx::resource::vhost { 'test3.local test3':
ensure => present,
www_root => '/var/www/nginx-default',
ssl => true,
ssl_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
ssl_client_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
ssl_key => 'puppet:///modules/sslkey/whildcard_mydomain.key'
}
2014-01-14 19:07:17 +01:00
nginx::resource::vhost { 'test2.local test2':
ensure => present,
www_root => '/var/www/nginx-default',
ssl => true,
ssl_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
2014-03-30 13:23:43 +02:00
ssl_key => 'puppet:///modules/sslkey/whildcard_mydomain.key'
2014-01-14 19:07:17 +01:00
}
nginx::resource::location { 'test2.local-bob':
ensure => present,
www_root => '/var/www/bob',
location => '/bob',
vhost => 'test2.local test2',
}
2015-03-23 20:40:13 +01:00
nginx::resource::location { 'test3.local-bob':
ensure => present,
www_root => '/var/www/bob',
location => '/bob',
vhost => 'test3.local test3',
}