Files
zulip/puppet/zulip_ops/manifests/teleport/application.pp
Alex Vandiver 61b6fc865c puppet: Add a label to teleport applications, to allow RBAC.
Roles can only grant or deny access based on labels; set one based on
the application name.
2021-06-08 15:19:04 -07:00

15 lines
416 B
Puppet

# @summary Adds an http "application" to the Teleport configuration for the host.
#
# See https://goteleport.com/docs/application-access/
define zulip_ops::teleport::application (
$port,
$description = '',
$order = '50',
) {
concat::fragment { "teleport_app_${name}":
target => '/etc/teleport_node.yaml',
order => $order,
content => template('zulip_ops/teleport_app.yaml.template.erb'),
}
}