Comment 6 for bug 1572789

Revision history for this message
Dmitry Nikishov (nikishov-da) wrote :

Is merging swift-proxy and swift-storage tasks is a good thing at all? It seems to make it harder for plugin authors to customize deployment graph.

I'd suggest making something along those lines:

$rsync_conf_name = '/etc/rsyncd.conf'
$rsync_conf_safe_name = regsubst($rsync_conf_name, '[/:]', '_', 'G')
$concatdir = $::concat_basedir
$fragdir = "${concatdir}/${rsync_conf_safe_name}"

File <| name == "${fragdir}/fragments" |> {
  purge => false,
}

in openstack_tasks/examples/swift/proxy.pp and openstack_tasks/examples/swift/storage.pp
This manifest snippet makes sure that the directory with concat fragments for rsyncd doesn't get purged on each puppet run. I guess, the bug in concat module should be filed as well.