I have a server that relies on puppet vcsrepo to update code in a local mercurial repository based on a tag.
When I change the required tag, using the vcsrepo "revision" parameter, vcsrepo should do a hg pull and hg update on the repo.
This is all working fine.
However, I have created a clone of this server to test something else, and now when I run the puppet update I get an error:
Not trusting file /var/hg/repo/.hg/hgrc from untrusted user *user*, group *group*
This happens because puppet is running as root, while the hgrc file is owned by user
The user parameter in vcsrepo is supposed to deal with this:
vcsrepo { '/var/hg/repo':
ensure => present,
provider => hg,
source => 'ssh://****',
user => 'user',
owner => 'user',
group => 'group',
revision => '1.12'
}
ie
the hg commands are supposed to run as user so that the Trust requirement in mercurial is satisfied.
But its not working. The clone server is a bit for bit copy of the original.