stafford.ritchie@gmail.com
2013-Aug-06 16:39 UTC
[Puppet Users] puppetlabs/vcsrepo git submodule update without exec
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.