Make sure that ceph packages are installed before nova-compute service running
Related-Prod: PROD-32054
Change-Id: I4f20a451f03155f85f5c161961bb2ad4030531dd
diff --git a/nova/compute.sls b/nova/compute.sls
index 4f9af4a..9450a30 100644
--- a/nova/compute.sls
+++ b/nova/compute.sls
@@ -350,6 +350,9 @@
- names: {{ compute.services }}
- require:
- sls: nova._ssl.rabbitmq
+{%- if compute.get('compute_driver', 'libvirt.LibvirtDriver') == 'libvirt.LibvirtDriver' and compute.ceph is defined %}
+ - pkg: ceph_package
+{%- endif %}
- watch:
- file: /etc/nova/nova.conf