[iec] Add basic CentOS support (virtual only)
[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   ubuntu1604:
26     base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
27     common:
28       repo:
29         keys:
30           - https://repo.saltstack.com/apt/ubuntu/16.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/16.04/amd64/2017.7 xenial main
34       pkg:
35         install:
36           - linux-generic-hwe-16.04
37           - salt-minion
38     control:
39       repo: ~
40       pkg:
41         install:
42           - cloud-init
43   centos7:
44     base_image: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
45     common:
46       repo:
47         keys:
48           - https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7/SALTSTACK-GPG-KEY.pub
49         repos:
50           # <repo name> <repo prio> rpm <repo url>
51           - saltstack 0 rpm https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7
52       pkg:
53         install:
54           - salt-minion
55           - epel-release
56     control:
57       repo: ~
58       pkg:
59         install:
60           - cloud-init
61 aarch64:
62   default:
63     disks: 100G  # ';'-separated list of disk drives to create
64     vcpus: 6
65     ram: 4096
66     cluster: *arch_default_cluster_states
67   ubuntu1604:
68     base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img
69     common:
70       apt:
71         keys:
72           - https://linux.enea.com/mcp-repos/rocky/xenial/archive-mcprocky.key
73           - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub
74         repos:
75           # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
76           - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7 xenial main
77           - armband_3 1201 deb [arch=arm64] http://linux.enea.com/mcp-repos/rocky/xenial rocky-armband main
78       pkg:
79         install:
80   {%- if '-iec-' in conf.MCP_DEPLOY_SCENARIO %}
81           - linux-generic-hwe-16.04
82   {%- endif %}
83           - python-futures
84           - salt-minion
85     control:
86       apt: ~
87       pkg:
88         install:
89           - cloud-init
90   centos7:
91     base_image: https://cloud.centos.org/altarch/7/images/aarch64/CentOS-7-aarch64-GenericCloud.qcow2.xz
92     common:
93       repo:
94         keys:
95           - https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7/SALTSTACK-GPG-KEY.pub
96         repos:
97           # <repo name> <repo prio> rpm <repo url>
98           - openstack-rocky 0 rpm http://mirror.centos.org/altarch/$releasever/cloud/aarch64/openstack-rocky
99           - saltstack 0 rpm https://repo.saltstack.com/yum/redhat/$releasever/x86_64/2017.7
100       pkg:
101         install:
102           - salt-minion
103           - epel-release
104     control:
105       repo: ~
106       pkg:
107         install:
108           - cloud-init