Skip to content

Instantly share code, notes, and snippets.

@lukeab
Last active December 4, 2015 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukeab/061e2942364c6e217c6e to your computer and use it in GitHub Desktop.
Save lukeab/061e2942364c6e217c6e to your computer and use it in GitHub Desktop.
elasticsearch_plugins:
'elasticsearch/elasticsearch-cloud-aws':
module_dir : 'cloud-aws'
url : 'http://download.elasticsearch.org/elasticsearch/elasticsearch-cloud-aws/elasticsearch-cloud-aws-2.5.1.zip'
instances : 'es-logstash'
'royrusso/elasticsearch-HQ':
module_dir: HQ
instances: 'es-logstash'
'mobz/elasticsearch-head':
module_dir: head
instances: 'es-logstash'
class software_profiles::logstash_service_profile {
# ELK Stack
class { '::elasticsearch': }
elasticsearch::instance { 'es-logstash':
}
create_resources('::elasticsearch::plugin', hiera('elasticsearch_plugins'))
include ::nginx
package { 'kibana':
ensure => installed,
} ->
nginx::resource::vhost { 'kibana':
ensure => present,
server_name => ["logs.$::domain"],
listen_port => 80,
www_root => '/usr/share/kibana',
}
}
Error: Could not set content on file: can't modify frozen String
==> /var/log/puppet/puppet.log <==
Notice: Scope(Node[default]): Location : awseuwest1
Notice: Scope(Node[default]): Environment : sit
Notice: Scope(Node[default]): Product : dotcom
Notice: Scope(Node[default]): Role : logstash
Notice: Compiled catalog for logstash-xxxxxxxxx.sit.dotcom in environment production in 20.22 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment