Update opendaylight version to nitrogen
[fuel.git] / mcp / patches / 0002-maas-region-skip-credentials-update.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Sat, 5 Aug 2017 02:03:01 +0200
3 Subject: [PATCH] maas: region: skip credentials update
4
5 Password update for maas psql database breaks ulterior acesses
6 to maas-region syncdb.
7 For now, limit regiond.conf changes to maas_url, and skip
8 updating credentials.
9
10 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
11 ---
12
13 diff --git a/maas/region.sls b/maas/region.sls
14 index d3227ca..8a2243d 100644
15 --- a/maas/region.sls
16 +++ b/maas/region.sls
17 @@ -6,10 +6,9 @@
18      - names: {{ region.pkgs }}
19
20  /etc/maas/regiond.conf:
21 -  file.managed:
22 -  - source: salt://maas/files/regiond.conf
23 -  - template: jinja
24 -  - group: maas
25 +  file.replace:
26 +  - pattern: ^maas_url.*$
27 +  - repl: "maas_url: http://{{ region.bind.host }}:5240/MAAS"
28    - require:
29      - pkg: maas_region_packages
30