update tests
This commit is contained in:
parent
a4ddf886b2
commit
f4d543e0e9
3 changed files with 19 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
|||
include nginx
|
||||
|
||||
nginx::resource::vhost { 'test.local':
|
||||
nginx::resource::vhost { 'test.local test':
|
||||
ensure => present,
|
||||
ipv6_enable => true,
|
||||
proxy => 'http://proxypass',
|
||||
|
@ -9,7 +9,7 @@ nginx::resource::vhost { 'test.local':
|
|||
nginx::resource::vhost { 'test.local:8080':
|
||||
ensure => present,
|
||||
listen_port => 8080,
|
||||
server_name => 'test.local',
|
||||
server_name => ['test.local test'],
|
||||
ipv6_enable => true,
|
||||
proxy => 'http://proxypass',
|
||||
}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
include nginx
|
||||
|
||||
nginx::resource::vhost { 'test2.local':
|
||||
ensure => present,
|
||||
www_root => '/var/www/nginx-default',
|
||||
ssl => 'true',
|
||||
ssl_cert => '/tmp/server.crt',
|
||||
ssl_key => '/tmp/server.pem',
|
||||
}
|
||||
|
||||
nginx::resource::location { 'test2.local-bob':
|
||||
ensure => present,
|
||||
www_root => '/var/www/bob',
|
||||
location => '/bob',
|
||||
vhost => 'test2.local',
|
||||
}
|
||||
|
17
tests/vhost_ssl.pp
Normal file
17
tests/vhost_ssl.pp
Normal file
|
@ -0,0 +1,17 @@
|
|||
include nginx
|
||||
|
||||
nginx::resource::vhost { 'test2.local test2':
|
||||
ensure => present,
|
||||
www_root => '/var/www/nginx-default',
|
||||
ssl => true,
|
||||
ssl_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
|
||||
ssl_key => 'puppet:///modules/sslkey/whildcard_mydomain.key'
|
||||
}
|
||||
|
||||
nginx::resource::location { 'test2.local-bob':
|
||||
ensure => present,
|
||||
www_root => '/var/www/bob',
|
||||
location => '/bob',
|
||||
vhost => 'test2.local test2',
|
||||
}
|
||||
|
Loading…
Reference in a new issue