-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from luxflux/amazon-wheezy-small-support
Support for amazon OS and systems without lsb-release
- Loading branch information
Showing
10 changed files
with
95 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
|
||
let(:facts) { { | ||
:ipaddress_eth0 => '1.2.3.4', | ||
:network_eth0 => '1.2.3.0', | ||
:netmask_eth0 => '255.255.255.0', | ||
:network_eth0 => '1.2.3.0', | ||
:netmask_eth0 => '255.255.255.0', | ||
:concat_basedir => '/var/lib/puppet/concat', | ||
:osfamily => 'Debian', | ||
:lsbdistid => 'Ubuntu', | ||
:lsbdistrelease => '12.04', | ||
:osfamily => 'Debian', | ||
:operatingsystem => 'Ubuntu', | ||
:operatingsystemrelease => '12.04', | ||
} } | ||
|
||
context "creating a server with the minimum parameters" do | ||
|
@@ -75,8 +75,8 @@ | |
:netmask_eth0 => '255.255.255.0', | ||
:concat_basedir => '/var/lib/puppet/concat', | ||
:osfamily => 'Debian', | ||
:lsbdistid => 'Ubuntu', | ||
:lsbdistrelease => '12.04', | ||
:operatingsystem => 'Ubuntu', | ||
:operatingsystemrelease => '12.04', | ||
} } | ||
|
||
it { should contain_file('/etc/openvpn/test_server/easy-rsa/vars').with_content(/^export CA_EXPIRE=365$/) } | ||
|
@@ -150,7 +150,7 @@ | |
'email' => '[email protected]' | ||
} } | ||
|
||
let(:facts) { { :osfamily => 'Debian', :lsbdistid => 'Debian', :concat_basedir => '/var/lib/puppet/concat' } } | ||
let(:facts) { { :osfamily => 'Debian', :operatingsystem => 'Debian', :concat_basedir => '/var/lib/puppet/concat' } } | ||
|
||
shared_examples_for 'a newer version than wheezy' do | ||
it { should contain_package('easy-rsa').with('ensure' => 'present') } | ||
|
@@ -160,24 +160,24 @@ | |
end | ||
context "when jessie/sid" do | ||
before do | ||
facts[:lsbdistid] = 'Debian' | ||
facts[:lsbdistrelease] = '8.0.1' | ||
facts[:operatingsystem] = 'Debian' | ||
facts[:operatingsystemrelease] = '8.0.1' | ||
end | ||
it_behaves_like 'a newer version than wheezy' | ||
end | ||
|
||
context 'when ubuntu 13.10' do | ||
before do | ||
facts[:lsbdistid] = 'Ubuntu' | ||
facts[:lsbdistrelease] = '13.10' | ||
facts[:operatingsystem] = 'Ubuntu' | ||
facts[:operatingsystemrelease] = '13.10' | ||
end | ||
it_behaves_like 'a newer version than wheezy' | ||
end | ||
|
||
context 'when ubuntu 14.04' do | ||
before do | ||
facts[:lsbdistid] = 'Ubuntu' | ||
facts[:lsbdistrelease] = '14.04' | ||
facts[:operatingsystem] = 'Ubuntu' | ||
facts[:operatingsystemrelease] = '14.04' | ||
end | ||
it_behaves_like 'a newer version than wheezy' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
|
||
let(:facts) { { | ||
:ipaddress_eth0 => '1.2.3.4', | ||
:network_eth0 => '1.2.3.0', | ||
:netmask_eth0 => '255.255.255.0', | ||
:network_eth0 => '1.2.3.0', | ||
:netmask_eth0 => '255.255.255.0', | ||
:concat_basedir => '/var/lib/puppet/concat', | ||
:osfamily => 'Debian', | ||
:lsbdistid => 'Ubuntu', | ||
:lsbdistrelease => '12.04', | ||
:osfamily => 'Debian', | ||
:operatingsystem => 'Ubuntu', | ||
:operatingsystemrelease => '12.04', | ||
} } | ||
|
||
context 'creating a server without any parameter' do | ||
|
@@ -155,8 +155,8 @@ | |
:netmask_eth0 => '255.255.255.0', | ||
:concat_basedir => '/var/lib/puppet/concat', | ||
:osfamily => 'Debian', | ||
:lsbdistid => 'Ubuntu', | ||
:lsbdistrelease => '12.04', | ||
:operatingsystem => 'Ubuntu', | ||
:operatingsystemrelease => '12.04', | ||
} } | ||
|
||
it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^mode\s+server$/) } | ||
|
@@ -235,8 +235,8 @@ | |
:netmask_eth0 => '255.255.255.0', | ||
:concat_basedir => '/var/lib/puppet/concat', | ||
:osfamily => 'Debian', | ||
:lsbdistid => 'Ubuntu', | ||
:lsbdistrelease => '12.04', | ||
:operatingsystem => 'Ubuntu', | ||
:operatingsystemrelease => '12.04', | ||
} } | ||
|
||
it { should contain_file('/etc/openvpn/test_client.conf').with_content(/^client$/) } | ||
|
@@ -334,7 +334,7 @@ | |
'email' => '[email protected]' | ||
} } | ||
|
||
let(:facts) { { :osfamily => 'Debian', :lsbdistid => 'Debian', :concat_basedir => '/var/lib/puppet/concat' } } | ||
let(:facts) { { :osfamily => 'Debian', :operatingsystem => 'Debian', :concat_basedir => '/var/lib/puppet/concat' } } | ||
|
||
# Configure to start vpn session | ||
it { should contain_concat__fragment('openvpn.default.autostart.test_server').with( | ||
|
@@ -348,8 +348,8 @@ | |
context 'ldap' do | ||
before do | ||
facts[:osfamily] = 'Debian' | ||
facts[:lsbdistid] = 'Debian' | ||
facts[:lsbdistrelease] = '8.0.0' | ||
facts[:operatingsystem] = 'Debian' | ||
facts[:operatingsystemrelease] = '8.0.0' | ||
end | ||
let(:params) { { | ||
'country' => 'CO', | ||
|