Hi,

I want to use Vcsrepo type to specify what version gets checked out
under a directory.  I found this via:
https://github.com/puppetlabs/puppet-vcsrepo

I used the provide example from README.GIT.markdown in my node definition

vcsrepo { "/tmp/hiera":
    ensure => present,
    provider => git,
    source => 'git://<host>/puppet-framework/hiera-msp-sync.git',
    revision => "4875fecc5f796f86fbc67cba11d80808d4cb6976"
}

Then I run puppet agent and according to the logging on the
puppetmaster it should checkout my specific rev under /tmp/hiera

debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
fetch --tags origin'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
rev-parse HEAD'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git tag -l'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
rev-parse 4875fecc5f796f86fbc67cba11d80808d4cb6976'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git branch -a'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git fetch origin'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
fetch --tags origin'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
rev-parse origin/HEAD'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git branch -a'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git branch -a'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
fetch --tags origin'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
rev-parse HEAD'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git tag -l'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
rev-parse 4875fecc5f796f86fbc67cba11d80808d4cb6976'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git branch -a'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git tag -l'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git branch -a'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git branch -a'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
submodule init'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
submodule update'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
submodule foreach git submodule init'
debug: Puppet::Type::Vcsrepo::ProviderGit: Executing '/usr/bin/git
submodule foreach git submodule update'
notice: /Stage[main]//Node[<host>]/Vcsrepo[/tmp/hiera]/revision:
revision changed '7eebd18175200b671360bd2a17967813faf39ae2' to
'4875fecc5f796f86fbc67cba11d80808d4cb6976'


But when I check the path and do a 'git log -1' I do not get the
expected outcome. I get master, but I want last -1

ON the host:

<host> repotest # git log --pretty=format:"%H"

7eebd18175200b671360bd2a17967813faf39ae2  <------ This is the commit I get
4875fecc5f796f86fbc67cba11d80808d4cb6976 <------ This is the commit I want
a810eed9961aa9df0dd797378eb281a98e37601d
7e96a12a14806f9624fee08217adafbcc12263c4
2593dabfe31b11e7050f0a11e6206300b9dc5551
2983ac5827fba1e17be455ca22b93293f55ee100
511906c9b9e33470c99c000e4daae2938e0990f7

Any help on this one will be really appreciated.

---
Regards,

Martin Willemsma

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to