From: Maximilian Friedersdorff Date: Wed, 7 Aug 2019 10:27:49 +0000 (+0100) Subject: Update salt-master on ubuntu X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d7e81d10c68014fc60c32fc4876c27a317cc6f0e;p=max%2Fsaltfiles.git Update salt-master on ubuntu --- 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 +