]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Update salt-master on ubuntu
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 7 Aug 2019 10:27:49 +0000 (11:27 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 7 Aug 2019 10:27:49 +0000 (11:27 +0100)
states/setup-ubuntu.sls [new file with mode: 0644]

diff --git a/states/setup-ubuntu.sls b/states/setup-ubuntu.sls
new file mode 100644 (file)
index 0000000..daaf222
--- /dev/null
@@ -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
+