Explorar el Código

Merge pull request #282 from rocket-labs-sysadmins/beacons

Added beacon configuration support
tags/v0.57.0
Niels Abspoel hace 7 años
padre
commit
9e42d32000
Se han modificado 3 ficheros con 25 adiciones y 2 borrados
  1. +15
    -1
      pillar.example
  2. +9
    -0
      salt/files/minion.d/beacons.conf
  3. +1
    -1
      salt/files/minion.d/f_defaults.conf

+ 15
- 1
pillar.example Ver fichero

@@ -141,7 +141,7 @@ salt:
auth_keytab: /root/auth.keytab
auth_principal: kadmin/admin

# optional engine configuration
# optional engine configuration
engines:
slack:
token: xoxp-XXXXX-XXXXXXX
@@ -157,6 +157,20 @@ salt:
type: runner
cmd: jobs.list_jobs

# optional beacons configuration
beacons:
load:
1m:
- 0.0
- 2.0
5m:
- 0.0
- 1.5
15m:
- 0.1
- 1.0
interval: 10


# salt cloud config
cloud:

+ 9
- 0
salt/files/minion.d/beacons.conf Ver fichero

@@ -0,0 +1,9 @@
#
# This file is managed by Salt! Do not edit by hand!
#
{%- set beacons = salt['pillar.get']('salt:beacons') -%}
{%- set beacons = salt['pillar.get']('salt:minion:beacons', default=beacons, merge=True) -%}
{%- if beacons %}
beacons:
{{ beacons | yaml(False) | indent(2) }}
{%- endif -%}

+ 1
- 1
salt/files/minion.d/f_defaults.conf Ver fichero

@@ -1,7 +1,7 @@
# This file managed by Salt, do not edit by hand!!
# Based on salt version 2015.8.7 default config
#
{% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs', 'engines'] -%}
{% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs', 'engines', 'beacons'] -%}
{% set cfg_salt = pillar.get('salt', {}) -%}
{% set cfg_minion = cfg_salt.get('minion', {}) -%}
{% set default_keys = [] -%}

Cargando…
Cancelar
Guardar