Manage apt and gems path with puppet. Add tarmac.conf and key.
Change-Id: I04c6edd049935b4f825ea2e70686e0803f75ba35
This commit is contained in:
parent
efc559aff7
commit
255d17904c
2
modules/jenkins_slave/files/rubygems.sh
Normal file
2
modules/jenkins_slave/files/rubygems.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
PATH=/var/lib/gems/1.8/bin:$PATH
|
||||||
|
export PATH
|
8
modules/jenkins_slave/files/sources.list
Normal file
8
modules/jenkins_slave/files/sources.list
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe
|
||||||
|
deb-src http://archive.ubuntu.com/ubuntu/ natty main restricted universe
|
||||||
|
|
||||||
|
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe
|
||||||
|
deb-src http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe
|
||||||
|
|
||||||
|
deb http://security.ubuntu.com/ubuntu natty-security main restricted universe
|
||||||
|
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted universe
|
32
modules/jenkins_slave/files/tarmac.conf
Executable file
32
modules/jenkins_slave/files/tarmac.conf
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
[Tarmac]
|
||||||
|
rejected_branch_status = Work in progress
|
||||||
|
|
||||||
|
[lp:nova]
|
||||||
|
verify_command=/home/jenkins/openstack-ci/test_nova.sh
|
||||||
|
|
||||||
|
[lp:~hudson-openstack/nova/milestone-proposed]
|
||||||
|
verify_command=/home/jenkins/openstack-ci/test_nova.sh
|
||||||
|
|
||||||
|
[lp:openstack-dashboard]
|
||||||
|
verify_command=bash run_tests.sh
|
||||||
|
|
||||||
|
[lp:glance]
|
||||||
|
verify_command=python setup.py test
|
||||||
|
|
||||||
|
[lp:~hudson-openstack/glance/milestone-proposed]
|
||||||
|
verify_command=python setup.py test
|
||||||
|
|
||||||
|
[lp:swift]
|
||||||
|
verify_command=python setup.py test
|
||||||
|
|
||||||
|
[lp:swift/1.1]
|
||||||
|
verify_command=python setup.py test
|
||||||
|
|
||||||
|
[lp:swift/1.2]
|
||||||
|
verify_command=python setup.py test
|
||||||
|
|
||||||
|
[lp:~hudson-openstack/swift/milestone-proposed]
|
||||||
|
verify_command=python setup.py test
|
||||||
|
|
||||||
|
[lp:burrow]
|
||||||
|
verify_command=python setup.py test
|
@ -21,6 +21,28 @@ class jenkins_slave {
|
|||||||
command => "cd /home/jenkins/openstack-ci && /usr/bin/git pull"
|
command => "cd /home/jenkins/openstack-ci && /usr/bin/git pull"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { 'aptsources':
|
||||||
|
name => '/etc/apt/sources.list',
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => 644,
|
||||||
|
ensure => 'present',
|
||||||
|
source => [
|
||||||
|
"puppet:///modules/jenkins_slave/sources.list",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
file { 'profilerubygems':
|
||||||
|
name => '/etc/profile.d/rubygems.sh',
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => 644,
|
||||||
|
ensure => 'present',
|
||||||
|
source => [
|
||||||
|
"puppet:///modules/jenkins_slave/rubygems.sh",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
package { "python-software-properties":
|
package { "python-software-properties":
|
||||||
ensure => latest
|
ensure => latest
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ define jenkinsuser($ensure = present) {
|
|||||||
name => '/home/jenkins/.gnupg',
|
name => '/home/jenkins/.gnupg',
|
||||||
owner => 'jenkins',
|
owner => 'jenkins',
|
||||||
group => 'jenkins',
|
group => 'jenkins',
|
||||||
mode => 600,
|
mode => 700,
|
||||||
ensure => 'directory',
|
ensure => 'directory',
|
||||||
require => File['jenkinshome'],
|
require => File['jenkinshome'],
|
||||||
}
|
}
|
||||||
@ -147,4 +147,47 @@ define jenkinsuser($ensure = present) {
|
|||||||
"puppet:///modules/jenkins_slave/slave_gpg_key",
|
"puppet:///modules/jenkins_slave/slave_gpg_key",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { 'jenkinsconfigdir':
|
||||||
|
name => '/home/jenkins/.config',
|
||||||
|
owner => 'jenkins',
|
||||||
|
group => 'jenkins',
|
||||||
|
mode => 755,
|
||||||
|
ensure => 'directory',
|
||||||
|
require => File['jenkinshome'],
|
||||||
|
}
|
||||||
|
|
||||||
|
file { 'jenkinsconftarmacdir':
|
||||||
|
name => '/home/jenkins/.config/tarmac',
|
||||||
|
owner => 'jenkins',
|
||||||
|
group => 'jenkins',
|
||||||
|
mode => 755,
|
||||||
|
ensure => 'directory',
|
||||||
|
require => File['jenkinsconfigdir'],
|
||||||
|
}
|
||||||
|
|
||||||
|
file { 'jenkinstarmacconf':
|
||||||
|
name => '/home/jenkins/.config/tarmac/tarmac.conf',
|
||||||
|
owner => 'jenkins',
|
||||||
|
group => 'jenkins',
|
||||||
|
mode => 644,
|
||||||
|
ensure => 'present',
|
||||||
|
require => File['jenkinsconftarmacdir'],
|
||||||
|
source => [
|
||||||
|
"puppet:///modules/jenkins_slave/tarmac.conf",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
file { 'jenkinstarmaccredentials':
|
||||||
|
name => '/home/jenkins/.config/tarmac/credentials',
|
||||||
|
owner => 'jenkins',
|
||||||
|
group => 'jenkins',
|
||||||
|
mode => 640,
|
||||||
|
ensure => 'present',
|
||||||
|
require => File['jenkinsconftarmacdir'],
|
||||||
|
source => [
|
||||||
|
"puppet:///modules/jenkins_slave/slave_tarmac_key",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user