rework common init.sls

This commit is contained in:
Mike Reeves
2020-05-26 11:21:59 -04:00
parent 31b3563fb3
commit 87407c9ace

View File

@@ -38,11 +38,11 @@ epel:
{% endif %} {% endif %}
# Install common packages # Install common packages
{% if grains['os'] != 'CentOS' %}
commonpkgs: commonpkgs:
pkg.installed: pkg.installed:
- skip_suggestions: True - skip_suggestions: True
- pkgs: - pkgs:
{% if grains['os'] != 'CentOS' %}
- apache2-utils - apache2-utils
- wget - wget
- jq - jq
@@ -61,23 +61,19 @@ commonpkgs:
- python3-dateutil - python3-dateutil
- python3-m2crypto - python3-m2crypto
- python3-mysqldb - python3-mysqldb
- salt-minion: 2019.2.5+ds-1 heldpackages:
- hold: True pkg.installed:
- update_holds: True - pkgs:
{% 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 - containerd.io: 1.2.13-2
- hold: True
- update_holds: True
- docker-ce: 5:19.03.9~3-0~ubuntu-bionic - docker-ce: 5:19.03.9~3-0~ubuntu-bionic
- hold: True - hold: True
- update_holds: True - update_holds: True
{% endif %}
- containerd.io
- docker-ce
{% else %} {% else %}
commonpkgs:
pkg.installed:
- skip_suggestions: True
- pkgs:
- wget - wget
- bind-utils - bind-utils
- jq - jq
@@ -87,7 +83,7 @@ commonpkgs:
- curl - curl
- sqlite - sqlite
- argon2 - argon2
- maridb-devel - mariadb-devel
- nmap-ncat - nmap-ncat
- python3 - python3
- python36-docker - python36-docker
@@ -98,21 +94,15 @@ commonpkgs:
- device-mapper-persistent-data - device-mapper-persistent-data
- lvm2 - lvm2
- openssl - openssl
- salt-minion: 2019.2.5.el7
- hold: True heldpackages:
- update_holds: True pkg.installed:
{% 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' %} - pkgs:
- salt-master: 2019.2.5.el7 - containerd.io: 1.2.13-3.2.el7
- docker-ce: 3:19.03.9-3.el7
- hold: True - hold: True
- update_holds: True - update_holds: True
{% endif %} {% endif %}
- containerd.io: 1.2.6-3.el7
- hold: True
- update_holds: True
- docker-ce: 19.03.9-3.el7
- hold: True
- update_holds: True
{% endif %}%}
# Always keep these packages up to date # Always keep these packages up to date