Created
August 13, 2019 11:26
-
-
Save g3rhard/88d75b341fcfd0d219a582f3e25db033 to your computer and use it in GitHub Desktop.
Puppet test environment
This file contains 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
FROM debian:stretch | |
CMD ["apt-get update && apt-get install -y puppet nano"] | |
CMD tail -f /dev/null |
This file contains 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
version: '3' | |
services: | |
puppet-server: | |
build: | |
context: ./server | |
dockerfile: server.Dockerfile | |
container_name: puppet-server | |
hostname: puppet-server | |
volumes: | |
- ./server/r10k.yaml:/etc/puppetlabs/r10k/r10k.yaml | |
restart: always | |
agent: | |
build: | |
context: ./agent | |
dockerfile: agent.Dockerfile | |
container_name: agent | |
hostname: agent | |
volumes: | |
- ./agent/puppet.conf:/etc/puppet/puppet.conf | |
restart: always | |
depends_on: | |
- puppet-server | |
links: | |
- puppet-server |
This file contains 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
[main] | |
ssldir = /var/lib/puppet/ssl | |
[master] | |
vardir = /var/lib/puppet | |
cadir = /var/lib/puppet/ssl/ca | |
dns_alt_names = puppet | |
[agent] | |
server = puppet-server |
This file contains 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
--- | |
:cachedir: '/var/cache/r10k' | |
:git: | |
provider: shellgit | |
:sources: | |
:base: | |
remote: 'https://github.com/g3rhard/puppet-control-repo.git' | |
basedir: '/etc/puppetlabs/code/environments' | |
ignore_branch_prefixes: | |
- 'master' |
This file contains 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
FROM puppet/puppetserver-standalone:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment