diff options
author | Raffael Schmid <raffael@yux.ch> | 2013-01-19 15:29:29 +0100 |
---|---|---|
committer | Raffael Schmid <raffael@yux.ch> | 2013-01-19 15:29:29 +0100 |
commit | c769e17c89d1889889c444213ef9a49bda5a041e (patch) | |
tree | f16e67ad320cb1b499bad31a8ed9d73592b4da05 /spec/defines | |
parent | 75d3fd74c83a7c172211c8ea681f527652ef4521 (diff) |
use nogroup on Debian based machines, nobody on RedHat ones
Diffstat (limited to 'spec/defines')
-rw-r--r-- | spec/defines/openvpn_server_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/defines/openvpn_server_spec.rb b/spec/defines/openvpn_server_spec.rb index da50786..3a17bc2 100644 --- a/spec/defines/openvpn_server_spec.rb +++ b/spec/defines/openvpn_server_spec.rb @@ -17,7 +17,8 @@ describe 'openvpn::server', :type => :define do :ipaddress_eth0 => '1.2.3.4', :network_eth0 => '1.2.3.0', :netmask_eth0 => '255.255.255.0', - :concat_basedir => '/var/lib/puppet/concat' + :concat_basedir => '/var/lib/puppet/concat', + :osfamily => 'anything_else' } } # Files associated with a server config @@ -50,7 +51,7 @@ describe 'openvpn::server', :type => :define do it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^tls-server$/) } it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^port\s+1194$/) } it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^comp-lzo$/) } - it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^group\s+nobody$/) } + it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^group\s+nogroup$/) } it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^user\s+nobody$/) } it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(/^log\-append\s+test_server\/openvpn\.log$/) } it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^status\s+test_server\/openvpn\-status\.log$/) } @@ -127,6 +128,7 @@ describe 'openvpn::server', :type => :define do it { should contain_exec('copy easy-rsa to openvpn config folder test_server').with( 'command' => '/bin/cp -r /usr/share/doc/openvpn-2.2.2/easy-rsa/2.0 /etc/openvpn/test_server/easy-rsa' )} + it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^group\s+nobody$/) } end @@ -156,6 +158,7 @@ describe 'openvpn::server', :type => :define do 'target' => '/etc/default/openvpn' )} + it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^group\s+nogroup$/) } end |