Page MenuHomeDevCentral

Allow salt group to run salt-call as root
ClosedPublic

Authored by dereckson on Apr 28 2017, 16:12.
Tags
None
Referenced Files
F24909896: D977.diff
Tue, Mar 17, 16:22
F24909840: D977.id2498.diff
Tue, Mar 17, 16:18
F24909834: D977.id2510.diff
Tue, Mar 17, 16:18
F24909829: D977.id2497.diff
Tue, Mar 17, 16:17
Unknown Object (File)
Wed, Mar 11, 06:26
Unknown Object (File)
Mon, Mar 2, 23:30
Unknown Object (File)
Mon, Mar 2, 01:20
Unknown Object (File)
Sun, Mar 1, 17:06
Subscribers
None

Details

Summary

By default, salt-call runs to the current user. As such, we should
allow to use as root to avoid to first have to touch files/directory,
then to .

Furthermore, it's not convenient to install packages or chown.

Security implication is salt group's members have a root access
to the Salt master too, currently Ysul, in addition to other servers.

Ref. T795.

Test Plan

sudo salt-call --local test.ping

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
allow-salt-call-as-root (branched from master)
Build Status
Buildable 1523
Build 1771: arc lint + arc unit