eda47f71e8
BREAKING CHANGE: The formula has been refactored to accomodate multiple packages, archives, users, and repos. Update your pillars and top states
19 lines
459 B
Plaintext
19 lines
459 B
Plaintext
# -*- coding: utf-8 -*-
|
|
# vim: ft=sls
|
|
|
|
{#- Get the `tplroot` from `tpldir` #}
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
{%- from tplroot ~ "/map.jinja" import prometheus with context %}
|
|
|
|
{%- for name in prometheus.wanted %}
|
|
|
|
prometheus-config-user-clean-{{ name }}-user-absent:
|
|
user.absent:
|
|
- name: {{ name }}
|
|
group.absent:
|
|
- name: {{ name }}
|
|
- require:
|
|
- user: prometheus-config-user-clean-{{ name }}-user-absent
|
|
|
|
{%- endfor %}
|