Skip to content

Commit

Permalink
OpenStack: set correct hostnames for masters and workers
Browse files Browse the repository at this point in the history
This commit sets hostnames equal to OpenStack node names.
  • Loading branch information
Fedosin committed Jul 12, 2019
1 parent 43b202c commit 4bfe39b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/master/00-master/openstack/units/afterburn-hostname.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "afterburn-hostname.service"
enabled: true
contents: |
[Unit]
Description=Afterburn Hostname
[Service]
ExecStart=/usr/bin/afterburn --provider openstack-metadata --hostname=/etc/hostname
Type=oneshot
[Install]
WantedBy=multi-user.target
12 changes: 12 additions & 0 deletions templates/worker/00-worker/openstack/units/afterburn-hostname.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "afterburn-hostname.service"
enabled: true
contents: |
[Unit]
Description=Afterburn Hostname
[Service]
ExecStart=/usr/bin/afterburn --provider openstack-metadata --hostname=/etc/hostname
Type=oneshot
[Install]
WantedBy=multi-user.target

0 comments on commit 4bfe39b

Please sign in to comment.