insert format declaration in salt files

This commit is contained in:
John Bowdre 2024-02-06 11:28:43 -06:00
parent c3f229ad89
commit fc50bd1884
12 changed files with 36 additions and 0 deletions

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
pkgs: pkgs:
{% if grains['os_family'] == 'RedHat' %} {% if grains['os_family'] == 'RedHat' %}
apache: httpd apache: httpd

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
base: base:
'*': '*':
- users - users

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
users: users:
jake: 1001 jake: 1001
jason: 1002 jason: 1002

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
sync_grains: sync_grains:
local.saltutil.sync_grains: local.saltutil.sync_grains:
- tgt: {{ data['id'] }} - tgt: {{ data['id'] }}

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
base: base:
'*': '*':
- vim - vim

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
{% for user, uid in pillar.get('users', {}).items() %} {% for user, uid in pillar.get('users', {}).items() %}
{{user}}: {{user}}:
user.present: user.present:

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
install_vim: install_vim:
pkg.installed: pkg.installed:
- name: {{ pillar['pkgs']['vim'] }} - name: {{ pillar['pkgs']['vim'] }}

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
uninstall_vim: uninstall_vim:
pkg.removed: pkg.removed:
- name: {{ pillar['pkgs']['vim'] }} - name: {{ pillar['pkgs']['vim'] }}

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
install_apache: install_apache:
pkg.installed: pkg.installed:
- name: {{ pillar['pkgs']['apache'] }} - name: {{ pillar['pkgs']['apache'] }}

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
uninstall_apache: uninstall_apache:
pkg.removed: pkg.removed:
- name: {{ pillar['pkgs']['apache'] }} - name: {{ pillar['pkgs']['apache'] }}

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
{% if grains['os_family'] == 'RedHat' %} {% if grains['os_family'] == 'RedHat' %}
install_epel_repo: install_epel_repo:
pkg.installed: pkg.installed:

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
uninstall_neofetch: uninstall_neofetch:
pkg.removed: pkg.removed:
- name: neofetch - name: neofetch