Browse Source

fix conflicting salt_ca_certificates_packages

It was failing with:
	Rendering SLS 'base:salt.minion.cert' failed: Conflicting ID 'salt_ca_certificates_packages'

ca-certificates installation should be probably moved out of the loop in
the future.

Change-Id: I26aeae62cc1c1d407d36d1d6bf101db073d9e601
pull/36/head
Tomáš Kukrál 7 years ago
parent
commit
e3ae6b3bbf
No account linked to committer's email address
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      salt/minion/cert.sls

+ 4
- 4
salt/minion/cert.sls View File



{%- if grains.os_family == 'Debian' %} {%- if grains.os_family == 'Debian' %}


salt_ca_certificates_packages:
salt_ca_certificates_packages_{{ rowloop.index }}:
pkg.installed: pkg.installed:
- name: ca-certificates - name: ca-certificates


- name: "/usr/local/share/ca-certificates/ca-{{ cert.authority }}.crt" - name: "/usr/local/share/ca-certificates/ca-{{ cert.authority }}.crt"
- target: {{ ca_file }} - target: {{ ca_file }}
- watch_in: - watch_in:
- cmd: salt_update_certificates
- cmd: salt_update_certificates_{{ rowloop.index }}
- require: - require:
- pkg: salt_ca_certificates_packages
- pkg: salt_ca_certificates_packages_{{ rowloop.index }}


salt_update_certificates:
salt_update_certificates_{{ rowloop.index }}:
cmd.wait: cmd.wait:
- name: update-ca-certificates - name: update-ca-certificates



Loading…
Cancel
Save