Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm sudo wheel rule #362

Merged
merged 3 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hieradata/cluster/auxtel-ccs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ postfix::configs:
smtp_sasl_mechanism_filter:
value: "plain, login"

sudo::purge: false # FIXME
sudo::configs:
auxtel_ccs_cmd:
content: "%auxtel-ccs-cmd ALL=(ccs) NOPASSWD: ALL"
Expand Down
1 change: 1 addition & 0 deletions hieradata/cluster/comcam-ccs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ postfix::configs:
value: "hash:/etc/postfix/sasl_passwd"
smtp_sasl_mechanism_filter:
value: "plain, login"
sudo::purge: false # FIXME
sudo::configs:
comcam_ccs_cmd:
content: "%comcam-ccs-cmd ALL=(ccs) NOPASSWD: ALL"
Expand Down
22 changes: 20 additions & 2 deletions hieradata/org/lsst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,30 @@ ssh::client_options:
GSSAPIAuthentication: "yes"
GSSAPIDelegateCredentials: "yes"

sudo::config_file_replace: false
sudo::purge: false
sudo::config_file_replace: true
sudo::content: "profile/sudo/sudoers.epp"
sudo::purge: true
sudo::configs:
wheel_b: # backup wheel group in case of LDAP failure.
content: "%wheel_b ALL=(ALL) NOPASSWD: ALL"
defaults:
priority: "00"
content: |
Defaults !visiblepw
Defaults always_set_home
Defaults match_group_by_gid
Defaults always_query_group_plugin

Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"

Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin

root ALL=(ALL) ALL
accounts::group_list:
wheel_b: {}
accounts::user_defaults:
Expand Down
2 changes: 2 additions & 0 deletions site/profile/templates/sudo/sudoers.epp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d