Skip to content

Commit

Permalink
Merge pull request #162 from Barthalion/archlinux
Browse files Browse the repository at this point in the history
Add support for Arch Linux
  • Loading branch information
luxflux committed May 12, 2015
2 parents 2101ae2 + f6de98c commit fd5deac
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@
}
}
}
'Archlinux': {
$additional_packages = ['easy-rsa']
$easyrsa_source = '/usr/share/easy-rsa/'
$group = 'nobody'
$ldap_auth_plugin_location = undef # unsupported
$link_openssl_cnf = true
$systemd = true
}
'Linux': {
case $::operatingsystem {
'Amazon': {
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
{ "operatingsystem": "Ubuntu", "operatingsystemrelease": ["12.04", "12.10", "13.04", "13.10", "14.04"] },
{ "operatingsystem": "Debian", "operatingsystemrelease": ["7", "8"] },
{ "operatingsystem": "RedHat", "operatingsystemrelease": ["5", "6", "7"] },
{ "operatingsystem": "CentOS", "operatingsystemrelease": ["5", "6", "7"] }
{ "operatingsystem": "CentOS", "operatingsystemrelease": ["5", "6", "7"] },
{ "operatingsystem": "Archlinux" }
],
"dependencies": [
{"name":"puppetlabs/concat","version_requirement":">= 1.0.1 <2.0.0"},
Expand Down
8 changes: 7 additions & 1 deletion spec/classes/openvpn_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
:operatingsystemmajrelease => operatingsystemmajrelease,
:operatingsystemrelease => operatingsystemrelease,
:operatingsystem => operatingsystem,
:operatingsystemrelease => operatingsystemrelease,
}
end

Expand Down Expand Up @@ -83,5 +82,12 @@
it { should_not contain_package('openvpn-auth-ldap') }
it { should contain_package('easy-rsa') }
end

context 'Archlinux' do
let(:osfamily) { 'Archlinux' }

it { should_not contain_package('openvpn-auth-ldap') }
it { should contain_package('easy-rsa') }
end
end
end

0 comments on commit fd5deac

Please sign in to comment.