Puppet Class: sshkeymanager::webapp::user

Defined in:
manifests/webapp/user.pp

Overview

Parameters:

  • user (Any)
  • home (Any)
  • group (Any)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/webapp/user.pp', line 3

class sshkeymanager::webapp::user (
  $user,
  $home,
  $group,
) {

  group { $group:
    ensure => present,
  }

  user { $user:
    ensure  => present,
    shell   => '/bin/bash',
    comment => 'sshkeymanager django app',
    home    => $home,
    gid     => $group,
    require => Group[$group],
  }

  file { $home:
    ensure => directory,
    owner  => $user,
    group  => $group,
    mode   => '0755',
  }

}