Skip to content

First shot at adding perlresume. #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hieradata/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ metacpan::crons::general:
hour : 1
ensure : absent

perlresume:
cmd : "/home/%{hiera('metacpan::user')}/bin/perlresume-carton-exec cron/update.pl"
minute : 20
hour : 3
ensure : absent

swat_monitoring:
cmd : "/bin/sh /home/%{hiera('metacpan::user')}/metacpan-monitoring/cron.sh"
minute : 37
Expand Down
13 changes: 13 additions & 0 deletions hieradata/env/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ metacpan::web::starman:
starman_port: 5002
starman_workers: 1

perlresume:
git_enable: true
starman_workers: 1
git_source: 'https://github.com/vti/perlresume.org'
git_revision: 'master'
vhost_bare: true
vhost_aliases:
- 'perlresume.metacpan.org'
- "perlresume.lo.metacpan.org"
- "perlresume.%{hostname}.metacpan.org"
starman_port: 5003
starman_workers: 1

sco-redirect:
git_enable: true
starman_workers: 10
Expand Down
18 changes: 18 additions & 0 deletions hieradata/nodes/lw-mc-05.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

classes:
- metacpan_postgres::install_only
- metacpan_postgres::pgpass
- minion_queue

minion_queue::service::workers: 10
minion_queue::service::ensure: running
minion_queue::service::enable: true


metacpan::crons::general:
perlresume:
ensure : present

metacpan::crons::general:
metacpan_sitemaps:
minute : 25
3 changes: 3 additions & 0 deletions hieradata/nodes/metacpan-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@ metacpan::fw_ports:
github-meets-cpan:
port: 5002
source: '0.0.0.0/0'
perlresume:
port: 5003
source: '0.0.0.0/0'

starman::config::plack_env: development
8 changes: 8 additions & 0 deletions modules/metacpan/manifests/web/production.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@
notify => Starman::Service['github-meets-cpan'],
}

file { "/home/${user}/perlresume/environment.json":
ensure => file,
owner => $user,
group => $group,
source => "puppet:///private/perlresume/environment.json",
require => Metacpan::Gitrepo['gitrepo_perlresume'], # after repo created
notify => Starman::Service['perlresume'],
}

}