Skip to content

Commit c8ba142

Browse files
Fix all the tests
1 parent 8876af4 commit c8ba142

File tree

8 files changed

+42
-19
lines changed

8 files changed

+42
-19
lines changed

manifests/params.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
$passenger_package = 'mod_passenger'
6464
$rack_package = 'rubygem-rack'
6565
$ruby_dev = 'ruby-devel'
66+
$puppet_facter_package = nil
6667
}
6768
'Suse': {
6869
$puppet_master_package = 'puppet-server'
@@ -72,6 +73,7 @@
7273
$package_provider = undef # falls back to system default
7374
$passenger_package = 'rubygem-passenger-apache2'
7475
$rack_package = 'rubygem-rack'
76+
$puppet_facter_package = nil
7577
}
7678
'Debian': {
7779
$puppet_master_package = 'puppetmaster'
@@ -83,12 +85,14 @@
8385
$passenger_package = 'libapache2-mod-passenger'
8486
$rack_package = 'librack-ruby'
8587
$ruby_dev = 'ruby-dev'
88+
$puppet_facter_package = nil
8689
}
8790
'FreeBSD': {
8891
$puppet_agent_service = 'puppet'
8992
$puppet_agent_package = 'sysutils/puppet'
9093
$package_provider = undef # falls back to system default
9194
$puppet_conf = '/usr/local/etc/puppet/puppet.conf'
95+
$puppet_facter_package = nil
9296
}
9397
'Darwin': {
9498
$puppet_agent_service = 'com.puppetlabs.puppet'

manifests/passenger.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
ssl_chain => "${puppet_ssldir}/ca/ca_crt.pem",
144144
ssl_ca => "${puppet_ssldir}/ca/ca_crt.pem",
145145
ssl_crl => "${puppet_ssldir}/ca/ca_crl.pem",
146-
ssl_protocol => $::puppet::params::ssl_protocol,
147-
ssl_cipher => $::puppet::params::ssl_cipher,
146+
ssl_protocol => $puppet_passenger_ssl_protocol,
147+
ssl_cipher => $puppet_passenger_ssl_cipher,
148148
ssl_honorcipherorder => 'On',
149149
ssl_verify_client => 'optional',
150150
ssl_verify_depth => '1',

spec/classes/puppet_agent_spec.rb

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
{
77
:osfamily => 'Debian',
88
:operatingsystem => 'Debian',
9-
:kernel => 'Linux'
9+
:kernel => 'Linux',
10+
:puppetversion => '3.8.0'
1011
}
1112
end
1213

@@ -167,7 +168,8 @@
167168
{
168169
:osfamily => 'RedHat',
169170
:operatingsystem => 'RedHat',
170-
:kernel => 'Linux'
171+
:kernel => 'Linux',
172+
:puppetversion => '3.8.0'
171173
}
172174
end
173175
describe 'when installed' do
@@ -327,7 +329,8 @@
327329
{
328330
:osfamily => 'RedHat',
329331
:operatingsystem => 'RedHat',
330-
:kernel => 'Linux'
332+
:kernel => 'Linux',
333+
:puppetversion => '3.8.0'
331334
}
332335
end
333336
context 'with ordering set' do
@@ -389,7 +392,8 @@
389392
{
390393
:osfamily => 'RedHat',
391394
:operatingsystem => 'RedHat',
392-
:kernel => 'Linux'
395+
:kernel => 'Linux',
396+
:puppetversion => '3.8.0'
393397
}
394398
end
395399
context 'with trusted set' do
@@ -451,7 +455,8 @@
451455
{
452456
:osfamily => 'RedHat',
453457
:operatingsystem => 'RedHat',
454-
:kernel => 'Linux'
458+
:kernel => 'Linux',
459+
:puppetversion => '3.8.0'
455460
}
456461
end
457462
context 'with templatedir set' do
@@ -513,7 +518,8 @@
513518
{
514519
:osfamily => 'RedHat',
515520
:operatingsystem => 'RedHat',
516-
:kernel => 'Linux'
521+
:kernel => 'Linux',
522+
:puppetversion => '3.8.0'
517523
}
518524
end
519525
context 'with configtimeout set' do
@@ -556,7 +562,8 @@
556562
{
557563
:osfamily => 'RedHat',
558564
:operatingsystem => 'RedHat',
559-
:kernel => 'Linux'
565+
:kernel => 'Linux',
566+
:puppetversion => '3.8.0'
560567
}
561568
end
562569
context 'with stringify_facts set' do
@@ -582,7 +589,8 @@
582589
{
583590
:osfamily => 'RedHat',
584591
:operatingsystem => 'RedHat',
585-
:kernel => 'Linux'
592+
:kernel => 'Linux',
593+
:puppetversion => '3.8.0'
586594
}
587595
end
588596
context 'with http_proxy_host set' do
@@ -608,7 +616,8 @@
608616
{
609617
:osfamily => 'RedHat',
610618
:operatingsystem => 'RedHat',
611-
:kernel => 'Linux'
619+
:kernel => 'Linux',
620+
:puppetversion => '3.8.0'
612621
}
613622
end
614623
context 'with http_proxy_port set' do

spec/classes/puppet_master_spec.rb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
:operatingsystemrelease => '5',
1111
:concat_basedir => '/nde',
1212
:lsbdistcodename => 'lenny',
13-
:processorcount => '2'
13+
:processorcount => '2',
14+
:puppetversion => '3.8.0'
1415
}
1516
end
1617
let (:params) do
@@ -27,8 +28,7 @@
2728
:storeconfigs => 'true',
2829
:storeconfigs_dbserver => 'test.example.com',
2930
:dns_alt_names => ['puppet'],
30-
:strict_variables => 'true'
31-
31+
:strict_variables => 'true',
3232
}
3333
end
3434
it {
@@ -180,7 +180,8 @@
180180
:operatingsystem => 'RedHat',
181181
:operatingsystemrelease => '6',
182182
:concat_basedir => '/nde',
183-
:processorcount => '2'
183+
:processorcount => '2',
184+
:puppetversion => '3.8.0'
184185
}
185186
end
186187
let (:params) do
@@ -347,7 +348,8 @@
347348
:operatingsystem => 'RedHat',
348349
:operatingsystemrelease => '6',
349350
:concat_basedir => '/nde',
350-
:processorcount => '2'
351+
:processorcount => '2',
352+
:puppetversion => '3.8.0'
351353
}
352354
end
353355
let (:params) do {
@@ -380,7 +382,8 @@
380382
:operatingsystem => 'RedHat',
381383
:operatingsystemrelease => '6',
382384
:concat_basedir => '/nde',
383-
:processorcount => '2'
385+
:processorcount => '2',
386+
:puppetversion => '3.8.0'
384387
}
385388
end
386389
let (:params) do {

spec/classes/puppet_passenger_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
:operatingsystemrelease => '5',
2929
:concat_basedir => '/dne',
3030
:lsbdistcodename => 'lenny',
31+
:puppetversion => '3.8.0'
3132
}
3233
end
3334
it {
@@ -92,6 +93,7 @@
9293
:operatingsystem => 'Redhat',
9394
:operatingsystemrelease => '5',
9495
:concat_basedir => '/dne',
96+
:puppetversion => '3.8.0'
9597
}
9698
end
9799
it {
@@ -106,6 +108,7 @@
106108
:operatingsystem => 'Redhat',
107109
:operatingsystemrelease => '5',
108110
:concat_basedir => '/dne',
111+
:puppetversion => '3.8.0'
109112
}
110113
end
111114
let (:params) do

spec/classes/puppet_repo_puppetlabs_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
end
1313
let(:key_hash) { {
14-
'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
14+
'id' => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
1515
'server' => 'pgp.mit.edu',
1616
} }
1717
it 'should contain puppetlabs apt repos' do

spec/classes/puppet_storeconfigs_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{
88
:osfamily => 'Debian',
99
:operatingsystem => 'Debian',
10+
:puppetversion => '3.8.0'
1011
}
1112
end
1213
let (:params) do
@@ -34,6 +35,7 @@
3435
{
3536
:osfamily => 'Debian',
3637
:operatingsystem => 'Debian',
38+
:puppetversion => '3.8.0'
3739
}
3840
end
3941
let (:params) do

spec/defines/puppet_masterenv_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
{
1616
:manifest => '/etc/puppet/environments/dev.pp',
1717
:modulepath => '/etc/puppet/environments/modules/',
18-
:puppet_conf => '/etc/puppet/puppet.conf'
18+
:puppet_conf => '/etc/puppet/puppet.conf',
19+
:environments => 'config',
20+
:environmentpath => ''
1921
}
2022
end
2123
it {

0 commit comments

Comments
 (0)