diff --git a/manifests/site.pp b/manifests/site.pp index f4fdad9b33..39b9e1cc01 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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"), } } diff --git a/modules/openstack_project/manifests/wheel_mirror_slave.pp b/modules/openstack_project/manifests/wheel_mirror_slave.pp index 8c1e59c5ac..252bb387d1 100644 --- a/modules/openstack_project/manifests/wheel_mirror_slave.pp +++ b/modules/openstack_project/manifests/wheel_mirror_slave.pp @@ -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,