Last active
May 22, 2017 22:55
-
-
Save raphink/f9481affa99ff9622259 to your computer and use it in GitHub Desktop.
C2C Blog Post: Puppet docker-compose.yml
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
--- | |
puppetmaster: | |
image: 'camptocamp/puppetserver:2.2.1-3' | |
restart: 'always' | |
environment: | |
JAVA_ARGS: '-Xmx10g -Xms10g -XX:MaxPermSize=256m -XX:OnOutOfMemoryError="kill -9 %p" -Djava.security.egd=/dev/urandom -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' | |
MAX_ACTIVE_INSTANCES: '5' | |
hostname: 'puppet.example.com' | |
links: | |
- 'puppetdb' | |
ports: | |
- '8140:8140' | |
volumes: | |
- '/srv/puppetca:/etc/puppetlabs/puppet/ssl' | |
- '../common/auth.conf:/etc/puppetlabs/puppet/auth.conf:ro' | |
- './hiera.yaml:/etc/puppetlabs/code/hiera.yaml:ro' | |
- './.gnupg:/opt/puppetlabs/server/data/puppetserver/.gnupg:ro' | |
volumes_from: | |
- 'r10k' | |
r10k: | |
build: 'r10k' | |
restart: 'always' | |
hostname: 'r10k-c2c' | |
ports: | |
- '2222:22' | |
volumes: | |
- 'datacode:/etc/puppetlabs/code/environments/' | |
- 'datagit:/srv/puppetmaster.git/' | |
postgresql: | |
image: 'camptocamp/puppetdb_postgres:9.4-3' | |
restart: 'always' | |
volumes: | |
- 'datapostgresql:/var/lib/postgresql/data/' | |
puppetdb: | |
image: 'camptocamp/puppetdb:3.2.3-1' | |
restart: 'always' | |
environment: | |
ENABLE_HTTP: 'true' | |
JAVA_ARGS: '-Xmx3g -Xms3g -XX:OnOutOfMemoryError="kill -9 %p" -Djava.security.egd=/dev/urandom -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' | |
NODE_PURGE_TTL: '90d' | |
links: | |
- 'postgresql' | |
volumes: | |
- '/srv/puppetca/certs/ca.pem:/etc/puppetlabs/puppetdb/ssl/ca.pem:ro' | |
- '/srv/puppetca/private_keys/puppetdb.pem:/etc/puppetlabs/puppetdb/ssl/private.pem:ro' | |
- '/srv/puppetca/certs/puppetdb.pem:/etc/puppetlabs/puppetdb/ssl/public.pem:ro' | |
puppetboard: | |
image: 'camptocamp/puppetboard:global_default' | |
restart: 'always' | |
links: | |
- 'puppetdb' | |
catalog_diff: | |
build: '../common/catalog_diff' | |
restart: 'always' | |
links: | |
- puppetdb | |
hostname: 'catalog-diff' | |
environment: | |
SITE: 'c2c' | |
MASTER1: 'puppet.example.com' | |
THREADS: 3 | |
USE_PUPPETDB: 'yes' | |
volumes: | |
- '/srv/puppetca/certs/ca.pem:/etc/puppetlabs/puppet/ssl/certs/ca.pem' | |
- '/srv/puppetca/private_keys/catalog-diff.pem:/etc/puppetlabs/puppet/ssl/private_keys/catalog-diff.pem' | |
- '/srv/puppetca/certs/catalog-diff.pem:/etc/puppetlabs/puppet/ssl/certs/catalog-diff.pem' | |
- './catalog_diff_id_rsa:/root/.ssh/id_rsa:ro' | |
- './catalog-diff-s3cfg:/root/.s3cfg:ro' | |
catalog_diff_viewer: | |
image: 'camptocamp/puppet-catalog-diff-viewer:latest' | |
restart: 'always' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found camptocamp/rancher-template-puppet repository has up-to-date docker-compose.yml definition.
Correct me if i'm wrong