Skip to content

Commit

Permalink
Merge pull request #5 from PLOS-Formulas/SRE-650-dev-sudo-stage
Browse files Browse the repository at this point in the history
SRE-650 allow devs root access in stage
  • Loading branch information
heschlie authored Feb 15, 2019
2 parents 32dbb6d + e867790 commit ac990e8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions sudoers/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@
'default': { 'default': 'ALL = (root) NOEXEC:NOPASSWD: SUPPORT' },
'vagrant': { 'default': 'ALL = (ALL:ALL) NOPASSWD: ALL' },
'dev': { 'default': 'ALL = (ALL:ALL) NOPASSWD: ALL' },
'qa': { 'default': 'ALL = (root) NOEXEC:NOPASSWD: SUPPORT',
'plosqa': 'ALL = (root) NOPASSWD: ALL' },
'stage': { 'default': 'ALL = (root) NOEXEC:NOPASSWD: SUPPORT',
'plosqa': 'ALL = (root) NOPASSWD: ALL' },
'qa': {
'default': 'ALL = (root) NOEXEC:NOPASSWD: SUPPORT',
'plosdev': 'ALL = (ALL:ALL) NOPASSWD: ALL',
'plosqa': 'ALL = (ALL:ALL) NOPASSWD: ALL',
},
'stage': {
'default': 'ALL = (root) NOEXEC:NOPASSWD: SUPPORT',
'plosdev': 'ALL = (ALL:ALL) NOPASSWD: ALL',
'plosqa': 'ALL = (ALL:ALL) NOPASSWD: ALL'
}
},
grain='environment',
merge=salt['pillar.get']('group_maps:lookup', None))
Expand Down

0 comments on commit ac990e8

Please sign in to comment.