diff --git a/snap/snap-openstack.yaml b/snap/snap-openstack.yaml index 0adc727..fee3fe6 100644 --- a/snap/snap-openstack.yaml +++ b/snap/snap-openstack.yaml @@ -4,31 +4,26 @@ setup: - "{snap_common}/etc/neutron/plugins/ml2" - "{snap_common}/etc/neutron/policy.d" - "{snap_common}/etc/neutron/rootwrap.d" - - "{snap_common}/lib/neutron" - - "{snap_common}/log/neutron" - - "{snap_common}/lock/neutron" - symlinks: - "{snap_common}/etc/neutron": /etc/neutron - "{snap_common}/lib/neutron": /var/lib/neutron - "{snap_common}/log/neutron": /var/log/neutron - "{snap_common}/lock/neutron": /var/lock/neutron + - "{snap_common}/lib" + - "{snap_common}/log" + - "{snap_common}/lock" templates: neutron-snap.conf.j2: "{snap_common}/etc/neutron/conf.d/neutron-snap.conf" copyfiles: "{snap}/etc/neutron": "{snap_common}/etc/neutron" entry_points: neutron-db-manage: - binary: neutron-db-manage + binary: "{snap}/bin/neutron-db-manage" config-files: - - "/etc/neutron/neutron.conf" - - "/etc/neutron/plugins/ml2/ml2_conf.ini" + - "{snap_common}/etc/neutron/neutron.conf" + - "{snap_common}/etc/neutron/plugins/ml2/ml2_conf.ini" config-dirs: - - "/etc/neutron/conf.d" + - "{snap_common}/etc/neutron/conf.d" neutron-server: - binary: neutron-server + binary: "{snap}/bin/neutron-server" config-files: - - "/etc/neutron/neutron.conf" - - "/etc/neutron/plugins/ml2/ml2_conf.ini" + - "{snap_common}/etc/neutron/neutron.conf" + - "{snap_common}/etc/neutron/plugins/ml2/ml2_conf.ini" config-dirs: - - "/etc/neutron/conf.d" - log-file: "/var/log/neutron/neutron-server.log" + - "{snap_common}/etc/neutron/conf.d" + log-file: "{snap_common}/log/neutron-server.log" diff --git a/snap/templates/neutron-snap.conf.j2 b/snap/templates/neutron-snap.conf.j2 index ed36153..f683970 100644 --- a/snap/templates/neutron-snap.conf.j2 +++ b/snap/templates/neutron-snap.conf.j2 @@ -1,7 +1,7 @@ [DEFAULT] # Set state path to writable directory -state_path = /var/lib/neutron +state_path = {{ snap_common }}/lib [oslo_concurrency] # Oslo Concurrency lock path -lock_path = /var/lock/neutron +lock_path = {{ snap_common }}/lock