Skip to content
Snippets Groups Projects
oracleusers.pp 590 B
Newer Older
# oracle users
class oracledb::oracleusers {
  include oracledb::ntirety

  # Standard sudoers file for Oracle DBAs.
  # TODO: long term strategy is to use /etc/sudoers.d fragments
  base::textline {
    '%dba    ALL = NOPASSWD: /usr/bin/dsmc q se':
      ensure       => '/etc/sudoers';
    'oracle  ALL= NOPASSWD: /usr/bin/tdpoconf PassWord *':
      ensure       => '/etc/sudoers',
      escaped_name => 'oracle  ALL= NOPASSWD: /usr/bin/tdpoconf PassWord \*';
  }

  k5login { '/u01/app/oracle/.k5login':
    purge      => true,
    principals => $oracledb::ntirety::ntiretyusers,
  }
}