install missing files in chroot : unstable.list and pinning
authorPaul Tonelli <paul.tonelli@logilab.fr>
Thu, 07 Mar 2013 10:42:38 +0100
changeset 37 1a5705cac904
parent 36 b416322fdd6b
child 38 c44ee1ef62fb
install missing files in chroot : unstable.list and pinning
ami_creator_pre.sls
--- a/ami_creator_pre.sls	Thu Mar 07 10:40:58 2013 +0100
+++ b/ami_creator_pre.sls	Thu Mar 07 10:42:38 2013 +0100
@@ -63,6 +63,23 @@
         - require:
             - mount.mounted: mounted_variation
 
+unstable.list:
+    file.managed:
+        - name: /mnt/variation/etc/apt/sources.list.d/unstable.list
+        - source: salt://others/unstable.list
+        - mode: 644
+        - require:
+            - mount.mounted: mounted_variation
+
+pinning:
+    file.managed:
+        - name: /mnt/variation/etc/apt/preferences.d/pinning
+        - source: salt://others/pinning
+        - mode: 644
+        - require:
+            - mount.mounted: mounted_variation
+
+
 variation.sls:
     file.managed:
         - name: /mnt/variation/etc/salt/variation.sls