|
I'd like to able to install and configure the log forwarder using puppet. What needs to be done to make that happen? |
|
Puppet works very well with Splunk. You should configure a Puppet package to push the Splunk installer out to the forwarder, along with some base installation items such as the forwarder license, a script to enable the service at boot, and a matched set of On top of that, you can then push the forwarder-specific configuration files and apps that are necessary to run as a forwarder. If you have many classes of Splunk forwarder, or other classes of Splunk server, you can create separate packages for each one to push a different set of configurations. I do recommend that you organize the configuration sets using Splunk apps, and group the apps into Puppet packages by server class. |
|
Here is my current (working) manifest! (v.2) class splunk::forwarder { $mod = "splunk" service {
} package {
} file {
} } I just working on a puppet config that didn't restart correctly the universal forwarder, because of exit status 0 on both start and stop splunk status. hasstatus false and pattern splunkd is a nice information for me, thanks :)
(06 Feb, 08:25)
bizza
|
|
This is a great question! I'm writing a puppet manifest to deploy my forwarders based on this answer. However I can't seem to get the forwarder license right. I'm copying "splunk-forwarder.license" into splunk.license" but I still get a EULA on first start... is there something i'm missing? I'd be happy to post my manifest here as an example once I'm finished! Thanks! I'm using just the init script (/etc/init.d/splunk start|stop|restart) to start the forwarder, I suppose I could edit the script after it's created, but I was hoping there was a better way to accept, or place the license. I'm trying create an automated deploy with puppet, for our standard builds.
(15 Aug '10, 22:00)
thartmann
1
as pde23 says, yeah, just edit the script and add the flags
(15 Aug '10, 23:45)
gkanapathy ♦
1
Awesome! I think that will work well! I'll post my current manifest! Thanks much guys!
(16 Aug '10, 20:44)
thartmann
|
|
A more complete Splunk class for Puppet, to turn most nodes into lightweight forwarders (and one indexer), can be found at Github: http://bit.ly/dhvN36. The class is based on hexx0's SSL tutorial. |
|
Splunk does NOT work well with puppet. There are quite a number of files that are auto-generated by Splunk, and re-pushing out the old files with puppet will break Splunk. Also, if you deploy all the files you need with puppet, when you start Splunk for the first time, it thinks your doing an upgrade. Don't know what the repurcusions of that might be. it should be fine as long as you get your required order proper and make sure not to overwrite anything that would be changed during normal operations of splunk. I'm planning on writing a splunk module to deploy universal forwarders and I don't see any reason why it con't be done.
(06 Apr, 08:20)
infinitiguy
|
