Define packages in the common state

This commit is contained in:
Mike Reeves
2020-05-23 12:00:24 -04:00
parent 35f3498ffa
commit 1c207afb31
2 changed files with 85 additions and 12 deletions

View File

@@ -28,21 +28,92 @@ salttmp:
- group: 939
- makedirs: True
# Install packages needed for the sensor
sensorpkgs:
# Install epel
{% if grains['os'] == 'CentOS' %}
epel:
pkg.installed:
- skip_suggestions: False
- skip_suggestions: True
- pkgs:
- epel-release
{% endif %}
# Install common packages
commonpkgs:
pkg.installed:
- skip_suggestions: True
- pkgs:
- wget
- jq
{% if grains['os'] != 'CentOS' %}
- apache2-utils
- wget
- jq
- python3-docker
- docker-ce
- curl
- ca-certificates
- software-properties-common
- apt-transport-https
- openssl
- netcat
- python3-mysqldb
- sqlite3
- argon2
- libssl-dev
- python3-dateutil
- python3-m2crypto
- python3-mysqldb
- salt-minion: 2019.2.5+ds-1
- hold: True
- update_holds: True
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' or grains['role'] == 'so-helix' or grains['role'] == 'so-mastersearch' or grains['role'] == 'so-standalone' %}
- salt-master: 2019.2.5+ds-1
- hold: True
- update_holds: True
- containerd.io: 1.2.13-2
- hold: True
- update_holds: True
- docker-ce: 5:19.03.9~3-0~ubuntu-bionic
- hold: True
- update_holds: True
{% endif %}
- containerd.io
- docker-ce
{% else %}
- net-tools
- wget
- bind-utils
- jq
- tcpdump
- httpd-tools
- net-tools
- curl
- sqlite
- argon2
- maridb-devel
- nmap-ncat
- python3
- python36-docker
- python36-dateutil
- python36-m2crypto
- python36-mysql
- yum-utils
- device-mapper-persistent-data
- lvm2
- openssl
- salt-minion: 2019.2.5
- hold: True
- update_holds: True
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' or grains['role'] == 'so-helix' or grains['role'] == 'so-mastersearch' or grains['role'] == 'so-standalone' %}
- salt-master: 2019.2.5
- hold: True
- update_holds: True
{% endif %}
- containerd.io: 1.2.6-3
- hold: True
- update_holds: True
- docker-ce: 19.03.9-3
- hold: True
- update_holds: True
{% endif %}%}
# Always keep these packages up to date
alwaysupdated: