Add codesearch.o.o node and module

puppet-hound is in working order. This adds puppet-hound to
INTEGRATION_MODULES, creates a new codesearch.o.o node,
and installs hound on it.

Depends-On: Ie4b6509947f58407c4cc6f5a2c7c2bc84c619ce9
Change-Id: I238b05e8b25229d7dcf840441cd9d3af09f3e249
This commit is contained in:
Emma Barber 2015-08-24 23:23:06 -07:00
parent 35694901b0
commit 17b4cbc317
3 changed files with 47 additions and 0 deletions

View File

@ -1011,4 +1011,15 @@ node 'odsreg.openstack.org' {
}
}
# Node-OS: trusty
node 'codesearch.openstack.org' {
class { 'openstack_project::server':
iptables_public_tcp_ports => [80],
sysadmins => hiera('sysadmins', []),
}
class { 'openstack_project::codesearch':
project_config_repo => 'https://git.openstack.org/openstack-infra/project-config',
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79

View File

@ -86,6 +86,7 @@ INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-gerritbot"]="ori
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-github"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-graphite"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-haveged"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-hound"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-httpd"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-iptables"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-jeepyb"]="origin/master"

View File

@ -0,0 +1,35 @@
# Class to configure hound on a node.
class openstack_project::codesearch (
$project_config_repo,
) {
class { 'project_config':
url => $project_config_repo,
}
class { 'hound':
manage_config => false,
}
include ::jeepyb
include ::logrotate
include ::pip
file { '/home/hound/config.json':
ensure => 'present',
}
exec { 'create-hound-config':
command => 'create-hound-config',
path => '/bin:/usr/bin:/usr/local/bin',
environment => "PROJECTS_YAML=${::project_config::jeepyb_project_file}",
user => 'hound',
cwd => '/home/hound',
require => [
$::project_config::config_dir,
File['/home/hound'],
],
notify => Service['hound']
}
}