aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/masspnfsim/deployment/heat/cloud-config.yaml
blob: 8203a847095f6a1c8e1466725280a1369a03974a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#cloud-config
package_upgrade: true
packages:
  - apt-transport-https
  - ca-certificates
  - gnupg-agent
  - software-properties-common
  - docker-ce
  - docker-ce-cli
  - containerd.io
  - docker-compose
  - python3-virtualenv
  - python3-pip
  - maven
  - openjdk-8-jdk-headless
# 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"
runcmd:
  - [pip3, install, tox]
  - [mkdir, /root/.m2]
  - [curl, "https://git.onap.org/oparent/plain/settings.xml", -o, /root/.m2/settings.xml]
  - [update-java-alternatives, -s, java-1.8.0-openjdk-amd64]
  - [bash, /root/mass-pnf-sim_run.sh]