Skip to content

Commit

Permalink
feat: supports salt v3000
Browse files Browse the repository at this point in the history
saltstack/salt#56119
slspath ==> tpldir
  • Loading branch information
muddman committed Mar 5, 2020
1 parent d9ad78c commit fd4fe50
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ driver:
# provider: hyperv
# network:
# - ['private_network', bridge: 'Default Switch']
gui: false
gui: true
vagrantfiles:
# stop virtualbox guest additions update
- test/vagrant_vb_guest.rb
Expand Down Expand Up @@ -157,9 +157,9 @@ suites:
provisioner:
salt_bootstrap_options: "-version 2019.2.3 -pythonVersion 3"
# salt_version: latest
# - name: py3-3000
# provisioner:
# salt_bootstrap_options: "-version 3000 -pythonVersion 3"
- name: py3-3000
provisioner:
salt_bootstrap_options: "-version 3000 -pythonVersion 3"
# - name: py2
# provisioner:
# salt_bootstrap_options: "-version 2019.2.3 -pythonVersion 2"
2 changes: 1 addition & 1 deletion windows/system/desktop/optional_features/action.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
{%- from tplroot ~ "/map.jinja" import windows with context %}
{%- if windows.system.enabled and windows.system.desktop.enabled and windows.system.desktop.optional_features.enabled and 'Server' not in grains['osfinger'] %}
{%- set action = sls.split('.')[-1] %}
{%- include slspath + "/optional_features.jinja" %}
{%- include tpldir + "/optional_features.jinja" %}
{%- endif %}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- include slspath + "/action.jinja" %}
{%- include tpldir + "/action.jinja" %}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- include slspath + "/action.jinja" %}
{%- include tpldir + "/action.jinja" %}
2 changes: 1 addition & 1 deletion windows/system/packages/chocolatey/action.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
{%- from "windows/map.jinja" import windows with context %}
{%- if windows.system.enabled and windows.system.packages.saltstack.enabled %}
{%- set action = sls.split('.')[-1] %}
{%- include slspath + "/packages.jinja" %}
{%- include tpldir + "/packages.jinja" %}
{%- endif %}
2 changes: 1 addition & 1 deletion windows/system/packages/saltstack/action.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- from "windows/map.jinja" import windows with context %}
{%- if windows.system.enabled and windows.system.packages.enabled and windows.system.packages.saltstack.enabled %}
{%- set action = sls.split('.')[-1] %}
{%- include slspath + "/pkg.jinja" %}
{%- include tpldir + "/pkg.jinja" %}
{%- endif %}
2 changes: 1 addition & 1 deletion windows/system/packages/saltstack/installed.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- include slspath + "/action.jinja" %}
{%- include tpldir + "/action.jinja" %}
2 changes: 1 addition & 1 deletion windows/system/packages/saltstack/latest.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- include slspath + "/action.jinja" %}
{%- include tpldir + "/action.jinja" %}
2 changes: 1 addition & 1 deletion windows/system/server/features/action.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
{%- from tplroot ~ "/map.jinja" import windows with context %}
{%- if windows.system.enabled and windows.system.server.enabled and windows.system.server.features.enabled and 'Server' in grains['osfinger'] %}
{%- set action = sls.split('.')[-1] %}
{%- include slspath + "/features.jinja" %}
{%- include tpldir + "/features.jinja" %}
{%- endif %}
2 changes: 1 addition & 1 deletion windows/system/server/features/installed.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- include slspath + "/action.jinja" %}
{%- include tpldir + "/action.jinja" %}
2 changes: 1 addition & 1 deletion windows/system/server/features/removed.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- include slspath + "/action.jinja" %}
{%- include tpldir + "/action.jinja" %}
2 changes: 1 addition & 1 deletion windows/system/user/action.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
{%- from tplroot ~ "/map.jinja" import windows with context %}
{%- if windows.system.enabled and windows.system.users.enabled %}
{%- set action = sls.split('.')[-1] %}
{%- include slspath + "/add.jinja" %}
{%- include tpldir + "/add.jinja" %}
{%- endif %}
2 changes: 1 addition & 1 deletion windows/system/user/present.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# vim: ft=sls
{%- include slspath + "/action.jinja" %}
{%- include tpldir + "/action.jinja" %}

0 comments on commit fd4fe50

Please sign in to comment.