2021-06-07 20:53:13 +02:00
|
|
|
# @summary Provide Teleport SSH access to a node.
|
|
|
|
#
|
|
|
|
# https://goteleport.com/docs/admin-guide/#adding-nodes-to-the-cluster
|
|
|
|
# details additional manual steps to allow a node to join the cluster.
|
2024-02-06 21:40:19 +01:00
|
|
|
class kandra::teleport::db {
|
|
|
|
include kandra::teleport::base
|
2021-06-07 20:53:13 +02:00
|
|
|
|
2024-03-25 20:16:16 +01:00
|
|
|
$fqdn = $facts['networking']['fqdn']
|
2024-01-30 20:55:29 +01:00
|
|
|
$is_ec2 = zulipconf('machine', 'hosting_provider', 'ec2') == 'ec2'
|
|
|
|
$join_token = zulipsecret('secrets', 'teleport_join_token', '')
|
2021-06-07 20:53:13 +02:00
|
|
|
file { '/etc/teleport_db.yaml':
|
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
2024-02-06 21:40:19 +01:00
|
|
|
content => template('kandra/teleport_db.yaml.template.erb'),
|
2023-03-15 15:37:54 +01:00
|
|
|
notify => Service['teleport_db'],
|
2021-06-07 20:53:13 +02:00
|
|
|
}
|
|
|
|
|
2024-02-06 21:40:19 +01:00
|
|
|
kandra::teleport::part { 'db': }
|
2021-06-07 20:53:13 +02:00
|
|
|
}
|