fuel-library/deployment/puppet/nailgun/manifests/astute.pp
Ivan Suzdal 8833d8b4b6 Systemd syslog settings for astute, nailgun and ostf
Services astute, nailgun, ostf were converted  to systemd units
in a set of requests:
* astute  https://review.openstack.org/#/c/248128
* nailgun https://review.openstack.org/#/c/248206
* ostf    https://review.openstack.org/#/c/248096

assassind, receiverd, statsenderd, oswl_* are a part of nailgun
so there is no separate request for them (included in 248206)

However, those commits add only service units.

This commit adds conf files with customized settings for those services.

Blueprint: master-on-centos7

Compatible with CentOS6 master node.

Change-Id: I1808a0852d7c95079ae27540b77b1ae0035ab65b
2015-12-03 19:57:28 +00:00

66 lines
1.4 KiB
Puppet

class nailgun::astute(
$production = 'prod',
$rabbitmq_host = 'localhost',
$rabbitmq_astute_user = 'naily',
$rabbitmq_astute_password = 'naily',
$bootstrap_flavor = 'centos',
$gem_source = "http://rubygems.org/",
){
$bootstrap_profile = $bootstrap_flavor ? {
/(?i)centos/ => 'bootstrap',
/(?i)ubuntu/ => 'ubuntu_bootstrap',
default => 'bootstrap',
}
case $::operatingsystem {
/(?i)(centos|redhat)/: {
case $::operatingsystemrelease {
/6.+/: {
package { 'ruby21-rubygem-astute': }
}
/7.+/: {
package { 'rubygem-astute': }
}
}
}
}
file { '/etc/sysconfig/astute':
content => template('nailgun/astute.sysconfig.erb'),
owner => 'root',
group => 'root',
mode => '0644'
}
file { '/usr/bin/astuted':
content => template('nailgun/astuted.erb'),
owner => 'root',
group => 'root',
mode => 0755,
}
file {"/etc/astute":
ensure => directory,
owner => 'root',
group => 'root',
mode => 0755,
}
file {"/etc/astute/astuted.conf":
content => template("nailgun/astuted.conf.erb"),
owner => 'root',
group => 'root',
mode => 0644,
require => File["/etc/astute"],
}
file {"/var/log/astute":
ensure => directory,
owner => 'root',
group => 'root',
mode => 0755,
}
}