corrected files for using immediately after hg clone
authorPaul Tonelli <paul.tonelli@logilab.fr>
Wed, 06 Mar 2013 17:24:39 +0100
changeset 32 ff62f1b8fb71
parent 31 e723591ef91a
child 33 1032b357595e
corrected files for using immediately after hg clone
ami_creator.sls
top.sls
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ami_creator.sls	Wed Mar 06 17:24:39 2013 +0100
@@ -0,0 +1,18 @@
+# /srv/salt/init_machine.sls
+my_pkgs:
+  pkg.installed:
+    - pkgs:
+      - salt-minion
+      - python
+      - mercurial
+      - tar
+      - glance
+
+hg_ami_creation:
+    hg.latest:
+        - name: http://hg.logilab.fr/users/ptonelli/srv_salt
+        - target: /etc/salt/srv
+        - require:
+            - pkg: my_pkgs
+
+
--- a/top.sls	Wed Mar 06 10:19:35 2013 +0100
+++ b/top.sls	Wed Mar 06 17:24:39 2013 +0100
@@ -1,4 +1,4 @@
 # /srv/salt/top.sls
 base:
   '*':
-    - init-server
+    - ami_creator