mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-12-18 07:22:17 +00:00
insert format declaration in salt files
This commit is contained in:
parent
c3f229ad89
commit
fc50bd1884
12 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
pkgs:
|
||||
{% if grains['os_family'] == 'RedHat' %}
|
||||
apache: httpd
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
base:
|
||||
'*':
|
||||
- users
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
users:
|
||||
jake: 1001
|
||||
jason: 1002
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
sync_grains:
|
||||
local.saltutil.sync_grains:
|
||||
- tgt: {{ data['id'] }}
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
base:
|
||||
'*':
|
||||
- vim
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
{% for user, uid in pillar.get('users', {}).items() %}
|
||||
{{user}}:
|
||||
user.present:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
install_vim:
|
||||
pkg.installed:
|
||||
- name: {{ pillar['pkgs']['vim'] }}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
uninstall_vim:
|
||||
pkg.removed:
|
||||
- name: {{ pillar['pkgs']['vim'] }}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
install_apache:
|
||||
pkg.installed:
|
||||
- name: {{ pillar['pkgs']['apache'] }}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
uninstall_apache:
|
||||
pkg.removed:
|
||||
- name: {{ pillar['pkgs']['apache'] }}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
{% if grains['os_family'] == 'RedHat' %}
|
||||
install_epel_repo:
|
||||
pkg.installed:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
uninstall_neofetch:
|
||||
pkg.removed:
|
||||
- name: neofetch
|
||||
|
|
Loading…
Reference in a new issue