Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file mode handling. #102

Merged
merged 2 commits into from
Oct 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/ca.pp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

exec { "fix_easyrsa_file_permissions_${name}":
refreshonly => true,
command => "/bin/chmod 755 /etc/openvpn/${name}/easy-rsa/*",
command => "/bin/chmod 750 /etc/openvpn/${name}/easy-rsa/*",
}

file { "/etc/openvpn/${name}/easy-rsa/revoked":
Expand Down
3 changes: 1 addition & 2 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@
file { "/etc/openvpn/${name}":
ensure => directory,
mode => '0750',
recurse => true,
}

if $remote == undef {
Expand Down Expand Up @@ -448,7 +447,7 @@
file { "/etc/openvpn/${name}.conf":
owner => root,
group => root,
mode => '0444',
mode => '0440',
content => template('openvpn/server.erb');
}

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/openvpn_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

# Files associated with a server config
it { should contain_file('/etc/openvpn/test_server').
with(:ensure =>'directory', :mode =>'0750', :recurse =>true, :group =>'nogroup') }
with(:ensure =>'directory', :mode =>'0750', :group =>'nogroup') }
it { should contain_file('/etc/openvpn/test_server/client-configs').
with(:ensure =>'directory', :mode =>'0750', :recurse =>true, :group =>'nogroup') }
it { should contain_file('/etc/openvpn/test_server/download-configs').
Expand Down