Added AFS keytab to wheel slave
This adds a hiera-loaded keytab for the wheel slaves. It may be used when writing wheels to the AFS share directory. Note: This will require the creation of a keytab for the wheel mirror, as well as appropriate folders and access rights on AFS. Change-Id: I81c39d420d8ac70def57949ea0d4c323b8797086
This commit is contained in:
parent
ea17fc43a6
commit
320dd74280
@ -1136,9 +1136,11 @@ node 'codesearch.openstack.org' {
|
||||
node /.*wheel-mirror-.*\.openstack\.org/ {
|
||||
$group = 'wheel-mirror'
|
||||
include openstack_project
|
||||
|
||||
class { 'openstack_project::wheel_mirror_slave':
|
||||
sysadmins => hiera('sysadmins', []),
|
||||
jenkins_ssh_public_key => $openstack_project::jenkins_ssh_key,
|
||||
wheel_keytab => hiera("wheel_keytab"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,18 @@ class openstack_project::wheel_mirror_slave (
|
||||
$sysadmins = [],
|
||||
$jenkins_gitfullname = 'OpenStack Jenkins',
|
||||
$jenkins_gitemail = 'jenkins@openstack.org',
|
||||
$wheel_keytab = undef,
|
||||
) {
|
||||
|
||||
if( $wheel_keytab ) {
|
||||
file { "/etc/wheel.keytab":
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0400',
|
||||
content => $wheel_keytab,
|
||||
}
|
||||
}
|
||||
|
||||
class { 'openstack_project::slave':
|
||||
sysadmins => $sysadmins,
|
||||
ssh_key => $jenkins_ssh_public_key,
|
||||
|
Loading…
x
Reference in New Issue
Block a user