Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/rietveld/manifests/init.pp

Issue 29317151: Issue 2704 - Use Adblock Plus clone of Rietveld source (Closed)
Patch Set: Created June 22, 2015, 9:26 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/rietveld/manifests/init.pp
diff --git a/modules/rietveld/manifests/init.pp b/modules/rietveld/manifests/init.pp
index ce597b6cb43a20079e98c040b213ef2ef5b28d03..4a44bda5a82fa690d1874b5db2805cc6ecfcd415 100644
--- a/modules/rietveld/manifests/init.pp
+++ b/modules/rietveld/manifests/init.pp
@@ -11,6 +11,9 @@ class rietveld(
include nginx
$rietveld_home = '/opt/rietveld'
+ $rietveld_branch = 'default'
+ $rietveld_revision = '2259be9bd074'
+ $rietveld_source = 'https://hg.adblockplus.org/rietveld'
Exec {
path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
@@ -24,7 +27,7 @@ class rietveld(
log => 'access_log_codereview'
}
- package {['wget', 'unzip', 'git', 'make', 'patch', 'subversion']: ensure => present}
+ package {['wget', 'unzip', 'make', 'patch', 'subversion']: ensure => present}
user {'rietveld':
ensure => present,
@@ -49,9 +52,11 @@ class rietveld(
}
exec {'get_rietveld':
- command => "git clone https://github.com/rietveld-codereview/rietveld.git $rietveld_home && cd $rietveld_home && git reset --hard 87257f5",
+ command => shellquote(
+ 'hg', 'clone', $rietveld_source, '-b', $rietveld_branch,
+ '-r', $rietveld_revision, $rietveld_home),
user => 'root',
- require => Package['git'],
+ require => Package['mercurial'],
creates => $rietveld_home,
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld