Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.92 KB | None | 0 0
  1. group { 'l2support':
  2.         ensure => present, }
  3. group { 'l3support':
  4.         ensure => present,}
  5. user { 'vova':
  6.         ensure           => 'present',
  7.         home             => '/home/vova',
  8.         groups            => 'l3support',
  9.         password         => '!!',
  10.         password_max_age => '99999',
  11.         password_min_age => '0',
  12.         shell            => '/bin/bash',
  13. }
  14.  
  15. user { 'ivan':
  16.         ensure           => 'present',
  17.         home             => '/home/ivan',
  18.         groups            => 'l2support',
  19.         password         => '!!',
  20.         password_max_age => '99999',
  21.         password_min_age => '0',
  22.         shell            => '/bin/bash',
  23. }
  24.  
  25.  
  26. sudo::conf { 'l3support':
  27.      ensure  => present,
  28.      content => '%l3support ALL=(ALL) NOPASSWD:ALL',
  29. }
  30. sudo::conf { 'l2support':
  31.      ensure  => present,
  32.      content => '%l2support ALL=/usr/sbin/service nginx restart NOPASSWD:ALL',
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement