[baremetal] prx: Fix empty Apache module list 87/47087/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 12 Nov 2017 05:45:50 +0000 (06:45 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 12 Nov 2017 16:15:52 +0000 (16:15 +0000)
On low state expansion, apache.server.modules is iterated, and
since reclass transforms '~' into 'null', an exception is thrown.

Use an empty string instead (different type will still ensure reclass
overrides variables from apache service instead of merging the lists).

While at it, add missing version 'latest' for mod-wsgi pkg.

Change-Id: I7913483b6a1be545b96de2958c39840940d9c557
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 40f907255380dbfc4d808d9f3c768db80c4c8158)

mcp/reclass/classes/cluster/baremetal-mcp-ocata-common/openstack_proxy.yml

index d93d9ee..a2d3985 100644 (file)
@@ -41,6 +41,7 @@ parameters:
     system:
       package:
         libapache2-mod-wsgi:
+          version: latest
   salt:
     minion:
       cert:
@@ -49,7 +50,7 @@ parameters:
           key_usage: 'digitalSignature, keyEncipherment'
   apache:
     server:
-      modules: ~
+      modules: ''
   horizon:
     server:
       bind: