summaryrefslogtreecommitdiffstats
path: root/mcp/config/scenario/defaults.yaml.j2
blob: 141af4d26cdfc57c2b0c60ba335897deeb865fa9 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
##############################################################################
# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
{%- import 'net_map.j2' as nm with context %}
---
x86_64:
  base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
  default:
    vcpus: 2
    ram: 4096
    virtual: &arch_default_virtual_nodes_infra
      nodes:
        infra:
{%- if nm.cluster.has_baremetal_nodes %}
          - mas01
{%- endif %}
    cluster: &arch_default_cluster_states
      states:
        - virtual_init
{%- if nm.cluster.has_baremetal_nodes %}
        - maas
        - baremetal_init
{%- if conf.MCP_VCP %}
        - virtual_control_plane
{%- endif %}
{%- endif %}
  common:
    apt:
      keys:
        - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub
      repos:
        # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
        - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7 xenial main
    pkg:
      install:
        - linux-generic-hwe-16.04
        - salt-minion
  control:
    apt: ~
    pkg:
      install:
        - cloud-init
aarch64:
  base_image: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img
  default:
    vcpus: 6
    ram: 4096
    virtual: *arch_default_virtual_nodes_infra
    cluster: *arch_default_cluster_states
  common:
    apt:
      keys:
        - https://linux.enea.com/mcp-repos/queens/xenial/archive-mcpqueens.key
        - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub
      repos:
        # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
        - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7 xenial main
        - armband_3 1201 deb [arch=arm64] http://linux.enea.com/mcp-repos/queens/xenial queens-armband main
    pkg:
      install:
        - python-futures
        - salt-minion
  control:
    apt: ~
    pkg:
      install:
        - cloud-init