summaryrefslogtreecommitdiffstats
path: root/roles/openshift_openstack/templates
diff options
context:
space:
mode:
authorNaga Ravi Chaitanya Elluri <nelluri@redhat.com>2018-02-01 12:14:29 -0500
committerNaga Ravi Chaitanya Elluri <nelluri@redhat.com>2018-02-01 12:31:04 -0500
commit9a4e30541e9be2f9b54a51f6d2a77131d073e198 (patch)
tree4bb75be3f764407ad126b575e7e27da06476611f /roles/openshift_openstack/templates
parent4fe88b001295566d49db1fe711870bf43c40c1ab (diff)
downloadopenshift-9a4e30541e9be2f9b54a51f6d2a77131d073e198.tar.gz
openshift-9a4e30541e9be2f9b54a51f6d2a77131d073e198.tar.bz2
openshift-9a4e30541e9be2f9b54a51f6d2a77131d073e198.tar.xz
openshift-9a4e30541e9be2f9b54a51f6d2a77131d073e198.zip
Parameterize user and disable_root options in cloud config
This commit will allow the user to login as root. By default, the user is set to openshift and disable_root is set to true.
Diffstat (limited to 'roles/openshift_openstack/templates')
-rw-r--r--roles/openshift_openstack/templates/user_data.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_openstack/templates/user_data.j2 b/roles/openshift_openstack/templates/user_data.j2
index eb65f7cec..ccaa5d464 100644
--- a/roles/openshift_openstack/templates/user_data.j2
+++ b/roles/openshift_openstack/templates/user_data.j2
@@ -1,9 +1,9 @@
#cloud-config
-disable_root: true
+disable_root: {{ openshift_openstack_disable_root }}
system_info:
default_user:
- name: openshift
+ name: {{ openshift_openstack_user }}
sudo: ["ALL=(ALL) NOPASSWD: ALL"]
write_files: