diff --git a/modules/jenkins_master/files/versions.conf b/modules/jenkins_master/files/versions.conf new file mode 100644 index 0000000000..abc75d630d --- /dev/null +++ b/modules/jenkins_master/files/versions.conf @@ -0,0 +1,8 @@ +description "BZR smart server of tarball versions" +author "Monty Taylor " + +start on (local-filesystems and net-device-up) +stop on runlevel [!2345] + +exec bzr serve --allow-writes -d /var/lib/jenkins/versions/ + diff --git a/modules/jenkins_master/manifests/init.pp b/modules/jenkins_master/manifests/init.pp index 18b4579995..cdc8393e29 100644 --- a/modules/jenkins_master/manifests/init.pp +++ b/modules/jenkins_master/manifests/init.pp @@ -45,6 +45,21 @@ class jenkins_master { require => File['/etc/apt/sources.list.d/jenkins.list'], } + service { "versions": + provider => upstart, + ensure => running, + } + + file { '/etc/init/versions.conf': + owner => 'root', + group => 'root', + mode => 444, + ensure => 'present', + source => "puppet:///modules/jenkins_master/versions.conf", + replace => 'true', + notify => Service["versions"] + } + package { "apache-libcloud": ensure => latest, provider => pip,