Skip to content

Commit 6ac2e25

Browse files
author
Ashley Penney
committed
Merge pull request puppetlabs#249 from aboe76/master
Added Archlinux Support
2 parents 5ac999b + 1e3bcb7 commit 6ac2e25

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

manifests/globals.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
},
7070
default => undef,
7171
},
72+
'Archlinux' => $::operatingsystem ? {
73+
/Archlinux/ => '9.2',
74+
default => '9.2',
75+
},
7276
default => undef,
7377
}
7478
$globals_version = pick($version, $default_version, 'unknown')

manifests/params.pp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,33 @@
5050
$python_package_name = pick($python_package_name, 'python-psycopg2')
5151
}
5252

53+
'Archlinux': {
54+
# Based on the existing version of the firewall module, this is normally
55+
# true for Archlinux, but archlinux users want more control.
56+
# so they can set it themself
57+
$firewall_supported = pick($firewall_supported, true)
58+
$needs_initdb = pick($needs_initdb, true)
59+
60+
# Archlinux doesn't have a client-package but has a libs package which
61+
# pulls in postgresql server
62+
$client_package_name = pick($client_package_name, 'postgresql')
63+
$server_package_name = pick($server_package_name, 'postgresql-libs')
64+
$java_package_name = pick($java_package_name, 'postgresql-jdbc')
65+
# Archlinux doesn't have develop packages
66+
$devel_package_name = pick($devel_package_name, 'postgresql-devel')
67+
# Archlinux does have postgresql-contrib but it isn't maintained
68+
$contrib_package_name = pick($contrib_package_name,'undef')
69+
# Archlinux postgresql package provides plperl
70+
$plperl_package_name = pick($plperl_package_name, 'undef')
71+
$service_name = pick($service_name, 'postgresql')
72+
$bindir = pick($bindir, '/usr/bin')
73+
$datadir = pick($datadir, '/var/lib/postgres/data')
74+
$confdir = pick($confdir, $datadir)
75+
76+
$service_status = $service_status
77+
$python_package_name = pick($python_package_name, 'python-psycopg2')
78+
}
79+
5380
'Debian': {
5481

5582
if $manage_package_repo == true {

0 commit comments

Comments
 (0)