The idea of anchors is to have anchor start before EVERY resource of the class and anchor end after EVERY resource of the class. Otherwise they do not make much sense.
So you are likely to need to add require => Anchor[riak::start], before => Anchor[riak::end] to every resource of the class
Hi,
I've taken a quick look at your code and have found a supposed to be a bug: https://github.com/haf/puppet-riak/blob/master/manifests/init.pp#L139 https://github.com/haf/puppet-riak/blob/master/manifests/init.pp#L220
The idea of anchors is to have anchor start before EVERY resource of the class and anchor end after EVERY resource of the class. Otherwise they do not make much sense.
So you are likely to need to add
require => Anchor[riak::start], before => Anchor[riak::end]
to every resource of the classCheers!