Skip to content

Instantly share code, notes, and snippets.

@SimonHoenscheid
Forked from lazyfrosch/hiera.yaml
Created August 1, 2016 13:44
Show Gist options
  • Save SimonHoenscheid/9f66d6c9bb4d932a047688fcd29ca8fa to your computer and use it in GitHub Desktop.
Save SimonHoenscheid/9f66d6c9bb4d932a047688fcd29ca8fa to your computer and use it in GitHub Desktop.
Docker via Puppet
---
docker::run_instance::instance:
gitlab-redis:
image: redis
volumes:
- '/data/services/gitlab/redis/data:/data'
gitlab:
image: sameersbn/gitlab:8.10.1
volumes:
- '/data/services/gitlab/data:/home/git/data'
env_file:
- /data/services/gitlab/environment
ports:
- 5.9.9.19:22:22
- 127.0.0.1:10080:8181
links:
- gitlab-redis:redisio
after:
- gitlab-redis
depend_services:
- postgresql@9.4-main
class profiles::docker
{
include ::docker
$_instances = hiera('docker::run_instance::instance', undef)
if is_hash($_instances) {
include ::docker::run_instance
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment