Skip to content

Enhance /etc/sudoers.d/HanaSystemReplication#305

Draft
lilyeyes wants to merge 1 commit intoSUSE:mainfrom
lilyeyes:enhance-HanaSystemReplication-sudoers
Draft

Enhance /etc/sudoers.d/HanaSystemReplication#305
lilyeyes wants to merge 1 commit intoSUSE:mainfrom
lilyeyes:enhance-HanaSystemReplication-sudoers

Conversation

@lilyeyes
Copy link
Collaborator

TEAM-9048 - [timeboxed] Evaluate less restrictive /etc/sudoers.d/HanaSystemReplication

TEAM-9048 - [timeboxed] Evaluate less restrictive /etc/sudoers.d/HanaSystemReplication
- {'regexp': '^{{ sap_hana_install_sid | lower }}adm ALL=(ALL) NOPASSWD', 'line': '{{ sap_hana_install_sid | lower }}adm ALL=(ALL) NOPASSWD: SOK_SITEA, SFAIL_SITEA, SOK_SITEB, SFAIL_SITEB'}
- {'regexp': '^Cmnd_Alias HOOK_HELPER', 'line': 'Cmnd_Alias HOOK_HELPER = /usr/sbin/SAPHanaSR-hookHelper --sid={{ sap_hana_install_sid | upper }} --case=checkTakeover'}
- {'regexp': '^{{ sap_hana_install_sid | lower }}adm ALL=(ALL) NOPASSWD', 'line': '{{ sap_hana_install_sid | lower }}adm ALL=(ALL) NOPASSWD: SOK_SITEA, SFAIL_SITEA, SOK_SITEB, SFAIL_SITEB, HOOK_HELPER'}
when: 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add, in the vars: section, something like

vars:
    use_restrictive_sudoer_hooks: true

Then use use_restrictive_sudoer_hooks for the when fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants