Add nb01.o.o / nb02.o.o as feature/zuulv3
Bring back online nb01 and nb02 so we can test feature/zuulv3 branch for nodepool-builder. This will allow us to rotate between master / feature/zuulv3 builders at the PTG. Change-Id: Ic66765fc16478434dea2ce865990f62625a354a9 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
5f9d7b7b8a
commit
03213ea601
@ -965,6 +965,86 @@ node /^nl\d+\.openstack\.org$/ {
|
||||
}
|
||||
}
|
||||
|
||||
# Node-OS: xenial
|
||||
node /^nb0[12].openstack\.org$/ {
|
||||
$group = 'nodepool'
|
||||
# TODO(pabelanger): Move all of this back into nodepool manifest, it has
|
||||
# grown too big.
|
||||
$rackspace_username = hiera('nodepool_rackspace_username', 'username')
|
||||
$rackspace_password = hiera('nodepool_rackspace_password')
|
||||
$rackspace_project = hiera('nodepool_rackspace_project', 'project')
|
||||
$hpcloud_username = hiera('nodepool_hpcloud_username', 'username')
|
||||
$hpcloud_password = hiera('nodepool_hpcloud_password')
|
||||
$hpcloud_project = hiera('nodepool_hpcloud_project', 'project')
|
||||
$internap_username = hiera('nodepool_internap_username', 'username')
|
||||
$internap_password = hiera('nodepool_internap_password')
|
||||
$internap_project = hiera('nodepool_internap_project', 'project')
|
||||
$ovh_username = hiera('nodepool_ovh_username', 'username')
|
||||
$ovh_password = hiera('nodepool_ovh_password')
|
||||
$ovh_project = hiera('nodepool_ovh_project', 'project')
|
||||
$tripleo_username = hiera('nodepool_tripleo_username', 'username')
|
||||
$tripleo_password = hiera('nodepool_tripleo_password')
|
||||
$tripleo_project = hiera('nodepool_tripleo_project', 'project')
|
||||
$infracloud_vanilla_username = hiera('nodepool_infracloud_vanilla_username', 'username')
|
||||
$infracloud_vanilla_password = hiera('nodepool_infracloud_vanilla_password')
|
||||
$infracloud_vanilla_project = hiera('nodepool_infracloud_vanilla_project', 'project')
|
||||
$infracloud_chocolate_username = hiera('nodepool_infracloud_chocolate_username', 'username')
|
||||
$infracloud_chocolate_password = hiera('nodepool_infracloud_chocolate_password')
|
||||
$infracloud_chocolate_project = hiera('nodepool_infracloud_chocolate_project', 'project')
|
||||
$vexxhost_username = hiera('nodepool_vexxhost_username', 'username')
|
||||
$vexxhost_password = hiera('nodepool_vexxhost_password')
|
||||
$vexxhost_project = hiera('nodepool_vexxhost_project', 'project')
|
||||
$citycloud_username = hiera('nodepool_citycloud_username', 'username')
|
||||
$citycloud_password = hiera('nodepool_citycloud_password')
|
||||
$clouds_yaml = template("openstack_project/nodepool/clouds.yaml.erb")
|
||||
|
||||
class { 'openstack_project::server':
|
||||
sysadmins => hiera('sysadmins', []),
|
||||
iptables_public_tcp_ports => [80],
|
||||
}
|
||||
|
||||
include openstack_project
|
||||
|
||||
class { '::openstackci::nodepool_builder':
|
||||
nodepool_ssh_public_key => hiera('zuul_worker_ssh_public_key_contents'),
|
||||
vhost_name => $::fqdn,
|
||||
project_config_repo => 'https://git.openstack.org/openstack-infra/project-config',
|
||||
oscc_file_contents => $clouds_yaml,
|
||||
image_log_document_root => '/var/log/nodepool/image',
|
||||
statsd_host => 'graphite.openstack.org',
|
||||
builder_logging_conf_template => 'openstack_project/nodepool/nodepool-builder.logging.conf.erb',
|
||||
upload_workers => '16',
|
||||
revision => 'feature/zuulv3',
|
||||
}
|
||||
|
||||
file { '/home/nodepool/.config/openstack/infracloud_vanilla_cacert.pem':
|
||||
ensure => present,
|
||||
owner => 'nodepool',
|
||||
group => 'nodepool',
|
||||
mode => '0600',
|
||||
content => hiera('infracloud_vanilla_ssl_cert_file_contents'),
|
||||
require => Class['::openstackci::nodepool_builder'],
|
||||
}
|
||||
|
||||
file { '/home/nodepool/.config/openstack/infracloud_chocolate_cacert.pem':
|
||||
ensure => present,
|
||||
owner => 'nodepool',
|
||||
group => 'nodepool',
|
||||
mode => '0600',
|
||||
content => hiera('infracloud_chocolate_ssl_cert_file_contents'),
|
||||
require => Class['::openstackci::nodepool_builder'],
|
||||
}
|
||||
|
||||
cron { 'mirror_gitgc':
|
||||
user => 'nodepool',
|
||||
hour => '20',
|
||||
minute => '0',
|
||||
command => 'find /opt/dib_cache/source-repositories/ -type d -name "*.git" -exec git --git-dir="{}" gc \; >/dev/null',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
require => Class['::openstackci::nodepool_builder'],
|
||||
}
|
||||
}
|
||||
|
||||
# Node-OS: trusty
|
||||
# Node-OS: xenial
|
||||
node /^nb0[34].openstack\.org$/ {
|
||||
|
Loading…
Reference in New Issue
Block a user