Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/openshift_openstack/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ openshift_openstack_cns_hostname: cns
openshift_openstack_node_hostname: app-node
openshift_openstack_lb_hostname: lb
openshift_openstack_etcd_hostname: etcd
openshift_openstack_set_hostname_to_compute_name: true
openshift_openstack_keypair_name: openshift
openshift_openstack_lb_flavor: "{{ openshift_openstack_default_flavor }}"
openshift_openstack_etcd_flavor: "{{ openshift_openstack_default_flavor }}"
Expand Down
7 changes: 7 additions & 0 deletions roles/openshift_openstack/tasks/node-configuration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
---
# 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to clarify this and open a bug for openshift-ansible. AFAIK, that's not the case for AWS provider installations at the very least.

- name: Update hostname to match the OpenStack name
hostname:
name: "{{ inventory_hostname }}"
when: openshift_openstack_set_hostname_to_compute_name

- name: "Verify SELinux is enforcing"
fail:
msg: "SELinux is required for OpenShift and has been detected as '{{ ansible_selinux.config_mode }}'"
Expand Down