diff options
author | Leif Johansson <leifj@sunet.se> | 2015-09-15 11:38:42 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-09-15 11:38:42 +0200 |
commit | 123a388f9329466f4d732dc4ad581e8cd46bdcb9 (patch) | |
tree | 42d0d557c74c2432391d4af9d0083b7e28ee54f3 /global/overlay/etc/puppet | |
parent | 46fdf1df194ead48f4f39803f179a7df763cd1ea (diff) |
use sunet macrosunet-ops-2015-09-15-v01
Diffstat (limited to 'global/overlay/etc/puppet')
-rw-r--r-- | global/overlay/etc/puppet/manifests/cosmos-site.pp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 7699f33..8ce667e 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -115,29 +115,23 @@ node 'reep.tid.isoc.org' { } node 'datasets.sunet.se' { - docker::image {'dockerfile/redis': } - docker::image {'docker.sunet.se/datasets': } file {'/opt/lobo2-redis-data': ensure => 'directory', } file {'/etc/ssl': ensure => 'directory', } - docker::run {'redis': + sunet::docker_run {'redis': image => 'dockerfile/redis', - use_name => true, volumes => ['/opt/lobo2-redis-data:/data','/var/log:/var/log'], - verify_checksum => false, - } - docker::run {'datasets': + } -> + sunet::docker_run {'datasets': image => 'docker.sunet.se/datasets', - use_name => true, env => ['BASE_URL=https://datasets.sunet.se'], volumes => ['/etc/ssl:/etc/ssl','/var/log:/var/log'], ports => ['80:80','443:443'], - links => ['redis:redis'], + env => ["REDIS_PORT=tcp://redis.docker:6379"], start_on => 'docker-redis', - verify_checksum => false, } } |