test(_mapdata): add verification files for new platforms
* `fedora-33` * `gentoo-2-sysd` * `gentoo-2-sysv` * `opensuse-tumbleweed` * `oraclelinux-7` * `oraclelinux-8`
This commit is contained in:
parent
c93fa78805
commit
96a5724ffc
6 changed files with 420 additions and 0 deletions
70
test/integration/default/files/_mapdata/fedora-33.yaml
Normal file
70
test/integration/default/files/_mapdata/fedora-33.yaml
Normal file
|
@ -0,0 +1,70 @@
|
|||
# yamllint disable rule:indentation rule:line-length
|
||||
# Fedora-33
|
||||
---
|
||||
values:
|
||||
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
|
||||
users:
|
||||
johndoe:
|
||||
- ALL=(ALL) ALL
|
||||
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
||||
kitchen:
|
||||
- 'ALL=(root) NOPASSWD: ALL'
|
70
test/integration/default/files/_mapdata/gentoo-2-sysd.yaml
Normal file
70
test/integration/default/files/_mapdata/gentoo-2-sysd.yaml
Normal file
|
@ -0,0 +1,70 @@
|
|||
# yamllint disable rule:indentation rule:line-length
|
||||
# Gentoo-2
|
||||
---
|
||||
values:
|
||||
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: app-admin/sudo
|
||||
purge_includedir: false
|
||||
users:
|
||||
johndoe:
|
||||
- ALL=(ALL) ALL
|
||||
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
||||
kitchen:
|
||||
- 'ALL=(root) NOPASSWD: ALL'
|
70
test/integration/default/files/_mapdata/gentoo-2-sysv.yaml
Normal file
70
test/integration/default/files/_mapdata/gentoo-2-sysv.yaml
Normal file
|
@ -0,0 +1,70 @@
|
|||
# yamllint disable rule:indentation rule:line-length
|
||||
# Gentoo-2
|
||||
---
|
||||
values:
|
||||
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: app-admin/sudo
|
||||
purge_includedir: false
|
||||
users:
|
||||
johndoe:
|
||||
- ALL=(ALL) ALL
|
||||
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
||||
kitchen:
|
||||
- 'ALL=(root) NOPASSWD: ALL'
|
|
@ -0,0 +1,70 @@
|
|||
# yamllint disable rule:indentation rule:line-length
|
||||
# openSUSE Tumbleweed-yyyymmdd
|
||||
---
|
||||
values:
|
||||
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
|
||||
users:
|
||||
johndoe:
|
||||
- ALL=(ALL) ALL
|
||||
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
||||
kitchen:
|
||||
- 'ALL=(root) NOPASSWD: ALL'
|
70
test/integration/default/files/_mapdata/oraclelinux-7.yaml
Normal file
70
test/integration/default/files/_mapdata/oraclelinux-7.yaml
Normal file
|
@ -0,0 +1,70 @@
|
|||
# yamllint disable rule:indentation rule:line-length
|
||||
# Oracle Linux Server-7
|
||||
---
|
||||
values:
|
||||
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
|
||||
users:
|
||||
johndoe:
|
||||
- ALL=(ALL) ALL
|
||||
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
||||
kitchen:
|
||||
- 'ALL=(root) NOPASSWD: ALL'
|
70
test/integration/default/files/_mapdata/oraclelinux-8.yaml
Normal file
70
test/integration/default/files/_mapdata/oraclelinux-8.yaml
Normal file
|
@ -0,0 +1,70 @@
|
|||
# yamllint disable rule:indentation rule:line-length
|
||||
# Oracle Linux Server-8
|
||||
---
|
||||
values:
|
||||
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
|
||||
users:
|
||||
johndoe:
|
||||
- ALL=(ALL) ALL
|
||||
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
||||
kitchen:
|
||||
- 'ALL=(root) NOPASSWD: ALL'
|
Loading…
Reference in a new issue