Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit 75f2128

Browse files
committed
Merge pull request #6 from kupferk/master
Improved compatibility with CentOS
2 parents 459e571 + 9aaecfa commit 75f2128

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pkg/*
2+

Modulefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name 'dimajix-impala'
2-
version '0.1.8'
2+
version '0.1.9'
33
source 'https://github.com/dimajix/puppet-impala'
44
author 'Kaya Kupferschmidt <k.kupferschmidt@dimajix.de>'
55
license 'MIT'

manifests/params.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# It sets variables according to platform
55
#
66
class impala::params {
7-
case $::osfamily {
8-
'Debian': {
7+
case "${::osfamily}-${::operatingsystem}" {
8+
/RedHat-Fedora/: {
99
$packages = {
1010
common => [ 'impala' ],
1111
catalog => 'impala-catalog',
@@ -19,7 +19,7 @@
1919
server => 'impala-server',
2020
}
2121
}
22-
'RedHat': {
22+
/Debian|RedHat/: {
2323
$packages = {
2424
common => [ 'impala' ],
2525
catalog => 'impala-catalog',
@@ -42,9 +42,9 @@
4242
debian => 'cluster',
4343
redhat => undef,
4444
}
45-
$confdir = $::osfamily ? {
46-
debian => '/etc/impala/conf',
47-
redhat => '/etc/impala',
45+
$confdir = "${::osfamily}-${::operatingsystem}" ? {
46+
/Fedora-RedHat/ => '/etc/hive',
47+
/Debian|RedHat/ => '/etc/hive/conf',
4848
}
4949
$config = '/etc/default/impala'
5050

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dimajix/impala",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"author": "Kaya Kupferschmidt <k.kupferschmidt@dimajix.de>",
55
"summary": "Puppet module for managing Cloudera Impala",
66
"license": "Apache 2.0",

0 commit comments

Comments
 (0)