Page MenuHomeDevCentral

init.sls
No OneTemporary

init.sls

# -------------------------------------------------------------
# Salt — Router — CARP
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import packages_prefixes with context %}
/etc/rc.conf.d/netif/carp:
file.managed:
- source: salt://roles/router/carp/files/carp.rc
- template: jinja
- context:
carp_entries: {{ salt['node.get_carp_entries']() }}
- mode: '0644'
/boot/loader.conf.d/carp.conf:
file.managed:
- source: salt://roles/router/carp/files/carp.conf
- mode: '0644'
carp_switch_pip:
pkg.installed:
- name: {{ packages_prefixes.python3 }}pip
carp_switch_dependencies:
cmd.run:
- name: python3 -m pip install ovh secretsmith
- creates: {{ salt['python.get_site_packages_directory']() }}/secretsmith
/usr/local/etc/secrets/carp-secretsmith.yaml:
file.managed:
- source: salt://roles/router/carp/files/secrets.conf
- mode: 400
- makedirs: True
- show_changes: False
- template: jinja
- context:
vault:
approle: {{ salt["credentials.read_secret"]("network/router/vault") }}
addr: {{ pillar["nasqueron_services"]["vault_url"] }}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 6, 21:12 (1 d, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4191926
Default Alt Text
init.sls (1 KB)

Event Timeline