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

Change vm_uuid file location #56

Merged
merged 1 commit into from
Apr 20, 2017
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
4 changes: 3 additions & 1 deletion nodeup/pkg/model/cloudconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const CloudConfigFilePath = "/etc/kubernetes/cloud.config"

// Required for vSphere CloudProvider
const MinimumVersionForVMUUID = "1.5.3"
const VM_UUID_FILE_PATH = "/root/vm_uuid"

// VM UUID is set by cloud-init
const VM_UUID_FILE_PATH = "/etc/vmware/vm_uuid"

// CloudConfigBuilder creates the cloud configuration file
type CloudConfigBuilder struct {
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/vspheretasks/cloud_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $DNS_SCRIPT
- content: |
$VM_UUID
owner: root:root
path: /root/vm_uuid
path: /etc/vmware/vm_uuid
permissions: "0644"
- content: |
$VOLUME_SCRIPT
Expand Down