ami_pre/files.sls
author Paul Tonelli <paul.tonelli@logilab.fr>
Fri, 15 Mar 2013 14:58:22 +0100
changeset 78 f964fb1a386a
child 89 d6f5473f3dc1
permissions -rw-r--r--
cut ami_creator_pre into different sls files in folder, made necessary modification: - transformed variables into salt grains when necessary - moved requirements

01proxy:
    file.managed:
        - name: /mnt/variation/etc/apt/apt.conf.d/01proxy
        - source: salt://others/01proxy
        - mode: 644
        - require:
            - mount.mounted: mounted_variation

02confold:
    file.managed:
        - name: /mnt/variation/etc/apt/apt.conf.d/02confold
        - source: salt://others/02confold
        - mode: 644
        - require:
            - mount.mounted: mounted_variation

policy-rc.d:
    file.managed:
        - name: /mnt/variation/usr/sbin/policy-rc.d
        - source: salt://others/policy-rc.d
        - mode: 755
        - require:
            - mount.mounted: mounted_variation

{% if grains['ami.type'] == 'debian' %}
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
{% endif %}

minion:
    file.managed:
        - name: /mnt/variation/etc/salt/minion
        - source: salt://variation.minion
        - mode: 644
        - require:
            - mount.mounted: mounted_variation

variation.sls:
    file.managed:
        - name: /mnt/variation/etc/salt/srv/variation.sls
        - source: salt://variation.sls
        - mode: 644
        - require:
            - mount.mounted: mounted_variation

variation.top.sls:
    file.managed:
        - name: /mnt/variation/etc/salt/srv/top.sls
        - source: salt://variation.top.sls
        - mode: 644
        - require:
            - mount.mounted: mounted_variation

resolv.conf:
    tmp_state.local_managed:
        - name: /mnt/variation/etc/resolv.conf
        - source: /etc/resolv.conf
        - require:
            - mount.mounted: mounted_variation