[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r53: Initial buildbot module.

Jeff Licquia licquia at linuxfoundation.org
Thu Jan 26 02:05:56 UTC 2012


------------------------------------------------------------
revno: 53
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: puppet-lsb
timestamp: Wed 2012-01-25 21:05:56 -0500
message:
  Initial buildbot module.
added:
  modules/buildbot/
  modules/buildbot/files/
  modules/buildbot/files/Makefile
  modules/buildbot/manifests/
  modules/buildbot/manifests/init.pp
  modules/buildbot/manifests/master.pp
  modules/buildbot/manifests/slave.pp
modified:
  manifests/nodes/lsb1.pp
-------------- next part --------------
=== modified file 'manifests/nodes/lsb1.pp'
--- a/manifests/nodes/lsb1.pp	2012-01-25 19:52:50 +0000
+++ b/manifests/nodes/lsb1.pp	2012-01-26 02:05:56 +0000
@@ -10,5 +10,8 @@
 
     include mail::postfix
 
-    include python::virtualenv
+    include buildbot::master
+
+    include buildbot::slave
+
 }

=== added directory 'modules/buildbot'
=== added directory 'modules/buildbot/files'
=== added file 'modules/buildbot/files/Makefile'
--- a/modules/buildbot/files/Makefile	1970-01-01 00:00:00 +0000
+++ b/modules/buildbot/files/Makefile	2012-01-26 02:05:56 +0000
@@ -0,0 +1,15 @@
+#!/usr/bin/make
+
+# Makefile for buildbot setup on build systems.
+
+TOPLEVEL = $(shell pwd)
+
+bin/python:
+	virtualenv $(TOPLEVEL)
+
+bin/buildslave: bin/python
+	bin/pip install buildbot-slave
+
+bin/buildbot: bin/python
+	bin/pip install buildbot
+

=== added directory 'modules/buildbot/manifests'
=== added file 'modules/buildbot/manifests/init.pp'
--- a/modules/buildbot/manifests/init.pp	1970-01-01 00:00:00 +0000
+++ b/modules/buildbot/manifests/init.pp	2012-01-26 02:05:56 +0000
@@ -0,0 +1,29 @@
+class buildbot {
+
+    include python::virtualenv
+
+    # XXX: make needs to be its own module
+    #package { 'make':
+    #    ensure => present,
+    #}
+
+    package { 'python-devel':
+        ensure => present,
+    }
+
+    package { 'gcc':
+        ensure => present,
+    }
+
+    file { "/opt/buildbot":
+        ensure => directory,
+        notify => Exec['setup-buildbot'],
+    }
+
+    file { "/opt/buildbot/Makefile":
+        ensure  => present,
+        source  => "puppet:///modules/buildbot/Makefile",
+        require => File['/opt/buildbot'],
+    }
+
+}

=== added file 'modules/buildbot/manifests/master.pp'
--- a/modules/buildbot/manifests/master.pp	1970-01-01 00:00:00 +0000
+++ b/modules/buildbot/manifests/master.pp	2012-01-26 02:05:56 +0000
@@ -0,0 +1,10 @@
+class buildbot::master inherits buildbot {
+
+    exec { "make bin/buildbot":
+        cwd => "/opt/buildbot",
+        creates => "/opt/buildbot/bin/buildbot",
+        path    => [ "/bin", "/sbin", "/usr/bin", "/usr/sbin" ],
+        require => File["/opt/buildbot/Makefile"],
+    }
+
+}

=== added file 'modules/buildbot/manifests/slave.pp'
--- a/modules/buildbot/manifests/slave.pp	1970-01-01 00:00:00 +0000
+++ b/modules/buildbot/manifests/slave.pp	2012-01-26 02:05:56 +0000
@@ -0,0 +1,10 @@
+class buildbot::slave inherits buildbot {
+
+    exec { "make bin/buildslave":
+        cwd => "/opt/buildbot",
+        creates => "/opt/buildbot/bin/buildslave",
+        path    => [ "/bin", "/sbin", "/usr/bin", "/usr/sbin" ],
+        require => File["/opt/buildbot/Makefile"],
+    }
+
+}



More information about the lsb-messages mailing list