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)
Fri, Apr 11, 11:01
Unknown Object (File)
Fri, Apr 11, 02:41
Unknown Object (File)
Fri, Apr 11, 01:54
Unknown Object (File)
Sat, Apr 5, 21:39
Unknown Object (File)
Wed, Apr 2, 14:44
Unknown Object (File)
Wed, Apr 2, 13:23
Unknown Object (File)
Wed, Apr 2, 07:21
Unknown Object (File)
Mon, Mar 31, 16:59
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 Passed
Unit
No Test Coverage
Branch
sudo-deploy (branched from master)
Build Status
Buildable 1602
Build 1850: arc lint + arc unit

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.