When working with Puppet and a VCS (like
it’s nice to have a simple way of updating the Puppet tree.
My tree is always in
/etc/puppet and owned by user and group
puppet is allowed to checkout the complete
I have created two one-liners to update the complete tree and make sure all rights are still correct.
#!/bin/bash # update_svn su - puppet -c 'cd /etc/puppet; svn up; cd doc; ../bin/gendoc'
#!/bin/bash # update_git su - puppet -c 'cd /etc/puppet; git pull; cd doc; ../bin/gendoc'
But, of course, it’s not handy to type
update_git today and
tomorrow. And I also don’t want a path to
The solution is a very simple one, as always:
cd /usr/local/bin ln -s /etc/puppet/bin/update_git pupdate
and now I only have to type
pupdate and things work out.