If I have a configuration in Puppet which changes between two runs, it is possible to implement some migration tasks for this?
For example, I specify
apache::vhost { 'vhost.example.com':
port => '80',
docroot => '/var/www/vhost',
}
in the beginning, and happily work with this for some months. Then I want to change the docroot to /home/www/vhost
. Puppet then changes the apache vhost, but I also have some data in the old /var/www/vhost
folder which is not managed by Puppet. Is it possible put some migration steps in between, for example:
"If the docroot changes from /var/www/vhost
to /home/www/vhost
then: mv /var/www/vhost /home/www/vhost
".
Thanks!