FAQ
Hi all,

Looking for a better way to update a git submodule using
the puppetlabs/vcsrepo module.

Using a git repo for puppet files in /etc/puppetlabs/puppet, and a
submodule in /etc/puppetlabs/puppet/files/appconf.

The following works to update the submodule, but using exec seems like a
kludge.

   vcsrepo { "/etc/puppetlabs/puppet/":
     ensure => latest,
     user => $username,
     provider => git,
     require => [ Package["git"] ],
     source => "git@git.mydomain.com:${repo}.git",
     revision => 'master',
   }
   ->
   exec { "/usr/bin/git submodule init":
     cwd => "/etc/puppetlabs/puppet",
   }
   ->
   exec { "/usr/bin/git submodule update":
     cwd => "/etc/puppetlabs/puppet",
   }

Thanks!

-s

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedAug 6, '13 at 4:43p
activeAug 6, '13 at 4:43p
posts1
users1
websitepuppetlabs.com

1 user in discussion

Stafford Ritchie: 1 post

People

Translate

site design / logo © 2022 Grokbase