Testing the saltstack grains variables
This commit is contained in:
parent
d658484639
commit
73ea4d6629
3 changed files with 9 additions and 1 deletions
|
@ -28,3 +28,4 @@ install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- sudo salt-call --local --config=./ --state-output=changes --log-level=quiet --retcode-passthrough state.apply
|
- sudo salt-call --local --config=./ --state-output=changes --log-level=quiet --retcode-passthrough state.apply
|
||||||
|
- cat $HOME/os_family
|
||||||
|
|
2
salty/base/neovim/files/os_fams
Normal file
2
salty/base/neovim/files/os_fams
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Kernel: {{ grains['kernel'] }}
|
||||||
|
OS_Family: {{ grains['os_family'] }}
|
|
@ -1,5 +1,5 @@
|
||||||
neovim-install:
|
neovim-install:
|
||||||
{% if grains['os'] == 'Ubuntu' %}
|
{% if grains['os_family'] == 'Debian' %}
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- ppa: neovim-ppa/unstable
|
- ppa: neovim-ppa/unstable
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -11,3 +11,8 @@ neovim-install:
|
||||||
- name: neovim
|
- name: neovim
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
os-family:
|
||||||
|
file.managed:
|
||||||
|
- name: {{ grains.homedir }}/os_family
|
||||||
|
- source: salt:///neovim/files/os_fams
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue