Puppet Resource: Move a Directory and Content

3,553 views · Published 18 March 2016 · 9:05 · Indexed 8 November 2026

Channel: theurbanpenguin · 2016 · Education

Watch on YouTube

Using Puppet and the file resource we can copy a directory and the contents easily on our managed hosts. You may well manage web servers in your estate and you could well want to standardize the content of the web pages. Ensuring that on each system they are in /var/www/html. The default location is distribution dependent. To ensure they are all copied to the correct location we can use the file resource in Puppet to copy the source directory and contents to the new target directory and then remove the original source. Puppet can do this easily as we will see.
Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Authors/Details/andrew-mallett and take time to see my own site http://www.theurbanpenguin.com

More from this channel