Created
March 4, 2014 09:20
-
-
Save zipkid/9343030 to your computer and use it in GitHub Desktop.
set puppetdb java memory
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 <company>::puppetdb::server::extra ( | |
$memory_allocation = '192m' | |
) | |
{ | |
# Restart the PuppetDB service if settings change | |
Class[<company>::puppetdb::server::extra] ~> Class[puppetdb::server] | |
file { '/etc/sysconfig/puppetdb': | |
ensure => present, | |
content => template('mobistar/sysconfig/puppetdb.erb') | |
} | |
} |
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
########################################### | |
# Init settings for puppetdb | |
########################################### | |
# Location of your Java binary (version 6 or higher) | |
JAVA_BIN="/usr/bin/java" | |
# Modify this if you'd like to change the memory allocation, enable JMX, etc | |
JAVA_ARGS="-Xmx<%= @memory_allocation %> -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetdb/puppetdb-oom.hprof " | |
# These normally shouldn't need to be edited if using OS packages | |
USER="puppetdb" | |
INSTALL_DIR="/usr/share/puppetdb" | |
CONFIG="/etc/puppetdb/conf.d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment