Skip to content

Commit

Permalink
Use absolute classes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Apr 6, 2019
1 parent 798cbb4 commit d62728f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/init.pp
Expand Up @@ -4,6 +4,6 @@
# managed by the nginx class.
node default {
notify { 'before': }
-> class { '::nginx': }
-> class { 'nginx': }
-> notify { 'last': }
}
4 changes: 2 additions & 2 deletions examples/location_alias.pp
@@ -1,6 +1,6 @@
include ::nginx
include nginx

::nginx::resource::location { 'www.test.com-alias':
nginx::resource::location { 'www.test.com-alias':
ensure => present,
location => '/some/url',
location_alias => '/new/url/',
Expand Down
4 changes: 2 additions & 2 deletions examples/location_params.pp
@@ -1,6 +1,6 @@
include ::nginx
include nginx

::nginx::resource::location { 'www.test.com-params':
nginx::resource::location { 'www.test.com-params':
ensure => present,
location => '/some/url',
server => 'www.test.com',
Expand Down
6 changes: 3 additions & 3 deletions examples/server.pp
@@ -1,12 +1,12 @@
include ::nginx
include nginx

::nginx::resource::server { 'test.local test':
nginx::resource::server { 'test.local test':
ensure => present,
ipv6_enable => true,
proxy => 'http://proxypass',
}

::nginx::resource::server { 'test.local:8080':
nginx::resource::server { 'test.local:8080':
ensure => present,
listen_port => 8080,
server_name => ['test.local test'],
Expand Down
10 changes: 5 additions & 5 deletions examples/server_ssl.pp
@@ -1,6 +1,6 @@
include ::nginx
include nginx

::nginx::resource::server { 'test3.local test3':
nginx::resource::server { 'test3.local test3':
ensure => present,
www_root => '/var/www/nginx-default',
ssl => true,
Expand All @@ -9,22 +9,22 @@
ssl_key => 'puppet:///modules/sslkey/whildcard_mydomain.key',
}

::nginx::resource::server { 'test2.local test2':
nginx::resource::server { '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':
nginx::resource::location { 'test2.local-bob':
ensure => present,
www_root => '/var/www/bob',
location => '/bob',
server => 'test2.local test2',
}

::nginx::resource::location { 'test3.local-bob':
nginx::resource::location { 'test3.local-bob':
ensure => present,
www_root => '/var/www/bob',
location => '/bob',
Expand Down
4 changes: 2 additions & 2 deletions examples/upstream.pp
@@ -1,6 +1,6 @@
include ::nginx
include nginx

::nginx::resource::upstream { 'proxypass':
nginx::resource::upstream { 'proxypass':
ensure => present,
members => {
'localhost:3001' => {
Expand Down

0 comments on commit d62728f

Please sign in to comment.