Created
May 3, 2013 10:05
-
-
Save tubit/5508320 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
PUPPETDB | |
puppet: | |
apt-get update | |
apt-get install puppet | |
puppet resource package puppetdb ensure=latest | |
## postgreSQL konfigurieren: | |
apt-get install postgresql-8.4 | |
sudo -u postgres sh | |
createuser -DRSP puppetdb | |
# password: myCrazyPassword | |
createdb -O puppetdb puppetdb | |
exit | |
## puppetdb an die postgreSQL binden | |
/etc/puppetdb/conf.d/database.ini: | |
[database] | |
classname = org.postgresql.Driver | |
subprotocol = postgresql | |
subname = //localhost:5432/puppetdb | |
username = puppetdb | |
password = myCrazyPassword | |
# How often (in minutes) to compact the database | |
gc-interval = 60 | |
# Number of seconds before any SQL query is considered 'slow'; offending | |
# queries will not be interrupted, but will be logged at the WARN log level. | |
log-slow-statements = 10 | |
## heap-size anpassen: | |
/etc/default/puppetdb: | |
JAVA_ARGS="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetdb/puppetdb-oom.hprof " | |
## binding: | |
/etc/puppetdb/conf.d/jetty.ini: | |
host = puppetdb1 | |
## ssl zeugs | |
puppet agent --server=puppetmaster1 --no-daemonize --test --verbose | |
# signen auf dem puppetmaster | |
/usr/sbin/puppetdb-ssl-setup | |
## service starten | |
puppet resource service puppetdb ensure=running enable=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment