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
F4053004: D1021.id2606.diff
Fri, Jan 24, 06:14
F4052436: D1021.id2606.diff
Fri, Jan 24, 02:32
Unknown Object (File)
Wed, Jan 22, 23:27
Unknown Object (File)
Thu, Jan 16, 06:13
Unknown Object (File)
Sun, Jan 12, 18:14
Unknown Object (File)
Sun, Jan 12, 05:57
Unknown Object (File)
Thu, Jan 9, 09:43
Unknown Object (File)
Thu, Jan 9, 02:52
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.