1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2018 Mirantis Inc., Enea AB and others.
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
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
18 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
20 maas/region.sls | 7 +++----
21 1 file changed, 3 insertions(+), 4 deletions(-)
23 diff --git a/maas/region.sls b/maas/region.sls
24 index 684fda4..5844f22 100644
27 @@ -6,10 +6,9 @@ maas_region_packages:
28 - names: {{ region.pkgs }}
30 /etc/maas/regiond.conf:
32 - - source: salt://maas/files/regiond.conf
36 + - pattern: ^maas_url.*$
37 + - repl: "maas_url: http://{{ region.bind.host }}:5240/MAAS"
39 - pkg: maas_region_packages