Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
fbk-formulas
fbkusers
Commits
955a6e7f
Commit
955a6e7f
authored
Aug 27, 2020
by
Francesco Gionghi
Browse files
fixing import map.jinja
parent
a0e68e7a
Changes
7
Show whitespace changes
Inline
Side-by-side
fbkusers/createuser/createuser.sls
View file @
955a6e7f
{#- Get the `tplroot` from `tpldir` #}
{%- set fbkusersroot = slspath.split('/')[0] %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers
-settings
with context %}
{% if pillar.fbkusers is defined %}
...
...
fbkusers/fsperm/fsperm.sls
View file @
955a6e7f
{#- Get the `tplroot` from `tpldir` #}
{%- set fbkusersroot = slspath.split('/')[0] %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers
-settings
with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers %}
...
...
fbkusers/group/groups.sls
View file @
955a6e7f
{#- Get the `tplroot` from `tpldir` #}
{%- set fbkusersroot = slspath.split('/')[0] %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers
-settings
with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers %}
...
...
fbkusers/map.jinja
View file @
955a6e7f
...
...
@@ -46,5 +46,5 @@
)
%}
{%
-
set
fbkusers
=
config
%}
{%
-
set
fbkusers
-
settings
=
config
%}
fbkusers/sshkey/sshkey.sls
View file @
955a6e7f
{#- Get the `tplroot` from `tpldir` #}
{%- set fbkusersroot = slspath.split('/')[0] %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers
-settings
with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers %}
...
...
fbkusers/sudo/sudocmd.sls
View file @
955a6e7f
{#- Get the `tplroot` from `tpldir` #}
{%- set fbkusersroot = slspath.split('/')[0] %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers
-settings
with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers %}
...
...
fbkusers/sudo/sudoservice.sls
View file @
955a6e7f
{#- Get the `tplroot` from `tpldir` #}
{%- set fbkusersroot = slspath.split('/')[0] %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers with context %}
{%- from fbkusersroot ~ "/map.jinja" import fbkusers
-settings
with context %}
{% if pillar.fbkusers is defined %}
{% for user, options in fbkusers %}
...
...
@@ -17,7 +17,7 @@
- defaults:
user: {{ user }}
service: {{ service }}
servicecmd: {{ fbkusers['systemctl'] }}
servicecmd: {{ fbkusers
-settings
['systemctl'] }}
/etc/sudoers.d/{{ user }}-{{ service }}:
file.managed:
...
...
@@ -26,7 +26,7 @@
- defaults:
user: {{ user }}
service: {{ service }}
servicecmd: {{ fbkusers['systemctl'] }}
servicecmd: {{ fbkusers
-settings
['systemctl'] }}
{% endfor %}
{% endif %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment