Skip to content

Commit

Permalink
Always setting hostname on all nodes of the cluster (on-prem fix) (#1509
Browse files Browse the repository at this point in the history
)

* common: always setting hostname on all nodes of the cluster (on-prem fix)

* updating 0.7.1 changelog
  • Loading branch information
sk4zuzu authored Jul 31, 2020
1 parent d543c1f commit dcca81c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-0.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- [#802](https://github.com/epiphany-platform/epiphany/issues/802) - Docker version is hard-coded in installation tasks
- [#1495](https://github.com/epiphany-platform/epiphany/issues/1495) - Offline installation is broken for CentOS 7.8 environments
- [#1347](https://github.com/epiphany-platform/epiphany/issues/1347) - [BUG] Kibana config always points its elasticsearch.hosts to a "logging" VM
- [#1336](https://github.com/epiphany-platform/epiphany/issues/1336) - Deployment of version 0.7.0 failed on-prem (spec.hostname)

### Added

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@
tags:
- security

- include_tasks: aws-hostname.yml
when:
- provider == "aws"
- include_tasks: set-hostname.yml

- name: Include logrotate configuration tasks
include_tasks: configure-logrotate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
# "Changing the hostname always" seems to be working because we always put
# all of the play hosts inside /etc/hosts files on every cluster node.
# It makes an illusion that Epiphany has control over DNS inside the underlying network.
- name: Set hostname
hostname:
name: '{{ inventory_hostname }}'

# https://aws.amazon.com/premiumsupport/knowledge-center/linux-static-hostname-rhel7-centos7/
- name: Disable AWS cloud hostname
lineinfile:
dest: /etc/cloud/cloud.cfg
line: 'preserve_hostname: true'
state: present
when:
- provider == "aws"

0 comments on commit dcca81c

Please sign in to comment.