From 1965cc1491d021ebe25df3b3ca1f86fe9601ca39 Mon Sep 17 00:00:00 2001 From: rht Date: Wed, 19 Dec 2018 22:16:08 +0000 Subject: [PATCH] puppet: Add CentOS packages to base.pp. --- puppet/zulip/manifests/base.pp | 54 +++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/puppet/zulip/manifests/base.pp b/puppet/zulip/manifests/base.pp index e9df8dbe18..bd1743799f 100644 --- a/puppet/zulip/manifests/base.pp +++ b/puppet/zulip/manifests/base.pp @@ -1,25 +1,4 @@ class zulip::base { - $base_packages = [ - # Accurate time is essential - 'ntp', - # Used in scripts including install-yarn.sh - 'curl', - 'wget', - # Used in scripts - 'netcat', - # Nagios plugins; needed to ensure /var/lib/nagios_plugins exists - 'nagios-plugins-basic', - # Used to read /etc/zulip/zulip.conf for `zulipconf` puppet function - 'crudini', - # Used for tools like sponge - 'moreutils', - # Required for using HTTPS in apt repositories. - 'apt-transport-https', - # Needed for the cron jobs installed by puppet - 'cron', - ] - package { $base_packages: ensure => 'installed' } - case $::osfamily { 'debian': { $release_name = $::operatingsystemrelease ? { @@ -35,11 +14,44 @@ class zulip::base { '16.04' => 'xenial', '18.04' => 'bionic', } + $base_packages = [ + # Accurate time is essential + 'ntp', + # Used in scripts including install-yarn.sh + 'curl', + 'wget', + # Used to read /etc/zulip/zulip.conf for `zulipconf` puppet function + 'crudini', + # Used for tools like sponge + 'moreutils', + # Used in scripts + 'netcat', + # Nagios plugins; needed to ensure /var/lib/nagios_plugins exists + 'nagios-plugins-basic', + # Required for using HTTPS in apt repositories. + 'apt-transport-https', + # Needed for the cron jobs installed by puppet + 'cron', + ] } 'redhat': { $release_name = "${::operatingsystem}${::operatingsystemmajrelease}" + $base_packages = [ + 'ntp', + 'curl', + 'wget', + 'crudini', + 'moreutils', + 'nmap-ncat', + 'nagios-plugins', # there is no dummy package on CentOS 7 + 'cronie' + ] + } + default: { + fail('osfamily not supported') } } + package { $base_packages: ensure => 'installed' } $postgres_version = $release_name ? { 'wheezy' => '9.1',