Still trying to get puppet to "do what I want" (I still don't know how to talk to it properly)...
I have the following problem: an Apache server hosts the static content for several clients, and this static content is versioned:
node the.node.name {
client { 'c1':
version => 'v1',
# otherstuff
}
client { 'c2':
version => 'v2',
}
}
There are 30+ clients defined this way. And in total, there are between 2 and 4 versions of the content installed at any time.
Now, with time, the versions evolve -- quite rapidly. Right now I can only achieve to install new content, but never remove obsolete content.
How would you go about having reference counting for installed versions, and uninstall obsolete versions?