all: Pin Ubuntu kernel to 5.0.0-37 for Bionic
[fuel.git] / mcp / config / scenario / defaults.yaml.j2
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {%- import 'net_map.j2' as nm with context %}
9 ---
10 x86_64:
11   default:
12     disks: 100G  # ';'-separated list of disk drives to create
13     vcpus: 4
14     ram: 8192
15     cluster: &arch_default_cluster_states
16       states:
17         - virtual_init
18 {%- if nm.cluster.has_baremetal_nodes %}
19         - maas
20         - baremetal_init
21 {%- if conf.MCP_VCP %}
22         - virtual_control_plane
23 {%- endif %}
24 {%- endif %}
25   ubuntu1804:
26     base_image: https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img
27     common:
28       repo:
29         keys:
30           - https://repo.saltstack.com/apt/ubuntu/18.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub
31         repos:
32           # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
33           - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/18.04/amd64/2017.7 bionic main
34       pkg:
35         install:
36   {%- if '-iec-' not in conf.MCP_DEPLOY_SCENARIO and conf.MCP_KERNEL_VER %}
37           - linux-image-{{ conf.MCP_KERNEL_VER }}-generic
38           - linux-headers-{{ conf.MCP_KERNEL_VER }}-generic
39   {%- endif %}
40           - salt-minion
41           - ifupdown
42           - cloud-init
43           - dnsmasq
44     control:
45       repo: ~
46       pkg:
47         install:
48           - cloud-init
49   ubuntu1604:
50     base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
51     common:
52       repo:
53         keys:
54           - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub
55         repos:
56           # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
57           - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7 xenial main
58       pkg:
59         install:
60           - linux-generic-hwe-16.04
61           - salt-minion
62     control:
63       repo: ~
64       pkg:
65         install:
66           - cloud-init
67   centos7:
68     base_image: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
69     common:
70       repo:
71         keys:
72           - https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7/SALTSTACK-GPG-KEY.pub
73         repos:
74           # <repo name> <repo prio> rpm <repo url>
75           - saltstack 0 rpm https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7
76       pkg:
77         install:
78           - salt-minion
79           - epel-release
80           - git
81     control:
82       repo: ~
83       pkg:
84         install:
85           - cloud-init
86 aarch64:
87   default:
88     disks: 100G  # ';'-separated list of disk drives to create
89     vcpus: 6
90     ram: 4096
91     cluster: *arch_default_cluster_states
92   ubuntu1804:
93     base_image: https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-arm64.img
94     common:
95       repo:
96         keys:
97           - https://repo.saltstack.com/apt/ubuntu/18.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub
98         repos:
99           # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
100           - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/18.04/amd64/2017.7 bionic main
101       pkg:
102         install:
103   {%- if '-iec-' not in conf.MCP_DEPLOY_SCENARIO and conf.MCP_KERNEL_VER %}
104           - linux-image-{{ conf.MCP_KERNEL_VER }}-generic
105           - linux-headers-{{ conf.MCP_KERNEL_VER }}-generic
106   {%- endif %}
107           - salt-minion
108           - ifupdown
109           - cloud-init
110           - dnsmasq
111     control:
112       repo: ~
113       pkg:
114         install:
115           - cloud-init
116   ubuntu1604:
117     base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img
118     common:
119       repo:
120         keys:
121           - https://linux.enea.com/mcp-repos/rocky/xenial/archive-mcprocky.key
122           - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub
123         repos:
124           # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
125           - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7 xenial main
126           - armband_3 1201 deb [arch=arm64] http://linux.enea.com/mcp-repos/rocky/xenial rocky-armband main
127       pkg:
128         install:
129   {%- if '-iec-' in conf.MCP_DEPLOY_SCENARIO %}
130           - linux-generic-hwe-16.04
131   {%- endif %}
132           - python-futures
133           - salt-minion
134     control:
135       repo: ~
136       pkg:
137         install:
138           - cloud-init
139   centos7:
140     base_image: https://cloud.centos.org/altarch/7/images/aarch64/CentOS-7-aarch64-GenericCloud.qcow2.xz
141     common:
142       repo:
143         keys:
144           - https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7/SALTSTACK-GPG-KEY.pub
145         repos:
146           # <repo name> <repo prio> rpm <repo url>
147           - openstack-rocky 0 rpm http://mirror.centos.org/altarch/$releasever/cloud/aarch64/openstack-rocky
148           - saltstack 0 rpm https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7
149       pkg:
150         install:
151           - salt-minion
152           - epel-release
153           - git
154     control:
155       repo: ~
156       pkg:
157         install:
158           - cloud-init