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
1b132598
Commit
1b132598
authored
10 years ago
by
Nitin Madhok
Browse files
Options
Downloads
Plain Diff
Merge pull request #97 from aboe76/multi_master
Fix #39 multi master support to minion
parents
22fe873c
23fd8b64
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pillar.example
+8
-0
8 additions, 0 deletions
pillar.example
salt/files/minion.d/_defaults.conf
+19
-0
19 additions, 0 deletions
salt/files/minion.d/_defaults.conf
with
27 additions
and
0 deletions
pillar.example
+
8
−
0
View file @
1b132598
...
...
@@ -30,7 +30,15 @@ salt:
# salt minion config:
minion:
# single master setup
master: salt
# multi master setup
master:
- salt_master_1
- salt_master_2
fileserver_backend:
- git
- roots
...
...
This diff is collapsed.
Click to expand it.
salt/files/minion.d/_defaults.conf
+
19
−
0
View file @
1b132598
...
...
@@ -23,7 +23,26 @@
# Set the location of the salt master server. If the master server cannot be
# resolved, then the minion will fail to start.
# master:salt
{%-
if
'master'
in
cfg_minion
-%}
{%-
if
cfg_minion
[
'master'
]
is
not
string
%}
master
:
{%
for
name
in
cfg_minion
[
'master'
] -%}
- {{
name
}}
{%
endfor
-%}
{%-
else
%}
{{
get_config
(
'master'
,
'salt'
) }}
{%-
endif
%}
{%
elif
'master'
in
cfg_salt
-%}
{%-
if
cfg_salt
[
'master'
]
is
not
string
%}
master
:
{%
for
name
in
cfg_salt
[
'master'
] -%}
- {{
name
}}
{%
endfor
-%}
{%-
else
%}
{{
get_config
(
'master'
,
'salt'
) }}
{%-
endif
-%}
{%-
endif
%}
# If multiple masters are specified in the 'master' setting, the default behavior
# is to always try to connect to them in the order they are listed. If random_master is
...
...
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