summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws/templates
diff options
context:
space:
mode:
authorClayton Coleman <ccoleman@redhat.com>2017-11-05 01:03:05 -0400
committerGitHub <noreply@github.com>2017-11-05 01:03:05 -0400
commit858afb085dab78018f90ff17871b83c1dd9ba5bd (patch)
tree8f1b7e5f3fed085ad1deee7ee2d613fac7d89d69 /roles/openshift_aws/templates
parentf3d21a11f7e8f0602b593433ef0a36dcb362e5a6 (diff)
downloadopenshift-858afb085dab78018f90ff17871b83c1dd9ba5bd.tar.gz
openshift-858afb085dab78018f90ff17871b83c1dd9ba5bd.tar.bz2
openshift-858afb085dab78018f90ff17871b83c1dd9ba5bd.tar.xz
openshift-858afb085dab78018f90ff17871b83c1dd9ba5bd.zip
Revert "Bootstrap enhancements."
Diffstat (limited to 'roles/openshift_aws/templates')
-rw-r--r--roles/openshift_aws/templates/user_data.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_aws/templates/user_data.j2 b/roles/openshift_aws/templates/user_data.j2
index a8c7f9a95..76aebdcea 100644
--- a/roles/openshift_aws/templates/user_data.j2
+++ b/roles/openshift_aws/templates/user_data.j2
@@ -7,8 +7,8 @@ write_files:
owner: 'root:root'
permissions: '0640'
content: |
- openshift_group_type: {{ launch_config_item.key }}
-{% if launch_config_item.key != 'master' %}
+ openshift_group_type: {{ openshift_aws_node_group_type }}
+{% if openshift_aws_node_group_type != 'master' %}
- path: /etc/origin/node/bootstrap.kubeconfig
owner: 'root:root'
permissions: '0640'
@@ -19,7 +19,7 @@ runcmd:
{% if openshift_aws_node_run_bootstrap_startup %}
- [ ansible-playbook, /root/openshift_bootstrap/bootstrap.yml]
{% endif %}
-{% if launch_config_item.key != 'master' %}
+{% if openshift_aws_node_group_type != 'master' %}
- [ systemctl, enable, {% if openshift_deployment_type == 'openshift-enterprise' %}atomic-openshift{% else %}origin{% endif %}-node]
- [ systemctl, start, {% if openshift_deployment_type == 'openshift-enterprise' %}atomic-openshift{% else %}origin{% endif %}-node]
{% endif %}