From af40e6cfea349e9a0649eda5efb41b8b7c2e40a6 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Thu, 29 Mar 2018 10:33:18 +0200 Subject: [PATCH] Add instance-id to meta-data --- builder/files/boot/meta-data | 1 + builder/test-integration/spec/hypriotos-image/cloud-init_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/builder/files/boot/meta-data b/builder/files/boot/meta-data index e69de29..beb41cd 100644 --- a/builder/files/boot/meta-data +++ b/builder/files/boot/meta-data @@ -0,0 +1 @@ +instance-id: pirate001 diff --git a/builder/test-integration/spec/hypriotos-image/cloud-init_spec.rb b/builder/test-integration/spec/hypriotos-image/cloud-init_spec.rb index 2d9ddc4..18314b2 100644 --- a/builder/test-integration/spec/hypriotos-image/cloud-init_spec.rb +++ b/builder/test-integration/spec/hypriotos-image/cloud-init_spec.rb @@ -11,6 +11,7 @@ describe file('/boot/meta-data') do it { should be_file } + its(:content) { should match /instance-id: / } end describe file('/var/lib/cloud/scripts/per-once/regenerate-machine-id') do