From the course: Puppet Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Finishing touches

Finishing touches - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

Finishing touches

- [Instructor] Now that we've got a basic Puppet module that does what we need, we'll need to add a few things to make it more versatile and easier to maintain. The Elastic modules make this setup pretty easy but there a couple things that would be nice to have. To start, let's add some configurability to our filebeat class. Right now it doesn't do any configuration. According to the docs on Elastic's website, the filebeat configuration is located in /etc/filebeat/filebeat.yml, so let's create a file resource to manage that file. I'll type file and then /etc/filebeat/filebeat.yml, Y-M-L. Then I'm gonna say ensure file and content and we'll use an EPP template for this, so EPP, open paren and then the location of the template which we'll create in a second is elk/filebeat.yml.epp. For the second argument, we'll need a list of parameters, so let's just say logstash_server and assign that to a parameter we're about to set up. Logstash_server and then we'll do logstash_port…

Contents