Puppet Class: ansiblecore::mainuser
- Defined in:
- manifests/mainuser.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'manifests/mainuser.pp', line 1
class ansiblecore::mainuser {
exec { 'del':
command => 'userdel -r ansible',
path => '/usr/sbin:/usr/bin',
onlyif => 'test ! -f /home/ansible',
}
user { 'ansible':
ensure => present,
uid => '9004',
managehome => true,
home => '/home/ansible',
shell => '/bin/bash',
}
file { '/home/ansible/.ssh':
ensure => 'directory',
owner => ansible,
group => ansible,
mode => '0700',
}
}
|