haproxy:
  pkgrepo.managed:
    - ppa: vbernat/haproxy-1.5
    - keyid: CFFB779AADC995E4F350A060505D97A41C61B9CD
    - require_in:
      - pkg: haproxy

  pkg:
    - latest

  service.running:
    - enable: True
    - reload: True
    - watch:
      - file: /etc/haproxy/haproxy.cfg
    - require:
      - pkg: haproxy
      - file: /etc/haproxy/haproxy.cfg


/etc/haproxy/haproxy.cfg:
  file.managed:
    - source: salt://haproxy/config/haproxy.cfg.jinja
    - template: jinja
    - user: root
    - group: root
    - mode: 644
    - require:
      - pkg: haproxy

/etc/ssl/private/hg.python.org.pem:
  file.managed:
    - contents: {{ salt.pillar.tls_certs["hg.python.org"] }}
    - user: root
    - group: root
    - mode: 644

haproxy:
  pkgrepo.managed:
    - ppa: vbernat/haproxy-1.5
    - keyid: CFFB779AADC995E4F350A060505D97A41C61B9CD
    - require_in:
      - pkg: haproxy

  pkg:
    - latest

  service.running:
    - enable: True
    - reload: True
    - watch:
      - file: /etc/haproxy/haproxy.cfg
    - require:
      - pkg: haproxy
      - file: /etc/haproxy/haproxy.cfg


/etc/haproxy/haproxy.cfg:
  file.managed:
    - source: salt://haproxy/config/haproxy.cfg.jinja
    - template: jinja
    - user: root
    - group: root
    - mode: 644
    - require:
      - pkg: haproxy

/etc/ssl/private/hg.python.org.pem:
  file.managed:
    - contents: {{ salt["pillar"]["tls_certs"]["hg.python.org"] }}
    - user: root
    - group: root
    - mode: 644

Fix the declaration of the tls certificate
Fix the declaration of the tls certificate

python/psf-salt,zware/psf-salt,zware/psf-salt,zooba/psf-salt,python/psf-salt,zware/psf-salt,dstufft/psf-salt,caktus/psf-salt,zooba/psf-salt,zware/psf-salt,zooba/psf-salt,caktus/psf-salt,dstufft/psf-salt,dstufft/psf-salt,caktus/psf-salt,python/psf-salt,python/psf-salt