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
f17b8f54
Commit
f17b8f54
authored
9 years ago
by
Rene Jochum
Browse files
Options
Downloads
Patches
Plain Diff
Add optional method to remove /etc/salt/master.
Signed-off-by:
Rene Jochum
<
rene@jochums.at
>
parent
1b611c87
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pillar.example
+3
-0
3 additions, 0 deletions
pillar.example
salt/defaults.yaml
+1
-0
1 addition, 0 deletions
salt/defaults.yaml
salt/master.sls
+6
-0
6 additions, 0 deletions
salt/master.sls
with
10 additions
and
0 deletions
pillar.example
+
3
−
0
View file @
f17b8f54
...
@@ -7,6 +7,9 @@ salt:
...
@@ -7,6 +7,9 @@ salt:
# This state will remove "/etc/salt/minion" when you set this to true.
# This state will remove "/etc/salt/minion" when you set this to true.
minion_remove_config: True
minion_remove_config: True
# This state will remove "/etc/salt/master" when you set this to true.
master_remove_config: True
# Set this to False to not have the formula install packages (in the case you
# Set this to False to not have the formula install packages (in the case you
# install Salt via git/pip/etc.)
# install Salt via git/pip/etc.)
install_packages: True
install_packages: True
...
...
This diff is collapsed.
Click to expand it.
salt/defaults.yaml
+
1
−
0
View file @
f17b8f54
...
@@ -7,6 +7,7 @@ salt:
...
@@ -7,6 +7,7 @@ salt:
config_path
:
/etc/salt
config_path
:
/etc/salt
minion_remove_config
:
False
minion_remove_config
:
False
master_remove_config
:
False
minion_service
:
salt-minion
minion_service
:
salt-minion
master_service
:
salt-master
master_service
:
salt-master
...
...
This diff is collapsed.
Click to expand it.
salt/master.sls
+
6
−
0
View file @
f17b8f54
...
@@ -21,6 +21,12 @@ salt-master:
...
@@ -21,6 +21,12 @@ salt-master:
- file: salt-master
- file: salt-master
- file: remove-old-master-conf-file
- file: remove-old-master-conf-file
{% if salt_settings.master_remove_config %}
remove-default-master-conf-file:
file.absent:
- name: {{ salt_settings.config_path }}/master
{% endif %}
# clean up old _defaults.conf file if they have it around
# clean up old _defaults.conf file if they have it around
remove-old-master-conf-file:
remove-old-master-conf-file:
file.absent:
file.absent:
...
...
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