[instances] also extra-sources
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 02 Feb 2017 17:44:13 +0100
changeset 115 3294a6c15704
parent 114 55fdd58090b4
child 116 1c7834b59c18
[instances] also extra-sources
cubicweb/instances.sls
--- a/cubicweb/instances.sls	Fri Jan 27 17:11:14 2017 +0100
+++ b/cubicweb/instances.sls	Thu Feb 02 17:44:13 2017 +0100
@@ -6,6 +6,12 @@
   {% break %}
   {% endif %}
 {% endfor %}
+{% for extrasrc in salt['pillar.get']('extra_sources', ()) %}
+{{ extrasrc }}:
+    pkgrepo.managed:
+        - name : {{ extrasrc }}
+        - file: /etc/apt/sources.list.d/extra_source_{{loop.index}}.list
+{% endfor %}
 
 {% for vhostname, vhost in pillar['cubicweb_apps'].iteritems() %}
  {% for name, config in vhost.iteritems() %}