cookbook-openstack-block-st.../templates/default/targets.conf.erb
Darren Birkett df36ef89be explicitly set volumes_dir in cinder.conf
Fixes: bug #1269475
Implements: blueprint centos-rhel-for-block

On rhel systems, /usr/share/cinder/cinder-dist.conf sets:

volumes_dir=/etc/cinder/volumes

In order set this back to the default cleanly, we need to explicitly set it in
cinder.conf which will take precedence over the setting in
cinder-dist.conf

Change-Id: Id71efd10b0cbd27b72dfe8ec72c51cde70593b3e
2014-01-17 09:09:09 +00:00

10 lines
338 B
Plaintext

<%= node["openstack"]["block-storage"]["custom_template_banner"] %>
<% if %w{redhat centos fedora suse}.include?(node["platform"]) %>
include <%= node['openstack']['block-storage']['volume']['volumes_dir'] %>/*
<% end %>
<% if %w{debian ubuntu}.include?(node["platform"]) %>
include /etc/tgt/conf.d/*.conf
<% end %>
default-driver iscsi