From fc50bd1884aa824dfe072da07b9f996691440220 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 6 Feb 2024 11:28:43 -0600 Subject: [PATCH] insert format declaration in salt files --- salt_content/gitfs/pillar/pkg/init.sls | 3 +++ salt_content/gitfs/pillar/top.sls | 3 +++ salt_content/gitfs/pillar/users/init.sls | 3 +++ salt_content/gitfs/salt/_reactor/sync_grains.sls | 3 +++ salt_content/gitfs/salt/top.sls | 3 +++ salt_content/gitfs/salt/users/init.sls | 3 +++ salt_content/gitfs/salt/vim/init.sls | 3 +++ salt_content/gitfs/salt/vim/uninstall.sls | 3 +++ salt_content/gitfs/salt/webserver/init.sls | 3 +++ salt_content/gitfs/salt/webserver/uninstall.sls | 3 +++ salt_content/local/salt/neofetch/init.sls | 3 +++ salt_content/local/salt/neofetch/uninstall.sls | 3 +++ 12 files changed, 36 insertions(+) diff --git a/salt_content/gitfs/pillar/pkg/init.sls b/salt_content/gitfs/pillar/pkg/init.sls index 61d6ed1..22a4cd1 100644 --- a/salt_content/gitfs/pillar/pkg/init.sls +++ b/salt_content/gitfs/pillar/pkg/init.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- pkgs: {% if grains['os_family'] == 'RedHat' %} apache: httpd diff --git a/salt_content/gitfs/pillar/top.sls b/salt_content/gitfs/pillar/top.sls index 2083286..acdd72b 100644 --- a/salt_content/gitfs/pillar/top.sls +++ b/salt_content/gitfs/pillar/top.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- base: '*': - users diff --git a/salt_content/gitfs/pillar/users/init.sls b/salt_content/gitfs/pillar/users/init.sls index 4393312..b77099c 100644 --- a/salt_content/gitfs/pillar/users/init.sls +++ b/salt_content/gitfs/pillar/users/init.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- users: jake: 1001 jason: 1002 diff --git a/salt_content/gitfs/salt/_reactor/sync_grains.sls b/salt_content/gitfs/salt/_reactor/sync_grains.sls index 62ab758..6e7f554 100644 --- a/salt_content/gitfs/salt/_reactor/sync_grains.sls +++ b/salt_content/gitfs/salt/_reactor/sync_grains.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- sync_grains: local.saltutil.sync_grains: - tgt: {{ data['id'] }} \ No newline at end of file diff --git a/salt_content/gitfs/salt/top.sls b/salt_content/gitfs/salt/top.sls index 6760f1b..0181db2 100644 --- a/salt_content/gitfs/salt/top.sls +++ b/salt_content/gitfs/salt/top.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- base: '*': - vim diff --git a/salt_content/gitfs/salt/users/init.sls b/salt_content/gitfs/salt/users/init.sls index 9509627..43e42a6 100644 --- a/salt_content/gitfs/salt/users/init.sls +++ b/salt_content/gitfs/salt/users/init.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- {% for user, uid in pillar.get('users', {}).items() %} {{user}}: user.present: diff --git a/salt_content/gitfs/salt/vim/init.sls b/salt_content/gitfs/salt/vim/init.sls index 8c5b13a..2d468f1 100644 --- a/salt_content/gitfs/salt/vim/init.sls +++ b/salt_content/gitfs/salt/vim/init.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- install_vim: pkg.installed: - name: {{ pillar['pkgs']['vim'] }} diff --git a/salt_content/gitfs/salt/vim/uninstall.sls b/salt_content/gitfs/salt/vim/uninstall.sls index c93f7e9..c12c087 100644 --- a/salt_content/gitfs/salt/vim/uninstall.sls +++ b/salt_content/gitfs/salt/vim/uninstall.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- uninstall_vim: pkg.removed: - name: {{ pillar['pkgs']['vim'] }} diff --git a/salt_content/gitfs/salt/webserver/init.sls b/salt_content/gitfs/salt/webserver/init.sls index 6bdc6b7..206775d 100644 --- a/salt_content/gitfs/salt/webserver/init.sls +++ b/salt_content/gitfs/salt/webserver/init.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- install_apache: pkg.installed: - name: {{ pillar['pkgs']['apache'] }} diff --git a/salt_content/gitfs/salt/webserver/uninstall.sls b/salt_content/gitfs/salt/webserver/uninstall.sls index 1ac2ddd..a48fb82 100644 --- a/salt_content/gitfs/salt/webserver/uninstall.sls +++ b/salt_content/gitfs/salt/webserver/uninstall.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- uninstall_apache: pkg.removed: - name: {{ pillar['pkgs']['apache'] }} diff --git a/salt_content/local/salt/neofetch/init.sls b/salt_content/local/salt/neofetch/init.sls index c1d8ddf..f0faa91 100644 --- a/salt_content/local/salt/neofetch/init.sls +++ b/salt_content/local/salt/neofetch/init.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- {% if grains['os_family'] == 'RedHat' %} install_epel_repo: pkg.installed: diff --git a/salt_content/local/salt/neofetch/uninstall.sls b/salt_content/local/salt/neofetch/uninstall.sls index 2d8368d..c07f3df 100644 --- a/salt_content/local/salt/neofetch/uninstall.sls +++ b/salt_content/local/salt/neofetch/uninstall.sls @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- uninstall_neofetch: pkg.removed: - name: neofetch