1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'manifests/master.pp', line 1
class ansiblecore::master ($ansiblecore = 'ansible'){
include ansiblecore::mainuser
package { 'ansible':
name => $ansiblecore,
ensure => installed,
}
file { '/home/ansible/.ssh/id_rsa':
ensure => present,
owner => ansible,
group => ansible,
mode => '0600',
source => "puppet:///modules/ansiblecore/id_rsa",
}
file { '/home/ansible/.ssh/id_rsa.pub':
ensure => present,
owner => ansible,
group => ansible,
mode => '0644',
source => "puppet:///modules/ansiblecore/id_rsa.pub",
}
}
|