summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2018-02-08 10:30:34 -0500
committerAndrew Butcher <abutcher@redhat.com>2018-02-12 10:26:59 -0500
commit0b4bbe59ef02a0c7c87180ae8da14bc349cc6ce6 (patch)
tree35a948207ada791867fde0f7f0d8da9e5e87e882 /roles
parent4fe53adf947c7d202f0fc53569891af322e2a5f3 (diff)
downloadopenshift-0b4bbe59ef02a0c7c87180ae8da14bc349cc6ce6.tar.gz
openshift-0b4bbe59ef02a0c7c87180ae8da14bc349cc6ce6.tar.bz2
openshift-0b4bbe59ef02a0c7c87180ae8da14bc349cc6ce6.tar.xz
openshift-0b4bbe59ef02a0c7c87180ae8da14bc349cc6ce6.zip
Restart systemd-hostnamed before restarting NetworkManager in node user-data.
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_aws/templates/user_data.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/openshift_aws/templates/user_data.j2 b/roles/openshift_aws/templates/user_data.j2
index bda1334cd..46e4e1cc5 100644
--- a/roles/openshift_aws/templates/user_data.j2
+++ b/roles/openshift_aws/templates/user_data.j2
@@ -20,6 +20,9 @@ runcmd:
- [ ansible-playbook, /root/openshift_bootstrap/bootstrap.yml]
{% endif %}
{% if openshift_aws_node_group.group != 'master' %}
+{# Restarting systemd-hostnamed ensures that instances will have FQDN
+hostnames following network restart. #}
+- [ systemctl, restart, systemd-hostnamed]
- [ systemctl, restart, NetworkManager]
- [ 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]