Skip to content

Commit

Permalink
Add support for Arch Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed May 10, 2015
1 parent 6ae2350 commit f6de98c
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 @@ -85,6 +85,14 @@

$systemd = false
}
'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 f6de98c

Please sign in to comment.