Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add packages here for Centos
- {% set CentosPKGs = [
- 'https',
- 'somepkg'
- ] %}
- # Add packages here for ubuntu
- {% set UbuntuPKGs = [
- 'apache',
- 'somepkg'
- ] %}
- {% if grains['os'] == 'CentOS'%}
- pkgrepo.managed:
- - humanname: CentOS-$releasever - Base
- - mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
- - comments:
- - '#http://mirror.centos.org/centos/$releasever/os/$basearch/'
- - gpgcheck: 1
- - gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
- {% for package in CentosPKGs %}
- {{ package }}:
- pkg:
- - installed
- {% endfor %}
- {% endif %}
- {% if grains['os'] == 'ubuntu'%}
- {% for package in UbuntuPKGs %}
- {{ package }}:
- pkg:
- - installed
- {% endfor %}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement