Home
DevCentral
Search
Configure Global Search
Log In
Transactions
D1021
Change Details
Change Details
Old
New
Diff
``` $ salt-call --local state.apply roles/saltmaster/sudo local: ---------- ID: saltmaster_sudo_capabilities_salt Function: file.managed Name: /usr/local/etc/sudoers.d/salt Result: True Comment: File /usr/local/etc/sudoers.d/salt is in the correct state Started: 13:28:39.682642 Duration: 145.308 ms Changes: ---------- ID: saltmaster_sudo_capabilities_deploy Function: file.managed Name: /usr/local/etc/sudoers.d/deploy Result: True Comment: File /usr/local/etc/sudoers.d/deploy updated Started: 13:28:39.828519 Duration: 19.121 ms Changes: ---------- diff: New file mode: 0644 Summary for local ------------ Succeeded: 2 (changed=1) Failed: 0 ------------ Total states run: 2 Total run time: 164.429 ms ```
``` $ salt-call --local state.apply roles/saltmaster/sudo local: ---------- ID: saltmaster_sudo_capabilities_salt Function: file.managed Name: /usr/local/etc/sudoers.d/salt Result: True Comment: File /usr/local/etc/sudoers.d/salt is in the correct state Started: 13:28:39.682642 Duration: 145.308 ms Changes: ---------- ID: saltmaster_sudo_capabilities_deploy Function: file.managed Name: /usr/local/etc/sudoers.d/deploy Result: True Comment: File /usr/local/etc/sudoers.d/deploy updated Started: 13:28:39.828519 Duration: 19.121 ms Changes: ---------- diff: New file mode: 0644 Summary for local ------------ Succeeded: 2 (changed=1) Failed: 0 ------------ Total states run: 2 Total run time: 164.429 ms $ sudo -u deploy whoami deploy ```
``` $ salt-call --local state.apply roles/saltmaster/sudo local: ---------- ID: saltmaster_sudo_capabilities_salt Function: file.managed Name: /usr/local/etc/sudoers.d/salt Result: True Comment: File /usr/local/etc/sudoers.d/salt is in the correct state Started: 13:28:39.682642 Duration: 145.308 ms Changes: ---------- ID: saltmaster_sudo_capabilities_deploy Function: file.managed Name: /usr/local/etc/sudoers.d/deploy Result: True Comment: File /usr/local/etc/sudoers.d/deploy updated Started: 13:28:39.828519 Duration: 19.121 ms Changes: ---------- diff: New file mode: 0644 Summary for local ------------ Succeeded: 2 (changed=1) Failed: 0 ------------ Total states run: 2 Total run time: 164.429 ms
$ sudo -u deploy whoami deploy
```
Continue