File tree Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ Lint and rspec-puppet:
73
73
74
74
If you have a working Vagrant setup you can run the rspec-system tests:
75
75
76
- bundle exec rake spec:system
76
+ bundle exec rake beaker
77
77
78
78
To use different base boxes than the default pass the name of the box to
79
79
the rake command with the ``` RSPEC_SET ``` environment variable (check out
80
80
.nodelist.yml for box names):
81
81
82
- RSPEC_SET=centos-64- x64 bundle exec rake spec:system
82
+ BEAKER_set=ubuntu-server-1404- x64 bundle exec rake beaker
Original file line number Diff line number Diff line change 4
4
context 'without puppetdb' do
5
5
it 'puppet::master class should work with no errors' do
6
6
pp = <<-EOS
7
- class { 'puppet::master': }
7
+ class { 'puppet::master':}
8
8
EOS
9
9
10
10
# Run it twice and test for idempotency
@@ -19,7 +19,7 @@ class { 'puppet::master': }
19
19
pp = <<-EOS
20
20
class { 'puppet::master':
21
21
storeconfigs => true,
22
- storeconfigs_dbserver => 'puppetdb.foo .local',
22
+ storeconfigs_dbserver => 'master.test .local',
23
23
puppetdb_strict_validation => false,
24
24
}
25
25
EOS
@@ -38,6 +38,7 @@ class { 'puppet::master':
38
38
class { 'puppetdb': }
39
39
class { 'puppet::master':
40
40
storeconfigs => true,
41
+ certname => 'master.test.local',
41
42
}
42
43
EOS
43
44
Original file line number Diff line number Diff line change 3
3
roles :
4
4
- default
5
5
platform : ubuntu-12.04-amd64
6
- box : ubuntu-server-12042-x64-vbox4210 -nocm
6
+ box : puppetlabs/ ubuntu-12.04-64 -nocm
7
7
box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box
8
8
hypervisor : vagrant
9
9
CONFIG :
Original file line number Diff line number Diff line change
1
+ HOSTS :
2
+ master :
3
+ roles :
4
+ - default
5
+ platform : ubuntu-14.04-amd64
6
+ box : puppetlabs/ubuntu-14.04-64-nocm
7
+ box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
8
+ hypervisor : vagrant
9
+ CONFIG :
10
+ log_level : debug
11
+ type : foss
Original file line number Diff line number Diff line change 17
17
18
18
puppet_module_install ( :source => proj_root , :module_name => 'puppet' )
19
19
# Install dependencies from Modulefile
20
+ shell ( "echo '127.0.0.1 master.test.local' >> /etc/hosts" )
21
+ shell ( 'hostname master.test.local' )
20
22
shell ( 'puppet module install puppetlabs-inifile' )
21
23
shell ( 'puppet module install puppetlabs-apache' )
22
24
shell ( 'puppet module install puppetlabs-puppetdb' )
You can’t perform that action at this time.
0 commit comments