Commit 84df90f7 authored by Goh Choon Ming's avatar Goh Choon Ming

remove all trailing whitespaces

parent c37b2d83
class opstheater::profile::base::icinga {
Icinga2::Object::Host {
display_name => $::fqdn,
check_command => 'cluster-zone',
......@@ -15,5 +15,5 @@ class opstheater::profile::base::icinga {
remote_endpoint => $::fqdn
},
}
}
......@@ -4,13 +4,13 @@ class opstheater::profile::elasticsearch{
# resources required for elasticsearch
include ::java
include opstheater::profile::filebeat::elasticsearch
class { '::elasticsearch':
}
# load elasticsearch instance details fore hiera
$instances = hiera_hash('opstheater::profile::elasticsearch::instances', undef)
if $instances {
create_resources('elasticsearch::instance', $instances)
} else {
......
class opstheater::profile::foremanproxy {
# Class Defines
$foreman_fqdn = hiera('opstheater::foreman::fqdn')
$foreman_url = hiera('opstheater::foreman::url')
$nginx_ssl_cert = "/etc/nginx/ssl/${foreman_fqdn}.crt";
$nginx_ssl_key = "/etc/nginx/ssl/${foreman_fqdn}.key";
# Include nginx
class { 'nginx': }
# Make our nginx ssl directory
file { ['/etc/nginx/ssl'] :
ensure => directory,
......@@ -18,7 +18,7 @@ class opstheater::profile::foremanproxy {
}
include opstheater::profile::filebeat::foreman::proxy
# Create our SSL Key
file { $nginx_ssl_key :
ensure => file,
......@@ -26,7 +26,7 @@ class opstheater::profile::foremanproxy {
notify => Class['nginx::service'],
require => File['/etc/nginx/ssl'],
}
# Create our SSL Cert for Gitlab Nginx specifically for Nginx with the CACert combined with the cert
concat{ $nginx_ssl_cert:
owner => 'nginx',
......@@ -45,7 +45,7 @@ class opstheater::profile::foremanproxy {
source => 'puppet:///modules/opstheater/ssl/master-cabundle.crt',
order => 20,
}
# If we want to run HTTPS...
if hiera('opstheater::http_mode') == 'https' {
......@@ -70,7 +70,7 @@ class opstheater::profile::foremanproxy {
ssl_cert => $nginx_ssl_cert,
ssl_key => $nginx_ssl_key,
}
# If we don't want HTTPS...
} else {
# Setup a insecure proxy to foreman (for dev envs usually)
......
......@@ -27,7 +27,7 @@ class opstheater::profile::icinga::client {
},
parent => 'master',
}
icinga2::object::zone { 'master':
endpoints => {
$icinga2_web_fqdn => {
......
class opstheater::profile::kibana {
$elasticsearch = hiera('opstheater::elasticsearch::fqdn')
# use the standard kibana4 class, the parameters will be loaded from hiera
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment