- Регистрация
- 04.03.23
- Сообщения
- 451
- Реакции
- 70
Код:
{% set my_host = salt['grains.get']("nodename") %}
{% set gpo_name = 'rbta_ldap_custom_gp_host_sss' %}
{% set gpo = salt['pillar.get']('aldpro-hosts:' + my_host + ':' + gpo_name) %}
{% if salt['pillar.get']('aldpro-hosts:' + my_host) is defined %}
Update nsswitch.conf:
file.line:
- name: /etc/nsswitch.conf
- match: 'group: files sss'
- content: 'group: sss files'
- mode: replace
{% endif %}
Атрибут параметра можно создать любой.