From 5690f9971bdee17e724c660db62e33d6d21d2ac8 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 15 Jun 2016 13:20:11 -0700 Subject: [PATCH] Decomission jenkins-dev.openstack.org Change-Id: I9c2c3d96b6442241ef5fe6fb5afc3fdf18834a76 --- hiera/common.yaml | 1 - manifests/site.pp | 28 ---- .../files/puppetmaster/groups.txt | 2 +- .../manifests/jenkins_dev.pp | 141 ------------------ 4 files changed, 1 insertion(+), 171 deletions(-) delete mode 100644 modules/openstack_project/manifests/jenkins_dev.pp diff --git a/hiera/common.yaml b/hiera/common.yaml index 501743924c..3be8e8b0a5 100644 --- a/hiera/common.yaml +++ b/hiera/common.yaml @@ -292,7 +292,6 @@ cacti_hosts: - groups-dev.openstack.org - groups.openstack.org - health.openstack.org -- jenkins-dev.openstack.org - jenkins05.openstack.org - jenkins06.openstack.org - jenkins07.openstack.org diff --git a/manifests/site.pp b/manifests/site.pp index 70133818cc..26c5a213a2 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -161,32 +161,6 @@ node /^jenkins\d+\.openstack\.org$/ { } } -# Node-OS: precise -node 'jenkins-dev.openstack.org' { - $http_iptables_rule = '-m state --state NEW -m tcp -p tcp --dport 80 -s nodepool.openstack.org -j ACCEPT' - $https_iptables_rule = '-m state --state NEW -m tcp -p tcp --dport 443 -s nodepool.openstack.org -j ACCEPT' - $iptables_rule = flatten([$http_iptables_rule, $https_iptables_rule]) - class { 'openstack_project::server': - iptables_rules6 => $iptables_rule, - iptables_rules4 => $iptables_rule, - sysadmins => hiera('sysadmins', []), - puppetmaster_server => 'puppetmaster.openstack.org', - } - class { 'openstack_project::jenkins_dev': - project_config_repo => 'https://git.openstack.org/openstack-infra/project-config', - jenkins_ssh_private_key => hiera('jenkins_dev_ssh_private_key_contents'), - mysql_password => hiera('nodepool_dev_mysql_password'), - mysql_root_password => hiera('nodepool_dev_mysql_root_password'), - nodepool_ssh_private_key => hiera('jenkins_dev_ssh_private_key_contents'), - jenkins_api_user => hiera('jenkins_dev_api_user', 'username'), - jenkins_api_key => hiera('jenkins_dev_api_key'), - jenkins_credentials_id => hiera('jenkins_dev_credentials_id'), - hpcloud_username => hiera('nodepool_hpcloud_username', 'username'), - hpcloud_password => hiera('nodepool_hpcloud_password'), - hpcloud_project => hiera('nodepool_hpcloud_project'), - } -} - # Node-OS: trusty node 'cacti.openstack.org' { include openstack_project::ssl_cert_check @@ -817,7 +791,6 @@ node 'zuul.openstack.org' { 'jenkins05.openstack.org', 'jenkins06.openstack.org', 'jenkins07.openstack.org', - 'jenkins-dev.openstack.org', 'zlstatic01.openstack.org', 'zl01.openstack.org', 'zl02.openstack.org', @@ -918,7 +891,6 @@ node 'zuul-dev.openstack.org' { 'jenkins05.openstack.org', 'jenkins06.openstack.org', 'jenkins07.openstack.org', - 'jenkins-dev.openstack.org', ], } } diff --git a/modules/openstack_project/files/puppetmaster/groups.txt b/modules/openstack_project/files/puppetmaster/groups.txt index ed7ca454e3..a8e8b43b39 100644 --- a/modules/openstack_project/files/puppetmaster/groups.txt +++ b/modules/openstack_project/files/puppetmaster/groups.txt @@ -10,4 +10,4 @@ afsdb afsdb*.openstack.org afs afs*.*.openstack.org wheel-mirror *wheel-mirror-*.openstack.org afsadmin mirror-update.openstack.org:release.slave.openstack.org -disabled ci-backup-rs-ord.openstack.org:jenkins-dev.openstack.org:ask-staging.openstack.org:db368fcd-e61a-4294-a5cb-851c16650f7a +disabled ci-backup-rs-ord.openstack.org:ask-staging.openstack.org:db368fcd-e61a-4294-a5cb-851c16650f7a diff --git a/modules/openstack_project/manifests/jenkins_dev.pp b/modules/openstack_project/manifests/jenkins_dev.pp deleted file mode 100644 index a93857a24a..0000000000 --- a/modules/openstack_project/manifests/jenkins_dev.pp +++ /dev/null @@ -1,141 +0,0 @@ -# == Class: openstack_project::jenkins_dev -# -class openstack_project::jenkins_dev ( - $project_config_repo = '', - $jenkins_ssh_private_key = '', - $mysql_root_password, - $mysql_password, - $nodepool_ssh_private_key = '', - $jenkins_api_user ='', - $jenkins_api_key ='', - $jenkins_credentials_id ='', - $hpcloud_username ='', - $hpcloud_password ='', - $hpcloud_project ='', - $nodepool_template ='nodepool-dev.yaml.erb', -) { - - realize ( - User::Virtual::Localuser['zaro'], - ) - - include openstack_project - - include bup - bup::site { 'rs-ord': - backup_user => 'bup-jenkins-dev', - backup_server => 'ci-backup-rs-ord.openstack.org', - } - class { '::jenkins::master': - vhost_name => 'jenkins-dev.openstack.org', - serveradmin => 'webmaster@openstack.org', - logo => 'openstack.png', - ssl_cert_file => '/etc/ssl/certs/ssl-cert-snakeoil.pem', - ssl_key_file => '/etc/ssl/private/ssl-cert-snakeoil.key', - ssl_chain_file => '', - jenkins_ssh_private_key => $jenkins_ssh_private_key, - jenkins_ssh_public_key => $openstack_project::jenkins_dev_ssh_key, - } - - jenkins::plugin { 'build-timeout': - version => '1.14', - } - jenkins::plugin { 'copyartifact': - version => '1.22', - } - jenkins::plugin { 'dashboard-view': - version => '2.3', - } - jenkins::plugin { 'gearman-plugin': - version => '0.1.3', - } - jenkins::plugin { 'git': - version => '1.1.23', - } - jenkins::plugin { 'greenballs': - version => '1.12', - } - jenkins::plugin { 'extended-read-permission': - version => '1.0', - } - jenkins::plugin { 'zmq-event-publisher': - version => '0.0.3', - } -# TODO(jeblair): release -# jenkins::plugin { 'scp': -# version => '1.9', -# } - jenkins::plugin { 'jobConfigHistory': - version => '1.13', - } - jenkins::plugin { 'monitoring': - version => '1.40.0', - } - jenkins::plugin { 'nodelabelparameter': - version => '1.2.1', - } - jenkins::plugin { 'notification': - version => '1.4', - } - jenkins::plugin { 'openid': - version => '1.5', - } - jenkins::plugin { 'postbuildscript': - version => '0.16', - } - jenkins::plugin { 'publish-over-ftp': - version => '1.7', - } - jenkins::plugin { 'simple-theme-plugin': - version => '0.2', - } - jenkins::plugin { 'timestamper': - version => '1.3.1', - } - jenkins::plugin { 'token-macro': - version => '1.5.1', - } - - class { '::nodepool': - mysql_root_password => $mysql_root_password, - mysql_password => $mysql_password, - nodepool_ssh_private_key => $nodepool_ssh_private_key, - environment => { - 'NODEPOOL_SSH_KEY' => $openstack_project::jenkins_dev_ssh_key, - } - } - - file { '/etc/nodepool/nodepool.yaml': - ensure => present, - owner => 'nodepool', - group => 'root', - mode => '0400', - content => template("openstack_project/nodepool/${nodepool_template}"), - require => [ - File['/etc/nodepool'], - User['nodepool'], - ], - } - - file { '/etc/nodepool/scripts': - ensure => directory, - owner => 'root', - group => 'root', - mode => '0755', - recurse => true, - purge => true, - force => true, - require => [ - File['/etc/nodepool'], - Class['project_config'], - ], - source => $::project_config::nodepool_scripts_dir, - } - - if ! defined(Class['project_config']) { - class { 'project_config': - url => $project_config_repo, - } - } - -}