Skip to content

Instantly share code, notes, and snippets.

@Karunamon
Created March 16, 2016 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Karunamon/a528db0d724544242bcb to your computer and use it in GitHub Desktop.
Save Karunamon/a528db0d724544242bcb to your computer and use it in GitHub Desktop.
# salt-call -l debug --local state.sls ssh_settings --file-root=/srv/salt
local:
----------
ID: ssh_settings
Function: augeas.change
Result: True
Comment: No changes made
Started: 10:54:46.416229
Duration: 1344.752 ms
Changes:
----------
ID: ssh
Function: service.running
Result: False
Comment: The following requisites were not found:
watch:
file: /etc/ssh/sshd_config
Started:
Duration:
Changes:
Summary for local
------------
Succeeded: 1
Failed: 1
------------
Total states run: 2
Total run time: 1.345 s
ssh_settings:
augeas.change:
- context: /etc/ssh/sshd_config
- changes:
- set Host *
- set TCPKeepAlive yes
- set ServerAliveInterval 90
- set PermitRootLogin yes
ssh:
service.running:
- watch:
- file: /etc/ssh/sshd_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment