Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-11-23 17:02:26 +0000
committerFrank Becker2012-11-23 17:02:26 +0000
commit6216542502d654a9b16fdcaedb1d3a85e1f0e85f (patch)
tree607023f74c7fe1fbadfb7cec672032a2f2d22ada /org.eclipse.mylyn.bugzilla.releng/modules
parentabb55ac01fd830e66f809b1df16aa0cc0b29a740 (diff)
downloadorg.eclipse.mylyn.tasks-6216542502d654a9b16fdcaedb1d3a85e1f0e85f.tar.gz
org.eclipse.mylyn.tasks-6216542502d654a9b16fdcaedb1d3a85e1f0e85f.tar.xz
org.eclipse.mylyn.tasks-6216542502d654a9b16fdcaedb1d3a85e1f0e85f.zip
393640: create puppet configuration for Bugzilla
update template to 2.24 for bugshead Change-Id: I7c89f523bc273eaa5cabf4808858c88e53a994bf Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=393640
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.releng/modules')
-rw-r--r--org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp28
1 files changed, 25 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp
index d355e2daa..a038b5ddf 100644
--- a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp
+++ b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp
@@ -36,6 +36,17 @@ define bugzillaVersion (
timeout => 300,
creates => "$base/$version",
}
+
+ # we need a extras setup because for bughead we need
+ # template 2.24 but libtemplate-perl from precise32 is only 2.22
+ exec { "post extract bugzilla $version":
+ command => "/usr/bin/perl install-module.pl Template >$base/$version/extra.out",
+ cwd => "$base/$version",
+ creates => "$base/$version/extra.out",
+ user => "$bugzilla::userOwner",
+ timeout => 300,
+ require => Exec["extract bugzilla $version"]
+ }
} else {
exec { "extract bugzilla $version":
command => "bzr co -r tag:$branchTag bzr://bzr.mozilla.org/bugzilla/$branchName $version",
@@ -44,6 +55,17 @@ define bugzillaVersion (
timeout => 300,
creates => "$base/$version",
}
+
+ # we need no extras setup because for bugzilla <= 4.4 all
+ # perl libs have the correct version
+ exec { "post extract bugzilla $version":
+ command => "ls >$base/$version/extra.out",
+ cwd => "$base/$version",
+ creates => "$base/$version/extra.out",
+ user => "$bugzilla::userOwner",
+ timeout => 300,
+ require => Exec["extract bugzilla $version"]
+ }
}
exec { "mysql-grant-${bugz_dbname}-${bugzilla::dbuser}":
@@ -52,7 +74,7 @@ define bugzillaVersion (
command => "/usr/bin/mysql --verbose --user=root -e \"GRANT ALL ON ${bugz_dbname}.* TO '${bugzilla::dbuser}'@localhost\" \
; /usr/bin/mysqladmin --verbose --user=root flush-privileges",
logoutput => true,
- require => Exec["extract bugzilla $version"]
+ require => Exec["post extract bugzilla $version"]
}
exec { "mysql-dropdb-$version":
@@ -73,7 +95,7 @@ define bugzillaVersion (
content => template('bugzilla/answers.erb'),
owner => "$bugzilla::userOwner",
group => "$bugzilla::userGroup",
- require => Exec["extract bugzilla $version"],
+ require => Exec["post extract bugzilla $version"],
}
file { "$base/$version/extensions/Mylyn":
@@ -84,7 +106,7 @@ define bugzillaVersion (
owner => "$bugzilla::userOwner",
group => "$bugzilla::userGroup",
source => "puppet:///modules/bugzilla/extensions/Mylyn",
- require => Exec["extract bugzilla $version"],
+ require => Exec["post extract bugzilla $version"],
}
file { "$base/$version/extensions/Mylyn/Extension.pm":

Back to the top