Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
salt-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
salt-formula
Commits
cde11bc1
Commit
cde11bc1
authored
10 years ago
by
Nitin Madhok
Browse files
Options
Downloads
Plain Diff
Merge pull request #99 from aboe76/mine_get_master
add mine_get function to master config
parents
ed0f2fab
b8e53771
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
salt/files/master.d/_defaults.conf
+18
-0
18 additions, 0 deletions
salt/files/master.d/_defaults.conf
with
18 additions
and
0 deletions
salt/files/master.d/_defaults.conf
+
18
−
0
View file @
cde11bc1
...
...
@@ -811,12 +811,30 @@ peer_run:
# The example below enables minion foo.example.com to get 'network.interfaces' mine
# data only, minions web* to get all network.* and disk.* mine data and all other
# minions won't get any mine data.
{%
if
'mine_get'
in
cfg_master
-%}
mine_get
:
{%-
for
minion
,
data
in
cfg_master
[
'mine_get'
]|
dictsort
%}
{{
minion
}}:
{%-
for
command
in
data
%}
- {%
raw
%}
'{% endraw %}{{ command }}{% raw %}'
{%
endraw
%}
{%-
endfor
-%}
{%-
endfor
-%}
{%
elif
'mine_get'
in
cfg_salt
-%}
mine_get
:
{%-
for
minion
,
data
in
cfg_salt
[
'mine_get'
]|
dictsort
%}
{{
minion
}}:
{%-
for
command
in
data
%}
- {%
raw
%}
'{% endraw %}{{ command }}{% raw %}'
{%
endraw
%}
{%-
endfor
-%}
{%-
endfor
-%}
{%
else
-%}
# mine_get:
# foo.example.com:
# - network.interfaces
# web.*:
# - network.*
# - disk.*
{%-
endif
%}
##### Logging settings #####
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment