Puppet Class: psick::ansible::node
- Defined in:
-
manifests/ansible/node.pp
Summary
Manages Ansible configurations on nodes
Overview
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'manifests/ansible/node.pp', line 3
class psick::ansible::node (
Variant[Boolean,String] $ensure = pick($::psick::ansible::ensure, 'present'),
) {
include ::psick::ansible
if $::psick::ansible::keyshare_method == 'storeconfigs' {
@@sshkey { "ansible_${::fqdn}_rsa":
ensure => $ensure,
host_aliases => [ $::fqdn, $::hostname, $::ipaddress ],
type => 'ssh-rsa',
key => $::sshrsakey,
tag => "ansible_node_${::psick::ansible::master}_rsa"
}
# Authorize master host ssh key for remote connection
Ssh_authorized_key <<| tag == "ansible_master_${::psick::ansible::master}" |>>
}
}
|