From e84293b20be9124e632d70931809a75e54c86855 Mon Sep 17 00:00:00 2001 From: Randy Stauner Date: Sun, 4 Oct 2015 20:09:20 -0700 Subject: [PATCH 1/3] Install mongodb on the dev vm --- hieradata/env/dev.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/hieradata/env/dev.yaml b/hieradata/env/dev.yaml index 00463c8e..6205588a 100644 --- a/hieradata/env/dev.yaml +++ b/hieradata/env/dev.yaml @@ -2,5 +2,6 @@ classes: - metacpan::role::developer + - metacpan::system::mongodb metacpan::tmp_dir: '/tmp/metacpan' From c23ba08ede68079372a609af5111bb90afaf3ee6 Mon Sep 17 00:00:00 2001 From: Randy Stauner Date: Sun, 4 Oct 2015 20:09:37 -0700 Subject: [PATCH 2/3] Move ghm to common and enable in prod --- hieradata/common.yaml | 11 +++++++++++ hieradata/env/production.yaml | 9 --------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/hieradata/common.yaml b/hieradata/common.yaml index d009445a..6fa1393e 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -118,6 +118,17 @@ metacpan::web::starman: socket_io: template: 'socket_io' + github-meets-cpan: + git_source: 'https://github.com/CPAN-API/github-meets-cpan.git' + git_revision: 'master' + vhost_bare: true + vhost_aliases: + - 'gh.metacpan.org' + - "gh.lo.metacpan.org" + - "gh.%{hostname}.metacpan.org" + starman_port: 5002 + starman_workers: 1 + metacpan::web::static: diff --git a/hieradata/env/production.yaml b/hieradata/env/production.yaml index 77732329..1d14e67f 100644 --- a/hieradata/env/production.yaml +++ b/hieradata/env/production.yaml @@ -30,17 +30,8 @@ metacpan::web::starman: metacpan-api: git_enable: true starman_workers: 14 - github-meets-cpan: - git_source: 'https://github.com/CPAN-API/github-meets-cpan.git' - git_revision: 'master' git_enable: true - vhost_bare: true - vhost_aliases: - - 'gh.metacpan.org' - - "gh.lo.metacpan.org" - - "gh.%{hostname}.metacpan.org" - starman_port: 5002 starman_workers: 1 metacpan::web::static: From 6ad32ef7155335070833af820a822e54af15956c Mon Sep 17 00:00:00 2001 From: Randy Stauner Date: Sun, 4 Oct 2015 20:45:37 -0700 Subject: [PATCH 3/3] Open gmc port 5002 in dev vm --- hieradata/nodes/metacpan-dev.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hieradata/nodes/metacpan-dev.yaml b/hieradata/nodes/metacpan-dev.yaml index 3b9336f1..348bf161 100644 --- a/hieradata/nodes/metacpan-dev.yaml +++ b/hieradata/nodes/metacpan-dev.yaml @@ -28,5 +28,8 @@ metacpan::fw_ports: metacpan_api: port: 5000 source: '0.0.0.0/0' + github-meets-cpan: + port: 5002 + source: '0.0.0.0/0' starman::config::plack_env: development