[AArch64] Fix renamed repo key in defaults section
[fuel.git] / mcp / patches / salt-formula-heat / 0001-Support-rocky-version.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Michael Polenchuk <mpolenchuk@mirantis.com>
10 Date: Wed, 28 Nov 2018 13:06:33 +0400
11 Subject: [PATCH] Support rocky version
12
13 Change-Id: I4116f8cf359f7a3187411577cfcafda115c7be59
14 Related-Prod: PROD-23724
15
16 diff --git a/heat/files/queens/heat.conf.Debian b/heat/files/queens/heat.conf.Debian
17 index f5b4b13..6b90880 100644
18 --- a/heat/files/queens/heat.conf.Debian
19 +++ b/heat/files/queens/heat.conf.Debian
20 @@ -230,12 +230,12 @@ region_name_for_services = {{ server.region }}
21
22  # Keystone domain name which contains heat template-defined users. If
23  # `stack_user_domain_id` option is set, this option is ignored. (string value)
24 -stack_user_domain_name = {{ server.stack_domain_admin.get('stack_user_domain_name', 'heat_user_domain') }}
25 +stack_user_domain_name = {{ server.stack_domain_admin.get('domain', 'heat_user_domain') }}
26
27  # Keystone username, a user with roles sufficient to manage users and projects
28  # in the stack_user_domain. (string value)
29  #stack_domain_admin = <None>
30 -stack_domain_admin = heat_domain_admin
31 +stack_domain_admin = {{ server.stack_domain_admin.get('name', 'heat_domain_admin') }}
32
33  # Keystone password for stack_domain_admin user. (string value)
34  #stack_domain_admin_password = <None>
35 @@ -257,7 +257,7 @@ stack_domain_admin_password = {{ server.stack_domain_admin.password }}
36  {%- endif %}
37
38  # Maximum raw byte size of any template. (integer value)
39 -max_template_size = {{ server.get('max_template_size', 5440000) }} 
40 +max_template_size = {{ server.get('max_template_size', 5440000) }}
41
42  # Maximum depth allowed when using nested stacks. (integer value)
43  #max_nested_stack_depth = 5
44 diff --git a/heat/server.sls b/heat/server.sls
45 index 02e73b4..037c28a 100644
46 --- a/heat/server.sls
47 +++ b/heat/server.sls
48 @@ -156,11 +156,16 @@ keystonercv3:
49  {%- endif %}
50
51  {%- if not grains.get('virtual_subtype', None) == "Docker" %}
52 -{%- if server.version != 'juno' %}
53 +{%- if server.version not in ['juno', 'rocky'] %}
54
55  heat_keystone_setup:
56    cmd.run:
57 -  - name: 'source /root/keystonercv3; heat-keystone-setup-domain --stack-user-domain-name heat_user_domain --stack-domain-admin heat_domain_admin --stack-domain-admin-password {{ server.stack_domain_admin.password }}'
58 +  - name: >-
59 +      source /root/keystonercv3;
60 +      heat-keystone-setup-domain
61 +      --stack-user-domain-name {{ server.stack_domain_admin.domain|default('heat_user_domain') }}
62 +      --stack-domain-admin {{ server.stack_domain_admin.name|default('heat_domain_admin') }}
63 +      --stack-domain-admin-password {{ server.stack_domain_admin.password }}
64    - shell: /bin/bash
65    - require:
66      - file: /etc/heat/heat.conf