Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3765609
D1046.id2675.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1046.id2675.diff
View Options
diff --git a/map.jinja b/map.jinja
--- a/map.jinja
+++ b/map.jinja
@@ -40,14 +40,18 @@
{% set packages = salt['grains.filter_by']({
'Debian' : {
'sphinx': 'python3-sphinx',
+ 'varnish': 'varnish',
},
'RedHat': {
'sphinx': 'python3-sphinx',
+ 'varnish': 'varnish',
},
'Arch': {
'sphinx': 'python-sphinx',
+ 'varnish': 'varnish',
},
'FreeBSD' : {
'sphinx': 'py27-sphinx',
+ 'varnish': 'varnish5',
},
}, default='Debian') %}
diff --git a/roles/webserver-varnish/init.sls b/roles/webserver-varnish/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/webserver-varnish/init.sls
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt — Varnish cache
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import packages with context %}
+
+# -------------------------------------------------------------
+# Software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+varnish_software:
+ pkg.installed:
+ - name: {{ packages.varnish }}
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -21,6 +21,7 @@
- roles/saltmaster/salt-wrapper
'ysul.nasqueron.org':
- roles/webserver-legacy
+ - roles/webserver-varnish
'dwellers.nasqueron.org':
- roles/paas-docker/docker
- roles/paas-lxc/lxc
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 13:16 (18 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257501
Default Alt Text
D1046.id2675.diff (1 KB)
Attached To
Mode
D1046: Install Varnish on Ysul
Attached
Detach File
Event Timeline
Log In to Comment