Add upstart script for versions information.
Change-Id: Ie060ab4ae75b21197d07db78dc3b86370fd0a493
This commit is contained in:
parent
5e094fb1a6
commit
69255755e0
8
modules/jenkins_master/files/versions.conf
Normal file
8
modules/jenkins_master/files/versions.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
description "BZR smart server of tarball versions"
|
||||||
|
author "Monty Taylor <mordred@inaugust.com>"
|
||||||
|
|
||||||
|
start on (local-filesystems and net-device-up)
|
||||||
|
stop on runlevel [!2345]
|
||||||
|
|
||||||
|
exec bzr serve --allow-writes -d /var/lib/jenkins/versions/
|
||||||
|
|
@ -45,6 +45,21 @@ class jenkins_master {
|
|||||||
require => File['/etc/apt/sources.list.d/jenkins.list'],
|
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":
|
package { "apache-libcloud":
|
||||||
ensure => latest,
|
ensure => latest,
|
||||||
provider => pip,
|
provider => pip,
|
||||||
|
Loading…
Reference in New Issue
Block a user