Last active
December 20, 2015 17:19
-
-
Save gabriel403/6167702 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class projects::queuesystem::butts( | |
$jarbase = 'https://logstash.objects.dreamhost.com/release', | |
$jarfile = 'logstash-1.1.13-monolithic.jar', | |
$jarpath = "/tmp/$jarfile", | |
$jdk = 'openjdk-7-jre-headless', | |
$installpath = '/opt/logstash' | |
) { | |
Exec { path => '/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin'} | |
include elasticsearch | |
package { 'curl': | |
ensure => present, | |
} | |
include java::jre | |
exec { 'get-jarfile': | |
command => "/usr/bin/curl -L ${jarbase}/${jarfile} -o ${jarpath}", | |
creates => $jarpath, | |
require => Package['curl'], | |
} | |
file { $installpath: | |
ensure => directory, | |
owner => root, | |
group => root, | |
mode => '0755', | |
} | |
class { 'logstash': | |
jarfile => $jarpath, | |
provider => 'custom', | |
installpath => $installpath, | |
require => [Exec['get-jarfile'], Class['java::jre'], File[$installpath]], | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Duplicate declaration: File[/opt/logstash/tmp] is already declared in file /tmp/vagrant-puppet/modules-0/logstash/manifests/package.pp at line 101; cannot redeclare at /tmp/vagrant-puppet/modules-0/logstash/manifests/config.pp:63 on node logstash-central.gomad.it | |
manifests/projects/queuesystem/logstash_setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class projects::queuesystem::logstash-setup( | |
$jarbase = 'https://logstash.objects.dreamhost.com/release', | |
$jarfile = 'logstash-1.1.13-monolithic.jar', | |
$jarpath = "/tmp/$jarfile", | |
$jdk = 'openjdk-7-jre-headless', | |
$installpath = '/opt/logstash' | |
) { | |
Exec { path => '/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin'} | |
include elasticsearch | |
package { 'curl': | |
ensure => present, | |
} | |
include java::jre | |
exec { 'get-jarfile': | |
command => "/usr/bin/curl -L ${jarbase}/${jarfile} -o ${jarpath}", | |
creates => $jarpath, | |
require => Package['curl'], | |
} | |
file { $installpath: | |
ensure => directory, | |
owner => root, | |
group => root, | |
mode => '0755', | |
} | |
class { 'logstash': | |
jarfile => $jarpath, | |
provider => 'custom', | |
installpath => $installpath, | |
require => [Exec['get-jarfile'], Class['java::jre'], File[$installpath]], | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class { 'projects::queuesystem::logstashsetup': } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment