Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

797 B
Raw Blame
# @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 kandra::teleport::db {
  include kandra::teleport::base

  $fqdn = $facts['networking']['fqdn']
  $hostname = $facts['networking']['hostname']
  $is_ec2 = zulipconf('machine', 'hosting_provider', 'ec2') == 'ec2'
  $join_token = zulipsecret('secrets', 'teleport_join_token', '')
  file { '/etc/teleport_db.yaml':
    ensure  => file,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => template('kandra/teleport_db.yaml.template.erb'),
    before  => Kandra::Teleport::Part['db'],
    notify  => Exec['reload teleport_db'],
  }

  kandra::teleport::part { 'db': }
}