dev/provisioning/modules/puppi/templates/install_packages.erb
author ymh <ymh.work@gmail.com>
Wed, 19 Oct 2016 15:55:04 +0200
changeset 370 d7c5b43d309a
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
add theme/subject filter to back documents api end point

#!/bin/bash
# File Managed by Puppet
export PATH=$PATH:/bin:/sbin:/usr/bin:usr/sbin
<% if scope.lookupvar('::operatingsystem') == 'Debian' or scope.lookupvar('::operatingsystem') == 'Ubuntu' -%>
apt-get update ; apt-get install -y <%= @packages %>
<% elsif scope.lookupvar('::operatingsystem') == 'Centos' or scope.lookupvar('::operatingsystem') == 'RedHat' -%>
yum install -y <%= @packages %>
<% end -%>