Ask Your Question

Check out CVS code using Puppet

asked 2016-03-08 09:45:15 -0600

JamesHailey gravatar image

updated 2016-03-11 11:41:21 -0600

I am trying to check out CVS code using Puppet. I have the following so far:

vcsrepo { '/etc/Test1/':                         
 ensure   => present,
 owner => 'root',
 provider => cvs,
source   => ':pserver:anonymous@serverxyz:2702/cvsdata/SDI/codex',

I have installed the vcsrepo module, but according one of the pages on Puppet I have to install the VCS first which I couldn't find anywhere. I have few questions regarding it. 1. How and from where can I install the VCS? I use Red Hat 6. 2. How can I check out to the specific location/directory?

The output I have got is below. It says it created the repository but I don't see anything, plus the code still isn't checked out.

puppet apply /etc/puppetlabs/code/environments/production/modules/checkout/manifests/init.pp
Notice: Compiled catalog for in environment production in 0.25 seconds
Notice: /Stage[main]/Main/Vcsrepo[/user/Test1/]/ensure: Creating repository from present
Notice: /Stage[main]/Main/Vcsrepo[/user/Test1/]/ensure: created
Notice: Applied catalog in 1.35 seconds
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-10 14:37:42 -0600

lavaman gravatar image

VCS is a general term for version control. In your case, it's telling you that cvs must be installed on the agent machine before you attempt to use the vcsrepo type on that agent. You would typically install it using a package resource, assuming it's available in your configured rpm repos.

edit flag offensive delete link more


Thank you, I have that, but I do not see the code being checked out in the Test1 directory I mentioned above. When I run "puppet apply ... init.pp', I get the following: Notice: Compiled catalog for in environment production in 0.25 seconds Notice: /Stage[main]/Main/Vcsrepo[/usr/ensure: created

JamesHailey gravatar imageJamesHailey ( 2016-03-10 15:11:48 -0600 )edit

Can you edit your question and put in the full output of a puppet run? Also provide some details about your setup and how you classify machines.

lavaman gravatar imagelavaman ( 2016-03-10 19:30:32 -0600 )edit

I have put the output and the command I used. I basically should be able to check out codes from any servers to a specific place.

JamesHailey gravatar imageJamesHailey ( 2016-03-11 11:43:04 -0600 )edit

So puppet thinks it is, in fact, checking out the repo. Try running in debug mode and see if you get any more details.

lavaman gravatar imagelavaman ( 2016-03-11 18:20:29 -0600 )edit

Nothing more was achieved. It's exactly the same output.

JamesHailey gravatar imageJamesHailey ( 2016-03-14 10:06:24 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-03-08 09:45:15 -0600

Seen: 80 times

Last updated: Mar 11 '16