From d7e81d10c68014fc60c32fc4876c27a317cc6f0e Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 7 Aug 2019 11:27:49 +0100 Subject: [PATCH] Update salt-master on ubuntu --- states/setup-ubuntu.sls | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 states/setup-ubuntu.sls diff --git a/states/setup-ubuntu.sls b/states/setup-ubuntu.sls new file mode 100644 index 0000000..daaf222 --- /dev/null +++ b/states/setup-ubuntu.sls @@ -0,0 +1,21 @@ +salt repo: + pkgrepo.managed: + - humanname: saltstack + - name: deb http://repo.saltstack.com/py3/ubuntu/18.04/amd64/latest bionic main + - dist: bionic + - file: /etc/apt/sources.list.d/saltstack.list + - gpgkey: https://repo.saltstack.com/py3/ubuntu/18.04/amd64/latest/SALTSTACK-GPG-KEY.pub + +install salt: + pkg.latest: + - name: salt-master + - require: + - pkgrepo: salt repo + +disable salt: + service.dead: + - name: salt-master + - enable: False + - require: + - pkg: install salt + -- 2.46.2