Puppet Class: ansiblecore::target
- Defined in:
- manifests/target.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'manifests/target.pp', line 1
class ansiblecore::target ($ssh_key_pub = '') {
include ansiblecore::mainuser
file { '/home/ansible/.ssh/authorized_keys':
ensure => present,
owner => 'ansible',
group => 'ansible',
mode => '0600',
content => $ssh_key_pub,
}
file { '/etc/sudoers.d/ansible':
ensure => present,
content => 'ansible ALL=(ALL) NOPASSWD: ALL',
}
}
|