소스 검색

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 }}'"