Puppet Class: hubot::install
- Defined in:
- manifests/install.pp
Overview
Class: hubot::install
Installs hubot Private class
Authors
-
Justin Lambert <jlambert@letsevenup.com>
Copyright
Copyright 2013 EvenUp.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'manifests/install.pp', line 16
class hubot::install {
if $caller_module_name != $module_name {
fail("Use of private class ${name} by ${caller_module_name}")
}
group { 'hubot':
ensure => 'present',
system => true,
}
user { 'hubot':
ensure => present,
comment => 'Hubot Service User',
system => true,
gid => 'hubot',
home => $::hubot::root_dir,
shell => '/bin/bash',
managehome => true,
require => Group['hubot'],
}
if $::hubot::build_deps {
package { $::hubot::build_deps:
ensure => 'installed',
before => [ Package['hubot'], Package['coffee-script'] ]
}
}
package { ['hubot', 'coffee-script']:
ensure => 'installed',
require => User['hubot'],
provider => 'npm',
notify => Class['hubot::config'],
}
}
|