Puppet Class: system_users::root

Defined in:
manifests/root.pp

Summary

Ensure root user and its homedir are setup correctly

Overview

Features:

* Manage the `root` user and its homedir
* Manage permissions on `/root` and ensure it exists


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/root.pp', line 6

class system_users::root {
  user { "root":
    ensure => present,
    uid    => 0,
    gid    => 0,
    home   => "/root",
  }

  file { "/root":
    ensure => directory,
    mode   => "0700",
    owner  => "root",
    group  => "root",
  }
}