f238978f25c096cdee8344913a80dc5ea7f4cfd4
[fuel.git] / mcp / patches / salt-formula-maas / 0001-maas-region-skip-credentials-update.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: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Sat, 5 Aug 2017 02:03:01 +0200
11 Subject: [PATCH] maas: region: skip credentials update
12
13 Password update for maas psql database breaks ulterior acesses
14 to maas-region syncdb.
15 For now, limit regiond.conf changes to maas_url, and skip
16 updating credentials.
17
18 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
19 ---
20  maas/region.sls | 7 +++----
21  1 file changed, 3 insertions(+), 4 deletions(-)
22
23 diff --git a/maas/region.sls b/maas/region.sls
24 index 066490c..de5054a 100644
25 --- a/maas/region.sls
26 +++ b/maas/region.sls
27 @@ -6,10 +6,9 @@ maas_region_packages:
28      - names: {{ region.pkgs }}
29
30  /etc/maas/regiond.conf:
31 -  file.managed:
32 -  - source: salt://maas/files/regiond.conf
33 -  - template: jinja
34 -  - group: maas
35 +  file.replace:
36 +  - pattern: ^maas_url.*$
37 +  - repl: "maas_url: http://{{ region.bind.host }}:5240/MAAS"
38    - require:
39      - pkg: maas_region_packages
40