Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
deploy-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
deploy-formula
Commits
4a255176
Commit
4a255176
authored
4 years ago
by
Jan Philipp Timme
Browse files
Options
Downloads
Patches
Plain Diff
Attempt to only use managed blocks for ssh known_hosts and config files
parent
269b8552
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
deploy/user.sls
+29
-6
29 additions, 6 deletions
deploy/user.sls
with
29 additions
and
6 deletions
deploy/user.sls
+
29
−
6
View file @
4a255176
...
@@ -5,19 +5,42 @@ deployer:
...
@@ -5,19 +5,42 @@ deployer:
group.absent: []
group.absent: []
/root/.
ssh
/
known_hosts:
deploy_user_
ssh
_
known_hosts
_file_present
:
file.managed:
file.managed:
- source: salt://deploy/tpl/ssh/known_hosts
- name: /root/.ssh/known_hosts
- create: True
- makedirs: True
- user: root
- user: root
- group: root
- group: root
- mode: 600
deploy_user_add_managed_host_keys_to_known_hosts:
file.blockreplace:
- name: /root/.ssh/known_hosts
- append_if_not_found: True
- show_changes: True
- source: salt://deploy/tpl/ssh/known_hosts
- makedirs: True
- makedirs: True
- require:
- file: deploy_user_ssh_known_hosts_file_present
/root/.
ssh
/
config:
deploy_users_
ssh
_
config
_file_present
:
file.managed:
file.managed:
- source: salt://deploy/tpl/ssh/config
- name: /root/.ssh/config
- create: True
- makedirs: True
- user: root
- user: root
- group: root
- group: root
- makedirs: True
- mode: 600
deploy_users_add_managed_config_to_ssh_config_file:
file.blockreplace:
- name: /root/.ssh/config
- append_if_not_found: True
- show_changes: True
- source: salt://deploy/tpl/ssh/config
- require:
- file: deploy_users_ssh_config_file_present
deploy_key:
deploy_key:
file.managed:
file.managed:
...
...
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