cloud-cert-{{ cert }}-pem: | cloud-cert-{{ cert }}-pem: | ||||
file.managed: | file.managed: | ||||
- name: /etc/salt/pki/cloud/{{ cert }}.pem | - name: /etc/salt/pki/cloud/{{ cert }}.pem | ||||
- source: salt://salt/files/key | |||||
- source: salt://{{ slspath }}/files/key | |||||
- template: jinja | - template: jinja | ||||
- user: root | - user: root | ||||
- group: root | - group: root |
file.recurse: | file.recurse: | ||||
- name: {{ salt_settings.config_path }}/master.d | - name: {{ salt_settings.config_path }}/master.d | ||||
- template: jinja | - template: jinja | ||||
- source: salt://salt/files/master.d | |||||
- source: salt://{{ slspath }}/files/master.d | |||||
- clean: {{ salt_settings.clean_config_d_dir }} | - clean: {{ salt_settings.clean_config_d_dir }} | ||||
- exclude_pat: _* | - exclude_pat: _* | ||||
service.running: | service.running: |
file.recurse: | file.recurse: | ||||
- name: {{ salt_settings.config_path }}/minion.d | - name: {{ salt_settings.config_path }}/minion.d | ||||
- template: jinja | - template: jinja | ||||
- source: salt://salt/files/minion.d | |||||
- source: salt://{{ slspath }}/files/minion.d | |||||
- clean: {{ salt_settings.clean_config_d_dir }} | - clean: {{ salt_settings.clean_config_d_dir }} | ||||
- exclude_pat: _* | - exclude_pat: _* | ||||
- context: | - context: |
saltstack-apt-key: | saltstack-apt-key: | ||||
file.managed: | file.managed: | ||||
- name: /etc/apt/trusted.gpg.d/saltstack.gpg | - name: /etc/apt/trusted.gpg.d/saltstack.gpg | ||||
- source: salt://salt/pkgrepo/debian/saltstack.gpg | |||||
- source: salt://{{ slspath }}/saltstack.gpg | |||||
- user: root | - user: root | ||||
- group: root | - group: root | ||||
- mode: 644 | - mode: 644 | ||||
saltstack-pkgrepo: | saltstack-pkgrepo: | ||||
file.managed: | file.managed: | ||||
- name: /etc/apt/sources.list.d/saltstack.list | - name: /etc/apt/sources.list.d/saltstack.list | ||||
- source: salt://salt/pkgrepo/debian/sources.list | |||||
- source: salt://{{ slspath }}/sources.list | |||||
- user: root | - user: root | ||||
- group: root | - group: root | ||||
- mode: 644 | - mode: 644 |
ensure-roster-config: | ensure-roster-config: | ||||
file.managed: | file.managed: | ||||
- name: {{ salt_settings.config_path }}/roster | - name: {{ salt_settings.config_path }}/roster | ||||
- source: salt://salt/files/roster.jinja | |||||
- source: salt://{{ slspath }}/files/roster.jinja | |||||
- template: jinja | - template: jinja | ||||
{% if salt_settings.install_packages %} | {% if salt_settings.install_packages %} | ||||
- require: | - require: |
file.recurse: | file.recurse: | ||||
- name: {{ salt_settings.config_path }}/minion.d | - name: {{ salt_settings.config_path }}/minion.d | ||||
- template: jinja | - template: jinja | ||||
- source: salt://salt/files/minion.d | |||||
- source: salt://{{ slspath }}/files/minion.d | |||||
- clean: {{ salt_settings.clean_config_d_dir }} | - clean: {{ salt_settings.clean_config_d_dir }} | ||||
- exclude_pat: _* | - exclude_pat: _* | ||||
- context: | - context: |