Reputation: 1429
So i want to write a module with which I can setup an SVN repo on all the clients which call the master. In order to fetch the repo i have to use svn+ssh. Right now how my module runs is:
+I have setup readonlyuser for SVN repo.
+When puppet runs as sudo on the client it gets the private key for that user from puppet master and puts it in root/.ssh/, so that i can get the repo with svn+ssh on my client with VCSrepo
Is this a good approach? I know its kind of weird that i will be putting the private key for readonlyuser on all the clients which i will be setting up with my module.
Please suggest if i can follow a different approach.
PS
I am not good with puppet and still trying to learn :)
Upvotes: 0
Views: 163
Reputation: 8223
I guess the approach is fine for working around your original problem.
To avoid making the svn
private key the default identity of the root
user, you can
user
resourcevcsrepo
run svn
as that user by supplying the user parameterUpvotes: 1