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

Add support for Arch Linux #162

Merged
merged 1 commit into from May 12, 2015
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions manifests/params.pp
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
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
Expand Up @@ -12,7 +12,6 @@
:operatingsystemmajrelease => operatingsystemmajrelease,
:operatingsystemrelease => operatingsystemrelease,
:operatingsystem => operatingsystem,
:operatingsystemrelease => operatingsystemrelease,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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