[baremetal] prx: Fix empty Apache module list 85/47085/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 05:45:50 +0000 (06:45 +0100)
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>
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: