aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-07-03 14:27:52 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2020-07-03 16:02:32 +0000
commitf58de8f008604c0faf54395f48a2db25b1a5e756 (patch)
tree29c89ee6fd886115133aa9070cd2c5f15c3f6042 /test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml
parentf8d8c571385b4924fc08edd3f3019609de0f4e6c (diff)
Add basic cloud-init setup for the simulator instance
Change-Id: I456358ac26e4ab02d5989a9505541721553034fe Issue-ID: INT-1649 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml')
-rw-r--r--test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml b/test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml
new file mode 100644
index 000000000..73d9f090b
--- /dev/null
+++ b/test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml
@@ -0,0 +1,19 @@
+#cloud-config
+package_upgrade: true
+packages:
+ - apt-transport-https
+ - ca-certificates
+ - gnupg-agent
+ - software-properties-common
+ - docker-ce
+ - docker-ce-cli
+ - containerd.io
+# Docker's apt key needs to be injected early in the boot as 'apt' cloud-init
+# module doesn't support configuring key from file
+bootcmd:
+ - [curl, "https://download.docker.com/linux/ubuntu/gpg", -o, /run/docker.key]
+ - [apt-key, add, /run/docker.key]
+apt:
+ sources:
+ docker:
+ source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable"