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   => "[email protected]:${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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to