added necessary packages for uploading to amazon EC2, the initial image must be an ubuntu image!!!
authorPaul Tonelli <paul.tonelli@logilab.fr>
Thu, 18 Apr 2013 19:08:51 +0200
changeset 117 a722452444fc
parent 116 41ee6c1162be
child 118 819d80ebd10e
added necessary packages for uploading to amazon EC2, the initial image must be an ubuntu image!!!
update.sls
--- a/update.sls	Thu Apr 18 14:31:03 2013 +0200
+++ b/update.sls	Thu Apr 18 19:08:51 2013 +0200
@@ -1,3 +1,16 @@
+multiverse_removed:
+  file.sed:
+    - name: /etc/apt/sources.list
+    - before: 'multiverse'
+    - after: ''
+
+/etc/apt/sources.list:
+  file.sed:
+    - before: 'universe'
+    - after: 'universe multiverse'
+    - require:
+        - file.sed: multiverse_removed
+
 my_pkgs:
   pkg.installed:
     - pkgs:
@@ -6,9 +19,12 @@
       - mercurial
       - tar
       - rsync
+      - vim
       - glance
-      - vim
-
+      - ec2-ami-tools
+      - ec2-api-tools
+    - require:
+        - file.sed: /etc/apt/sources.list
     
 {% if 'ami.hg_address_server' in grains %}
 hg_code:
@@ -28,8 +44,8 @@
         - source: salt://others/rc.local
         - mode: 755
 {% if 'ami.hg_address_server' in grains %}
-    require:
-        - hg.latest: hg_code
+        - require:
+            - hg.latest: hg_code
 {% endif %}
 
 minion:
@@ -38,8 +54,8 @@
         - source: salt://minion
         - mode: 755
 {% if 'ami.hg_address_server' in grains %}
-    require:
-        - hg.latest: hg_code
+        - require:
+            - hg.latest: hg_code
 {% endif %}