From b7aa04db2828284013ea5ba85f388c67e11599ee Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Mon, 21 Dec 2020 22:00:30 +0000 Subject: [PATCH] test(_mapdata): fix existing verification files --- .../default/files/_mapdata/amazonlinux-1.yaml | 131 +++++++++--------- .../default/files/_mapdata/amazonlinux-2.yaml | 131 +++++++++--------- .../files/_mapdata/arch-base-latest.yaml | 131 +++++++++--------- .../default/files/_mapdata/centos-6.yaml | 131 +++++++++--------- .../default/files/_mapdata/centos-7.yaml | 131 +++++++++--------- .../default/files/_mapdata/centos-8.yaml | 131 +++++++++--------- .../default/files/_mapdata/debian-10.yaml | 131 +++++++++--------- .../default/files/_mapdata/debian-9.yaml | 131 +++++++++--------- .../default/files/_mapdata/fedora-31.yaml | 131 +++++++++--------- .../default/files/_mapdata/fedora-32.yaml | 131 +++++++++--------- .../default/files/_mapdata/opensuse-15.yaml | 131 +++++++++--------- .../default/files/_mapdata/ubuntu-16.yaml | 131 +++++++++--------- .../default/files/_mapdata/ubuntu-18.yaml | 131 +++++++++--------- .../default/files/_mapdata/ubuntu-20.yaml | 131 +++++++++--------- 14 files changed, 910 insertions(+), 924 deletions(-) diff --git a/test/integration/default/files/_mapdata/amazonlinux-1.yaml b/test/integration/default/files/_mapdata/amazonlinux-1.yaml index 9575548..5caf6d5 100644 --- a/test/integration/default/files/_mapdata/amazonlinux-1.yaml +++ b/test/integration/default/files/_mapdata/amazonlinux-1.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Amazon Linux AMI-2018 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/amazonlinux-2.yaml b/test/integration/default/files/_mapdata/amazonlinux-2.yaml index 61b0f1a..032fb5b 100644 --- a/test/integration/default/files/_mapdata/amazonlinux-2.yaml +++ b/test/integration/default/files/_mapdata/amazonlinux-2.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Amazon Linux-2 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/arch-base-latest.yaml b/test/integration/default/files/_mapdata/arch-base-latest.yaml index 66d0d5f..0a9406c 100644 --- a/test/integration/default/files/_mapdata/arch-base-latest.yaml +++ b/test/integration/default/files/_mapdata/arch-base-latest.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Arch --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/centos-6.yaml b/test/integration/default/files/_mapdata/centos-6.yaml index b690c79..cc7a84e 100644 --- a/test/integration/default/files/_mapdata/centos-6.yaml +++ b/test/integration/default/files/_mapdata/centos-6.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # CentOS-6 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/centos-7.yaml b/test/integration/default/files/_mapdata/centos-7.yaml index 2bb1c53..d075933 100644 --- a/test/integration/default/files/_mapdata/centos-7.yaml +++ b/test/integration/default/files/_mapdata/centos-7.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # CentOS Linux-7 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/centos-8.yaml b/test/integration/default/files/_mapdata/centos-8.yaml index bac8e20..38f574d 100644 --- a/test/integration/default/files/_mapdata/centos-8.yaml +++ b/test/integration/default/files/_mapdata/centos-8.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # CentOS Linux-8 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/debian-10.yaml b/test/integration/default/files/_mapdata/debian-10.yaml index 0492b71..a1d3032 100644 --- a/test/integration/default/files/_mapdata/debian-10.yaml +++ b/test/integration/default/files/_mapdata/debian-10.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Debian-10 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/debian-9.yaml b/test/integration/default/files/_mapdata/debian-9.yaml index 2931695..f386a43 100644 --- a/test/integration/default/files/_mapdata/debian-9.yaml +++ b/test/integration/default/files/_mapdata/debian-9.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Debian-9 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/fedora-31.yaml b/test/integration/default/files/_mapdata/fedora-31.yaml index d9ee555..dc1c7c5 100644 --- a/test/integration/default/files/_mapdata/fedora-31.yaml +++ b/test/integration/default/files/_mapdata/fedora-31.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Fedora-31 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/fedora-32.yaml b/test/integration/default/files/_mapdata/fedora-32.yaml index c07e8ec..785cd50 100644 --- a/test/integration/default/files/_mapdata/fedora-32.yaml +++ b/test/integration/default/files/_mapdata/fedora-32.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Fedora-32 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/opensuse-15.yaml b/test/integration/default/files/_mapdata/opensuse-15.yaml index 5a757b5..c21354e 100644 --- a/test/integration/default/files/_mapdata/opensuse-15.yaml +++ b/test/integration/default/files/_mapdata/opensuse-15.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Leap-15 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/ubuntu-16.yaml b/test/integration/default/files/_mapdata/ubuntu-16.yaml index fbf96f4..2c61653 100644 --- a/test/integration/default/files/_mapdata/ubuntu-16.yaml +++ b/test/integration/default/files/_mapdata/ubuntu-16.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Ubuntu-16.04 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/ubuntu-18.yaml b/test/integration/default/files/_mapdata/ubuntu-18.yaml index a514554..646c083 100644 --- a/test/integration/default/files/_mapdata/ubuntu-18.yaml +++ b/test/integration/default/files/_mapdata/ubuntu-18.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Ubuntu-18.04 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL' diff --git a/test/integration/default/files/_mapdata/ubuntu-20.yaml b/test/integration/default/files/_mapdata/ubuntu-20.yaml index 76f85c0..c9fe179 100644 --- a/test/integration/default/files/_mapdata/ubuntu-20.yaml +++ b/test/integration/default/files/_mapdata/ubuntu-20.yaml @@ -1,70 +1,69 @@ # yamllint disable rule:indentation rule:line-length # Ubuntu-20.04 --- -sudoers: - aliases: - commands: - PROCESSES: - - /usr/bin/nice - - /bin/kill - - /usr/bin/renice - - /usr/bin/pkill - - /usr/bin/top - hosts: - WEBSERVERS: - - www1 - - www2 - - www3 - users: - ADMINS: - - millert - - dowdy - - mikef - arch: amd64 - configpath: /etc - defaults: - command_list: - PROCESSES: noexec - generic: - - env_reset - - mail_badpass - - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - host_list: - www1: log_year, logfile=/var/log/sudo.log - runas_list: - root: '!set_logname' - user_list: - ADMINS: '!lecture' - johndoe: '!requiretty' - execprefix: /usr/sbin - group: root - groups: - sudo: - - ALL=(ALL) ALL - - 'ALL=(nodejs) NOPASSWD: ALL' - included_files: - /etc/sudoers.d/extra-file: - users: - foo: - - ALL=(ALL) ALL - extra-file-2: - groups: - bargroup: - - 'ALL=(ALL) NOPASSWD: ALL' - extra-file-3: - netgroups: - other_netgroup: - - ALL=(ALL) ALL - includedir: /etc/sudoers.d - manage_main_config: true - netgroups: - sysadmins: - - ALL=(ALL) ALL - pkg: sudo - purge_includedir: false +aliases: + commands: + PROCESSES: + - /usr/bin/nice + - /bin/kill + - /usr/bin/renice + - /usr/bin/pkill + - /usr/bin/top + hosts: + WEBSERVERS: + - www1 + - www2 + - www3 users: - johndoe: - - ALL=(ALL) ALL - - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' - kitchen: - - 'ALL=(root) NOPASSWD: ALL' + ADMINS: + - millert + - dowdy + - mikef +arch: amd64 +configpath: /etc +defaults: + command_list: + PROCESSES: noexec + generic: + - env_reset + - mail_badpass + - secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + host_list: + www1: log_year, logfile=/var/log/sudo.log + runas_list: + root: '!set_logname' + user_list: + ADMINS: '!lecture' + johndoe: '!requiretty' +execprefix: /usr/sbin +group: root +groups: + sudo: + - ALL=(ALL) ALL + - 'ALL=(nodejs) NOPASSWD: ALL' +included_files: + /etc/sudoers.d/extra-file: + users: + foo: + - ALL=(ALL) ALL + extra-file-2: + groups: + bargroup: + - 'ALL=(ALL) NOPASSWD: ALL' + extra-file-3: + netgroups: + other_netgroup: + - ALL=(ALL) ALL +includedir: /etc/sudoers.d +manage_main_config: true +netgroups: + sysadmins: + - ALL=(ALL) ALL +pkg: sudo +purge_includedir: false +users: + johndoe: + - ALL=(ALL) ALL + - 'ALL=(root) NOPASSWD: /etc/init.d/httpd' + kitchen: + - 'ALL=(root) NOPASSWD: ALL'