Page MenuHomeDevCentral

Allow members of deploy group to run commands as deploy user
ClosedPublic

Authored by dereckson on Sep 28 2017, 13:31.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 12:17
Unknown Object (File)
Sat, Nov 9, 16:55
Unknown Object (File)
Wed, Nov 6, 17:46
Unknown Object (File)
Thu, Oct 24, 03:54
Unknown Object (File)
Wed, Oct 23, 09:45
Unknown Object (File)
Oct 9 2024, 08:36
Unknown Object (File)
Oct 9 2024, 04:36
Unknown Object (File)
Oct 9 2024, 03:08
Subscribers

Details

Summary

This is useful for manual git pull in deployment staging
directories.

Test Plan
$ 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

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Sep 28 2017, 13:58
This revision was automatically updated to reflect the committed changes.