2021-06-02 03:43:49 +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.
|
|
|
|
class zulip_ops::teleport::node {
|
|
|
|
include zulip_ops::teleport::base
|
|
|
|
|
2021-06-02 03:44:37 +02:00
|
|
|
concat { '/etc/teleport_node.yaml':
|
|
|
|
ensure => present,
|
2021-06-02 03:43:49 +02:00
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
2023-03-15 15:37:54 +01:00
|
|
|
notify => Service['teleport_node'],
|
2021-06-02 03:44:37 +02:00
|
|
|
}
|
|
|
|
concat::fragment { 'teleport_node_base':
|
|
|
|
target => '/etc/teleport_node.yaml',
|
2021-06-02 03:43:49 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/teleport_node.yaml',
|
2021-06-02 03:44:37 +02:00
|
|
|
order => '01',
|
2021-06-02 03:43:49 +02:00
|
|
|
}
|
|
|
|
|
2023-03-15 15:37:54 +01:00
|
|
|
zulip_ops::teleport::part { 'node': }
|
2021-06-02 03:43:49 +02:00
|
|
|
}
|