diff --git a/services/horizon/horizon.yml.j2 b/services/horizon/horizon.yml.j2 index 04307795..add4eb9b 100644 --- a/services/horizon/horizon.yml.j2 +++ b/services/horizon/horizon.yml.j2 @@ -8,7 +8,11 @@ container: service: daemon: command: /usr/sbin/{{ apache_cmd }} -DFOREGROUND - dependencies: [horizon/bootstrap, memcached/daemon] + dependencies: + - horizon/bootstrap + {% if enable_memcached | bool %} + - memcached/daemon + {% endif %} files: 000-default.conf: source: config/horizon/templates/horizon.conf.j2 diff --git a/tools/validate-service.py b/tools/validate-service.py index 8a0aa7d6..182be17e 100644 --- a/tools/validate-service.py +++ b/tools/validate-service.py @@ -91,6 +91,7 @@ def validate_command(filename, cmd, cmd_info, deps, role): def validate(filename, deps): mini_vars = {'cinder_volume_driver': 'lvm', + 'enable_memcached': 'yes', 'deployment_id': 'test'} role = filename.replace('.yml.j2', '') role_vars = ROLE_VARS_MAP.get(role, {})