Remove support for Kibana2

The ruby version of Kibana reached its end-of-life in May 2015, remove
support for it from this puppet module.

Change-Id: I164ab9228e8ac8ada95d1ce2c0ee809cc01c9aa3
This commit is contained in:
K Jonathan Harker 2016-04-13 12:02:43 -07:00
parent 0c7f9c5e48
commit 3906807caf
2 changed files with 1 additions and 85 deletions

View File

@ -21,7 +21,7 @@ class kibana (
$js_vhost_aliases = [],
$js_vhost_name = $::fqdn,
$js_vhost_template = 'kibana/dual-elasticsearch.vhost.erb',
$version = 'ruby',
$version = 'js',
) {
group { 'kibana':
@ -47,9 +47,6 @@ class kibana (
}
case $version {
'ruby': {
include ::kibana::ruby
}
'js': {
class { '::kibana::js':
vhost_name => $js_vhost_name,

View File

@ -1,81 +0,0 @@
# Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Class to install kibana frontend to logstash.
#
class kibana::ruby (
$git_revision = 'v0.2.0',
) {
vcsrepo { '/opt/kibana/kibana':
ensure => latest,
provider => git,
source => 'https://github.com/rashidkpc/Kibana2.git',
revision => $git_revision,
require => File['/opt/kibana'],
}
package { 'bundler':
ensure => latest,
provider => 'gem',
}
if $::osfamily == 'Debian' {
package { 'ruby-dev':
ensure => installed,
before => Exec['install_kibana'],
}
package { 'build-essential':
ensure => installed,
before => Exec['install_kibana'],
}
}
exec { 'install_kibana':
command => 'bundle install',
path => ['/usr/bin', '/usr/local/bin'],
cwd => '/opt/kibana/kibana',
logoutput => true,
refreshonly => true,
subscribe => Vcsrepo['/opt/kibana/kibana'],
require => [
User['kibana'],
Package['bundler'],
],
}
file { '/opt/kibana/kibana/KibanaConfig.rb':
ensure => present,
content => template('kibana/config.rb.erb'),
replace => true,
owner => 'kibana',
group => 'kibana',
require => Vcsrepo['/opt/kibana/kibana'],
}
file { '/etc/init/kibana.conf':
ensure => present,
source => 'puppet:///modules/kibana/kibana.init',
}
service { 'kibana':
ensure => running,
require => [
File['/etc/init/kibana.conf'],
File['/opt/kibana/kibana/KibanaConfig.rb'],
Exec['install_kibana'],
],
}
}