Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always setting hostname on all nodes of the cluster (on-prem fix) #1509

Merged
merged 2 commits into from
Jul 31, 2020
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 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"