Skip to content

Commit

Permalink
Revert back to hostnamectl and previous default of not setting hostname
Browse files Browse the repository at this point in the history
The old default was "{{ not openshift.common.version_gte_3_1_or_1_1 }}"
just default to false instead, master branch will never be used with 3.0

hostname module doesn't work on atomic host

Fixes BZ 1489913
  • Loading branch information
sdodson committed Sep 8, 2017
1 parent 99e6845 commit 09e4310
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playbooks/common/openshift-cluster/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
- name: Set hostname
hosts: oo_masters_to_config:oo_nodes_to_config
tasks:
# hostname module doesn't work on atomic host, use hostnamectl
- name: Set hostname
hostname:
name: "{{ openshift.common.hostname }}"
when: openshift_set_hostname | default(True) | bool
command: "hostnamectl set-hostname {{ openshift.common.hostname }}"
when: openshift_set_hostname | default(false,true) | bool

- include: ../openshift-etcd/config.yml

Expand Down

0 comments on commit 09e4310

Please sign in to comment.