Skip to content

Commit 5f2010e

Browse files
committed
2 parents f32f942 + 76cc999 commit 5f2010e

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

.fixtures.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fixtures:
44
"monitor": "git://github.com/example42/puppet-monitor.git"
55
"firewall": "git://github.com/example42/puppet-firewall.git"
66
"iptables": "git://github.com/example42/puppet-iptables.git"
7-
"concat": "git://github.com/example42/puppet-concat.git"
7+
"concat": "https://github.com/puppetlabs/puppet-concat.git"
88
symlinks:
99
"nginx": "#{source_dir}"
1010

Modulefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ source 'https://github.com/example42/puppet-nginx'
88
summary 'Puppet module for nginx'
99
description 'This module installs and manages nginx. Check README.rdoc for details. Puppi is required for some common functions: you can install them without using the whole module. Monitor and firewall dependencies are needed only if the relevant features are enabled'
1010
dependency 'example42/puppi', '>=2.0.0'
11-
dependency 'ripienaar/concat', '>=0.0.1'
11+
dependency 'puppetlabs/concat', '>=1.0.0'
1212
dependency 'example42/firewall', '>=2.0.0'
1313
dependency 'example42/monitor', '>=2.0.0'

manifests/resource/location.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
default => file,
7878
}
7979

80-
$file_real = "${nginx::config_dir}/${nginx::vdir}/${vhost}.conf"
80+
$file_real = "${nginx::vdir}/${vhost}.conf"
8181

8282
# Use proxy template if $proxy is defined, otherwise use directory template.
8383
if ($proxy != undef) {

manifests/resource/upstream.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
default => file,
3636
}
3737

38-
file { "${nginx::config_dir}/${nginx::cdir}/${name}-upstream.conf":
38+
file { "${nginx::cdir}/${name}-upstream.conf":
3939
ensure => $real_file,
4040
content => template($template_upstream),
4141
notify => $nginx::manage_service_autorestart,

manifests/resource/vhost.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979

8080
include nginx
8181
include nginx::params
82-
include concat::setup
8382

8483
$bool_ssl_only = any2bool($ssl_only)
8584

@@ -93,7 +92,7 @@
9392
default => $groupowner,
9493
}
9594

96-
$file_real = "${nginx::config_dir}/${nginx::vdir}/${name}.conf"
95+
$file_real = "${nginx::vdir}/${name}.conf"
9796

9897
# Some OS specific settings:
9998
# On Debian/Ubuntu manages sites-enabled

spec/classes/nginx_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
let(:title) { 'nginx' }
66
let(:node) { 'rspec.example42.com' }
7-
let(:facts) { { :ipaddress => '10.42.42.42' } }
7+
let(:facts) { { :ipaddress => '10.42.42.42', :concat_basedir => '/var/lib/puppet/concat' } }
88

99
describe 'Test standard installation' do
1010
it { should contain_package('nginx').with_ensure('present') }

0 commit comments

Comments
 (0)