diff --git a/examples/init.pp b/examples/init.pp index 91dce9973..41cc19dec 100644 --- a/examples/init.pp +++ b/examples/init.pp @@ -4,6 +4,6 @@ # managed by the nginx class. node default { notify { 'before': } - -> class { '::nginx': } + -> class { 'nginx': } -> notify { 'last': } } diff --git a/examples/location_alias.pp b/examples/location_alias.pp index afc925a69..fdaa8cc70 100644 --- a/examples/location_alias.pp +++ b/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/', diff --git a/examples/location_params.pp b/examples/location_params.pp index 4eaf2fd78..88ba452f0 100644 --- a/examples/location_params.pp +++ b/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', diff --git a/examples/server.pp b/examples/server.pp index 59c996e1d..3e74ebc80 100644 --- a/examples/server.pp +++ b/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'], diff --git a/examples/server_ssl.pp b/examples/server_ssl.pp index fc34f29b8..7578bd579 100644 --- a/examples/server_ssl.pp +++ b/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, @@ -9,7 +9,7 @@ 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, @@ -17,14 +17,14 @@ 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', diff --git a/examples/upstream.pp b/examples/upstream.pp index cd3ecc5e5..053b97e1b 100644 --- a/examples/upstream.pp +++ b/examples/upstream.pp @@ -1,6 +1,6 @@ -include ::nginx +include nginx -::nginx::resource::upstream { 'proxypass': +nginx::resource::upstream { 'proxypass': ensure => present, members => { 'localhost:3001' => {