瀏覽代碼

Set OpenStack VM hostname to the entry in Nova

OpenStack appends a domain suffix (`.novalocal` by default) to the
hostnames of the VMs it creates. This clashes with the new control plane
install tasks that look at the hostname rather than the
`openshift_hostname` variable.

This makes the OpenStack playbooks function again with the new control
plane/bootstrap installation.
Tomas Sedovic 7 年之前
父節點
當前提交
86a0cc2cae
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      roles/openshift_openstack/tasks/node-configuration.yml

+ 6 - 0
roles/openshift_openstack/tasks/node-configuration.yml

@@ -1,4 +1,10 @@
 ---
+# NOTE(shadower): we need to do this because some of the install tasks seem to
+# ignore openshift_hostname and rely on the actual system's hostname
+- name: Update hostname to openshift_hostname
+  hostname:
+    name: "{{ openshift_hostname }}"
+
 - name: "Verify SELinux is enforcing"
   fail:
     msg: "SELinux is required for OpenShift and has been detected as '{{ ansible_selinux.config_mode }}'"