Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Append LogicalID to Softlayer instance hostname #558

Merged
merged 1 commit into from
May 22, 2017

Conversation

kaufers
Copy link
Contributor

@kaufers kaufers commented May 22, 2017

Currently, the hostname for the Softlayer terraform resource is either the instance name (ie, "instance-12345") if the @hostname_prefix property is not set; else it's formatted as <@hostname_prefix>-<timestamp> (ie, "given-prefix-12345).

This approach makes sense for workers but having a more predictable naming scheme for managers would be more usable. This commit updates the naming scheme to use the LogicalID (if set) instead of the timestamp when generating the hostname.

See issue #555.

Note that the instance name remains unchanged; it's only the hostname property that is being updated.

Signed-off-by: Steven Kaufer kaufer@us.ibm.com

Currently, the hostname for the Softlayer terraform resource is either the instance
name (ie, "instance-12345") if the `@hostname_prefix` property is not set; else it's
formatted as `<@hostname_prefix>-<timestamp>` (ie, "given-prefix-12345).

This approach makes sense for workers but having a more predictable naming scheme for
managers would be more usable. This commit updates the naming scheme to use the
`LogicalID` (if set) instead of the timestamp when generating the hostname.

See issue docker-archive#555.

Note that the instance name remains unchanged; it's only the `hostname` property that
is being updated.

Signed-off-by: Steven Kaufer <kaufer@us.ibm.com>
@codecov
Copy link

codecov bot commented May 22, 2017

Codecov Report

Merging #558 into master will decrease coverage by 0.02%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #558      +/-   ##
==========================================
- Coverage   56.68%   56.66%   -0.03%     
==========================================
  Files          57       57              
  Lines        3964     3969       +5     
==========================================
+ Hits         2247     2249       +2     
- Misses       1431     1432       +1     
- Partials      286      288       +2
Impacted Files Coverage Δ
examples/instance/terraform/plugin.go 66.56% <72.72%> (-0.43%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f552304...9b3e77a. Read the comment docs.

@chungers chungers merged commit a3b92e9 into docker-archive:master May 22, 2017
@kaufers kaufers deleted the hostname-logicalid branch June 16, 2017 13:06
chungers pushed a commit to chungers/infrakit that referenced this pull request Sep 30, 2017
…on (docker-archive#558)

Signed-off-by: Ken Cochrane <KenCochrane@gmail.com>
chungers pushed a commit to chungers/infrakit that referenced this pull request Oct 1, 2017
…on (docker-archive#558)

Signed-off-by: Ken Cochrane <KenCochrane@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants