| author | ymh <ymh.work@gmail.com> |
| Sun, 27 Nov 2016 15:12:30 +0100 | |
| changeset 447 | 38d5789e30d0 |
| parent 28 | b0b56e0f8c7f |
| permissions | -rwxr-xr-x |
| 28 | 1 |
#!/bin/bash |
2 |
# File Managed by Puppet |
|
3 |
export PATH=$PATH:/bin:/sbin:/usr/bin:usr/sbin |
|
4 |
<% if scope.lookupvar('::operatingsystem') == 'Debian' or scope.lookupvar('::operatingsystem') == 'Ubuntu' -%>
|
|
5 |
apt-get update ; apt-get install -y <%= @packages %> |
|
6 |
<% elsif scope.lookupvar('::operatingsystem') == 'Centos' or scope.lookupvar('::operatingsystem') == 'RedHat' -%>
|
|
7 |
yum install -y <%= @packages %> |
|
8 |
<% end -%> |