SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     # Define: create_user
  2.     # Parameters:
  3.     # $user, $password, $group
  4.     #
  5.     define create_user ($user, $password, $group) {
  6.         user {
  7.         "$user":
  8.             ensure     => "present",
  9.             gid        => "$group",
  10.             home       => "/home/$user",
  11.             shell      => "/bin/bash",
  12.             managehome => true,
  13.             password   => "$password",
  14.         }
  15.        
  16.         group {
  17.         "$group":
  18.             ensure => "present",
  19.         }
  20.     }
RAW Paste Data
Top