Skip to content

Instantly share code, notes, and snippets.

@cwebberOps
Created January 25, 2012 19:13
Show Gist options
  • Save cwebberOps/1677976 to your computer and use it in GitHub Desktop.
Save cwebberOps/1677976 to your computer and use it in GitHub Desktop.
vcsrepo
class webapp {
vcsrepo { "/var/www/webapp":
ensure => latest,
provider => git,
source => "git://github.com/cwebberOps/infracode-webstuffs.git",
require => [
Package['git'],
Package['apache2']
]
}
}
(10:40:03) cwebber@tron [~/projects/infracode/puppet/modules/webapp/manifests] vi init.pp
(10:40:35) cwebber@tron [~/projects/infracode/puppet/modules/webapp/manifests] vagrant provision
[default] Running provisioner: Vagrant::Provisioners::Puppet...
[default] Running Puppet with site.pp...
[default] stdin: is not a tty
[default] warning: Found multiple default providers for vcsrepo: svn, git, hg, bzr, cvs; using svn
[default]
[default] notice: /Stage[main]/Webapp/Vcsrepo[/var/www/webapp]/ensure: Updating to latest 'f5d41c2c9d31762c1403dd7659ad240dd3aa3ed7' revision
[default]
[default] err: /Stage[main]/Webapp/Vcsrepo[/var/www/webapp]/ensure: change from present to latest failed: Execution of '/usr/bin/git checkout -b f5d41c2c9d31762c1403dd7659ad240dd3aa3ed7 --track origin/f5d41c2c9d31762c1403dd7659ad240dd3aa3ed7' returned 128: fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/f5d41c2c9d31762c1403dd7659ad240dd3aa3ed7' which can not be resolved as commit?
[default]
[default] notice: Finished catalog run in 2.57 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment