From f6de98c577b7e92522fc34fc9bc51bb67be7fcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Date: Sat, 9 May 2015 22:09:25 +0200 Subject: [PATCH] Add support for Arch Linux --- manifests/params.pp | 8 ++++++++ metadata.json | 3 ++- spec/classes/openvpn_install_spec.rb | 8 +++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 73bd90ae..4d82c7a8 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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': { diff --git a/metadata.json b/metadata.json index e4f5c592..a2892a81 100644 --- a/metadata.json +++ b/metadata.json @@ -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"}, diff --git a/spec/classes/openvpn_install_spec.rb b/spec/classes/openvpn_install_spec.rb index 16ed0932..18c41eeb 100644 --- a/spec/classes/openvpn_install_spec.rb +++ b/spec/classes/openvpn_install_spec.rb @@ -12,7 +12,6 @@ :operatingsystemmajrelease => operatingsystemmajrelease, :operatingsystemrelease => operatingsystemrelease, :operatingsystem => operatingsystem, - :operatingsystemrelease => operatingsystemrelease, } end @@ -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