Commit 89c9f8b6 authored by Thomas Goirand's avatar Thomas Goirand

* Use Exec in puppet to change unix right of /srv/node/* folders in all swift

    store nodes, do not do that in rc.local anymore.
parent 8111272e
......@@ -59,13 +59,6 @@ set -e
if [ -e /var/lib/oci-first-boot ] ; then
OS_CACERT=/etc/ssl/certs/oci-pki-oci-ca-chain.pem puppet agent --test --debug >/var/log/puppet-first-run 2>&1
rm -f /var/lib/oci-first-boot
# Fixup swift HDD's mountpoint folder rights (wrong if formated at provisionning time)
if [ -d /srv/node ] ; then
for i in \$(find /srv/node -maxdepth 1) ; do
chown swift:swift \${i}
done
fi
fi
" >${BODI_CHROOT_PATH}/etc/rc.local
......
openstack-cluster-installer (12) unstable; urgency=medium
* Use Exec in puppet to change unix right of /srv/node/* folders in all swift
store nodes, do not do that in rc.local anymore.
-- Thomas Goirand <zigo@debian.org> Mon, 29 Oct 2018 16:26:22 +0100
openstack-cluster-installer (11) unstable; urgency=medium
* Fixed $machine_ip for the listen of memcache in swiftproxy nodes, so that
......
......@@ -82,6 +82,10 @@ class oci::swiftstore(
swift::storage::disk { "${value}":
mount_type => 'uuid',
require => Class['swift'],
}->
exec { "fix-unix-right-of-${value}":
path => "/usr/bin",
command => "chown swift:swift /srv/node/${value}",
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment