Skip to content

Commit

Permalink
Merge pull request #1976 from enxebre/bug-1861773
Browse files Browse the repository at this point in the history
bug 1861773: Remove IPI checks for vsphere hostname script and systemd unit
  • Loading branch information
openshift-merge-robot committed Aug 5, 2020
2 parents 2146dd0 + e1b793e commit 2d538f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions templates/common/vsphere/files/vsphere-hostname.yaml
Expand Up @@ -3,11 +3,6 @@ mode: 0755
path: "/usr/local/bin/vsphere-hostname.sh"
contents:
inline: |
{{ if .Infra -}}
{{ if .Infra.Status -}}
{{ if .Infra.Status.PlatformStatus -}}
{{ if .Infra.Status.PlatformStatus.VSphere -}}
{{ if .Infra.Status.PlatformStatus.VSphere.APIServerInternalIP -}}
#!/usr/bin/env bash
set -e
Expand All @@ -16,9 +11,4 @@ contents:
/usr/bin/hostnamectl --transient --static set-hostname ${hostname}
fi
fi
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
10 changes: 0 additions & 10 deletions templates/common/vsphere/units/vsphere-hostname.yaml
@@ -1,11 +1,6 @@
name: "vsphere-hostname.service"
enabled: true
contents: |
{{ if .Infra -}}
{{ if .Infra.Status -}}
{{ if .Infra.Status.PlatformStatus -}}
{{ if .Infra.Status.PlatformStatus.VSphere -}}
{{ if .Infra.Status.PlatformStatus.VSphere.APIServerInternalIP -}}
[Unit]
Description=vSphere hostname
After=vmtoolsd.service
Expand All @@ -18,9 +13,4 @@ contents: |
[Install]
WantedBy=multi-user.target
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}

0 comments on commit 2d538f4

Please sign in to comment.