Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Add a label to teleport applications, to allow RBAC.
Alex Vandiver61b6fc865cc3
diff --git a/puppet/zulip_ops/manifests/profile/nagios.pp b/puppet/zulip_ops/manifests/profile/nagios.ppindex 5caefa2bc01..14867587c58 100644--- a/puppet/zulip_ops/manifests/profile/nagios.pp+++ b/puppet/zulip_ops/manifests/profile/nagios.pp@@ -57,7 +57,10 @@ class zulip_ops::profile::nagios {],notify => Service['apache2'],}- zulip_ops::teleport::application{ 'nagios': port => '3000' }+ zulip_ops::teleport::application{ 'nagios':+ description => 'Monitoring: nagios and munin',+ port => '3000',+ }file { '/etc/nagios3/conf.d/contacts.cfg':require => Package[nagios3],diff --git a/puppet/zulip_ops/manifests/teleport/application.pp b/puppet/zulip_ops/manifests/teleport/application.ppindex e9249decb35..d24f1688c14 100644--- a/puppet/zulip_ops/manifests/teleport/application.pp+++ b/puppet/zulip_ops/manifests/teleport/application.pp@@ -3,11 +3,12 @@# 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 => " - name: ${name}\n uri: http://127.0.0.1:${port}\n",+ content => template('zulip_ops/teleport_app.yaml.template.erb'),}}diff --git a/puppet/zulip_ops/templates/teleport_app.yaml.template.erb b/puppet/zulip_ops/templates/teleport_app.yaml.template.erbnew file mode 100644index 00000000000..5ab500ab5b2--- /dev/null+++ b/puppet/zulip_ops/templates/teleport_app.yaml.template.erb@@ -0,0 +1,8 @@+<%# This is appended to puppet/zulip_ops/files/teleport_node.yaml, so should be+ indented. Specifically, the "-" should be in the same column as the "T" at+ the start of this comment. -%>+ - name: "<%= @name %>"+ description: "<%= @description %>"+ uri: "http://127.0.0.1:<%= @port %>"+ labels:+ name: "<%= @name %>"