]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Install git version of pass
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 16 Jul 2019 09:47:11 +0000 (10:47 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 16 Jul 2019 09:47:11 +0000 (10:47 +0100)
states/pass/gentoo.sls [new file with mode: 0644]
states/pass/init.sls [new file with mode: 0644]
states/setup.sls

diff --git a/states/pass/gentoo.sls b/states/pass/gentoo.sls
new file mode 100644 (file)
index 0000000..cb9ddce
--- /dev/null
@@ -0,0 +1,31 @@
+keyword pass package:
+  file.managed:
+    - name: /etc/portage/package.keywords/pass-salt
+    - contents: 
+      - "=app-admin/pass-9999 **"
+    - user: root
+    - group: root
+    - mode: 644
+    - makedirs: True
+    - dir_mode: 755
+
+unmask pass package:
+  file.managed:
+    - name: /etc/portage/package.unmask/pass-salt
+    - contents: 
+      - =app-admin/pass-999
+    - user: root
+    - group: root
+    - mode: 644
+    - makedirs: True
+    - dir_mode: 755
+
+install pass:
+  pkg.installed:
+    - name: app-admin/pass
+    - version: 9999
+    - refresh: False
+    - fromrepo: gentoo
+    - require:
+      - file: keyword pass package
+      - file: unmask pass package
diff --git a/states/pass/init.sls b/states/pass/init.sls
new file mode 100644 (file)
index 0000000..516b21b
--- /dev/null
@@ -0,0 +1,2 @@
+include:
+  - pass.{{ grains['os'] | lower }}
index 5d3f879816b35ccea7a7a2e2f8d59124ea52dae9..ee913e7452d9d58d277c381458cb98b09e792a1b 100644 (file)
@@ -1,3 +1,4 @@
 include:
   - setup-{{ grains['os_family'] | lower }}
   - ntp
+  - pass