Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 line
414B

  1. describe command('grep "" /etc/sudoers.d/*') do
  2. its('stdout') { should_not match /sudogroup0/ }
  3. its('stdout') { should match /salt-ops ALL=\(DBA\) NOPASSWD/ }
  4. its('stdout') { should match /sudogroup2.*localhost=/ }
  5. its('stdout') { should match /db-ops.*less/ }
  6. its('stdout') { should_not match /sudogroup0/ }
  7. its('stdout') { should_not match /sudogroup1 .* !SUDO_RESTRICTED_SU/ }
  8. end