ami_creator.sls
author Paul Tonelli <paul.tonelli@logilab.fr>
Tue, 26 Mar 2013 12:10:22 +0100
changeset 96 077e05a2ce8e
parent 84 40a8790380af
child 116 41ee6c1162be
permissions -rw-r--r--
two modifications: - path of final files modified to : /mnt/output/ instead of /mnt - added the upload to glance procedure, this should be done at the end and not in the main ami_creation sls

# /srv/salt/init_machine.sls

#include:
#    - ami_pre
#preparation:
#    sls:
#        - ami_pre
#    require:
#        - hg.latest: hg_code

update_variant:
    module.run:
        - name: vm_create.update_image
        - path: /mnt/variation
#    require:
#        - ami_pre.mount.mounted: mounted_variation
#        - ami_pre.mount.mounted: chroot_proc 
#        - ami_pre.mount.mounted: chroot_devpts
#        - ami_pre: resolvconf 

variate_variant:
    module.run:
        - name: vm_create.variate_image
        - path: /mnt/variation
    require:
        - module.run: vm_create.update_image

#include:
#    - ami_post
#cleaning:
#    sls:
#        - ami_post
#    require:
#        - vm_create.variate_image