feat: initial commit
This commit is contained in:
commit
38f495e3f4
457 changed files with 40577 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
class elastic::filebeat {
|
||||
contain elastic::filebeat::install
|
||||
}
|
||||
|
||||
class elastic::filebeat::install {
|
||||
file { '/opt/filebeat':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
file { '/opt/filebeat/filebeat.deb':
|
||||
ensure => file,
|
||||
source => 'https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.10.2-amd64.deb'
|
||||
} ~>
|
||||
package { 'filebeat':
|
||||
provider => dpkg,
|
||||
source => "/opt/filebeat/filebeat.deb"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
class elastic {
|
||||
|
||||
}
|
35
environments/production/modules/elastic/manifests/kibana.pp
Normal file
35
environments/production/modules/elastic/manifests/kibana.pp
Normal file
|
@ -0,0 +1,35 @@
|
|||
class elastic::kibana {
|
||||
contain elastic::kibana::install
|
||||
contain elastic::kibana::config
|
||||
contain elastic::kibana::service
|
||||
}
|
||||
|
||||
class elastic::kibana::install {
|
||||
file { '/opt/kibana':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
file { '/opt/kibana/kibana.deb':
|
||||
ensure => file,
|
||||
source => 'https://artifacts.elastic.co/downloads/kibana/kibana-7.10.2-amd64.deb'
|
||||
} ~>
|
||||
package { 'kibana':
|
||||
provider => dpkg,
|
||||
source => "/opt/kibana/kibana.deb"
|
||||
}
|
||||
}
|
||||
|
||||
class elastic::kibana::config {
|
||||
file { '/etc/kibana/kibana.yml':
|
||||
ensure => file,
|
||||
content => template('elastic/kibana.yml.erb'),
|
||||
notify => Service['kibana']
|
||||
}
|
||||
}
|
||||
|
||||
class elastic::kibana::service {
|
||||
service { 'kibana':
|
||||
ensure => running,
|
||||
enable => true
|
||||
}
|
||||
}
|
35
environments/production/modules/elastic/manifests/search.pp
Normal file
35
environments/production/modules/elastic/manifests/search.pp
Normal file
|
@ -0,0 +1,35 @@
|
|||
class elastic::search {
|
||||
contain elastic::search::install
|
||||
contain elastic::search::config
|
||||
contain elastic::search::service
|
||||
}
|
||||
|
||||
class elastic::search::install {
|
||||
file { '/opt/search':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
file { '/opt/search/search.deb':
|
||||
ensure => file,
|
||||
source => 'https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2-amd64.deb'
|
||||
} ~>
|
||||
package { 'search':
|
||||
provider => dpkg,
|
||||
source => "/opt/search/search.deb"
|
||||
}
|
||||
}
|
||||
|
||||
class elastic::search::config {
|
||||
file { '/etc/elasticsearch/elasticsearch.yml':
|
||||
ensure => file,
|
||||
source => 'puppet:///modules/elastic/elastic.yml',
|
||||
notify => Service['elasticsearch']
|
||||
}
|
||||
}
|
||||
|
||||
class elastic::search::service {
|
||||
service { 'elasticsearch':
|
||||
ensure => running,
|
||||
enable => true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue