]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Install firefox on all hosts
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 22 Jul 2019 09:35:42 +0000 (10:35 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 22 Jul 2019 09:35:42 +0000 (10:35 +0100)
states/firefox/gentoo.sls [new file with mode: 0644]
states/firefox/init.sls [new file with mode: 0644]
states/setup.sls

diff --git a/states/firefox/gentoo.sls b/states/firefox/gentoo.sls
new file mode 100644 (file)
index 0000000..bb2c7cf
--- /dev/null
@@ -0,0 +1,19 @@
+firefox useflags:
+  file.managed:
+    - name: /etc/portage/package.use/firefox-salt
+    - contents:
+      - www-client/firefox clang lto pgo -system-libvpx
+      - media-libs/libpng apnd
+      - dev-db/sqlite secure-delete
+      - sys-devel/llvm gold
+      - x11-base/xorg-server xvfb
+    - user: root
+    - group: root
+    - mode: 644
+
+install firefox:
+  pkg.installed:
+    - name: www-client/firefox
+    - refresh: False
+    - require: 
+      - file: firefox useflags
diff --git a/states/firefox/init.sls b/states/firefox/init.sls
new file mode 100644 (file)
index 0000000..cbbb5a0
--- /dev/null
@@ -0,0 +1,2 @@
+include:
+  - firefox.{{ grains['os'] | lower }}
index ee913e7452d9d58d277c381458cb98b09e792a1b..6745a1c99cdb7109861ca0baf76fbe4d86a08517 100644 (file)
@@ -2,3 +2,4 @@ include:
   - setup-{{ grains['os_family'] | lower }}
   - ntp
   - pass
+  - firefox