diff --git a/examples/init.pp b/examples/init.pp index 91dce99..41cc19d 100644 --- a/examples/init.pp +++ b/examples/init.pp @@ -1,9 +1,9 @@ # The notify before should always come BEFORE all resources # managed by the nginx class # and the notify last should always come AFTER all resources # 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 afc925a..fdaa8cc 100644 --- a/examples/location_alias.pp +++ b/examples/location_alias.pp @@ -1,8 +1,8 @@ -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/', server => 'www.test.com', } diff --git a/examples/location_params.pp b/examples/location_params.pp index 4eaf2fd..88ba452 100644 --- a/examples/location_params.pp +++ b/examples/location_params.pp @@ -1,12 +1,12 @@ -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', fastcgi_param => { 'APP_ENV' => 'production', 'APP_VERSION' => '0.1.10', 'APP_SECRET' => 'hisfaihicasagfkjsa', }, } diff --git a/examples/server.pp b/examples/server.pp index 59c996e..3e74ebc 100644 --- a/examples/server.pp +++ b/examples/server.pp @@ -1,16 +1,16 @@ -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'], ipv6_enable => true, proxy => 'http://proxypass', } diff --git a/examples/server_ssl.pp b/examples/server_ssl.pp index fc34f29..7578bd5 100644 --- a/examples/server_ssl.pp +++ b/examples/server_ssl.pp @@ -1,32 +1,32 @@ -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, 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', } -::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', server => 'test3.local test3', } diff --git a/examples/upstream.pp b/examples/upstream.pp index cd3ecc5..053b97e 100644 --- a/examples/upstream.pp +++ b/examples/upstream.pp @@ -1,19 +1,19 @@ -include ::nginx +include nginx -::nginx::resource::upstream { 'proxypass': +nginx::resource::upstream { 'proxypass': ensure => present, members => { 'localhost:3001' => { server => 'localhost', port => 3000, }, 'localhost:3002' => { server => 'localhost', port => 3002, }, 'localhost:3003' => { server => 'localhost', port => 3003, }, }, }