summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws_launch_config/templates/cloud-init.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_aws_launch_config/templates/cloud-init.j2')
-rw-r--r--roles/openshift_aws_launch_config/templates/cloud-init.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_aws_launch_config/templates/cloud-init.j2 b/roles/openshift_aws_launch_config/templates/cloud-init.j2
new file mode 100644
index 000000000..1a1e29550
--- /dev/null
+++ b/roles/openshift_aws_launch_config/templates/cloud-init.j2
@@ -0,0 +1,9 @@
+{% if r_openshift_aws_launch_config_bootstrap_token is defined and r_openshift_aws_launch_config_bootstrap_token is not '' %}
+#cloud-config
+write_files:
+- path: /root/csr_kubeconfig
+ owner: root:root
+ permissions: '0640'
+ content: |-
+ {{ r_openshift_aws_launch_config_bootstrap_token }}
+{% endif %}