Created
August 27, 2012 01:34
-
-
Save Tombar/3484913 to your computer and use it in GitHub Desktop.
Puppet GIT alternativas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# forma bruta para sobrevivir a lo que sea | |
# BruteForceGIT | |
file { | |
"${repo_root}" : | |
ensure => 'directory', | |
mode => 0755, | |
owner => 'user', | |
group => 'group', | |
} | |
exec { | |
"git clone ${repo}" : | |
path => '/usr/bin', | |
creates => "${repo_root}/repo", | |
cwd => "${repo_root}", | |
alias => "setup repo", | |
timeout => "10" | |
} | |
#puppetlabs/vcsrepo | |
# anda cuando quiere!! | |
Vcsrepo { | |
ensure => 'present', | |
provider => "git", | |
} | |
vcsrepo { | |
"${repo_root}/repo" : | |
provider => 'git', | |
path => "${repo_root}/repo", | |
source => "${repo}", | |
revision => 'master', | |
ensure => present, | |
basic_auth_username => "${repo_user}", | |
basic_auth_password => "${repo_pass}", | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment