Skip to content
Snippets Groups Projects
Commit 3fbf2692 authored by skorpy's avatar skorpy :construction_worker:
Browse files

haproxy: init

parent 1e12fe2b
Branches
No related tags found
No related merge requests found
Checking pipeline status
include:
{%- if 'haproxy' in pillar.get('roles', []) %}
- .install
{%- endif %}
{%- from 'haproxy/map.jinja' import haproxy with context %}
haproxy:
pkgrepo.managed:
- humanname: haproxy
- name: {{ haproxy.apt_repo }}
- key_url: {{ haproxy.key_url }}
- file: /etc/apt/sources.list.d/haproxy.list
- clean_file: True
- require_in:
- pkg: haproxy
pkg.installed:
- version: {{ haproxy.version }}
service.running:
- enable: True
{% set haproxy = salt['grains.filter_by']({
'Debian-9': {
'apt_repo': 'deb http://haproxy.debian.net stretch-backports-2.0 main',
'key_url': 'https://haproxy.debian.net/bernat.debian.org.gpg',
'version': '2.0.*'
},
'Debian-10': {
'apt_repo': 'deb http://haproxy.debian.net buster-backports-2.0 main',
'key_url': 'https://haproxy.debian.net/bernat.debian.org.gpg',
'version': '2.0.*'
}
}, merge=salt['pillar.get']('haproxy'), grain='osfinger') %}
......@@ -79,6 +79,9 @@ base:
'roles:pretix':
- match: pillar
- pretix
'roles:haproxy':
- match: pillar
- haproxy
'salt.ffm.freifunk.net':
- salt.master
'edge-*-*.ffm.freifunk.net':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment