Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15447)

Issue 7311060: Install as webops_deploy, run as charmworld

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by abentley-home
Modified:
11 years, 2 months ago
Reviewers:
rharding, mp+147228, curtis
Visibility:
Public.

Description

Install as webops_deploy, run as charmworld Update hooks to install files as webops_deploy, but to run charmworld as the charmworld user. Log files and branches are written to ~charmworld/var. nginx is updated to use the new location for static files. https://code.launchpad.net/~abentley/charms/precise/charmworld/special-users/+merge/147228 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -34 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M common View 1 chunk +4 lines, -1 line 0 comments Download
M files/nrpe-external-master/check_ingest.sh View 1 chunk +1 line, -1 line 1 comment Download
M hooks/config-changed View 2 chunks +3 lines, -3 lines 2 comments Download
M hooks/database-relation-changed View 2 chunks +5 lines, -4 lines 0 comments Download
M hooks/install View 2 chunks +19 lines, -4 lines 0 comments Download
M hooks/start View 1 chunk +2 lines, -2 lines 0 comments Download
M hooks/stop View 1 chunk +7 lines, -4 lines 0 comments Download
M hooks/upgrade-charm View 1 chunk +8 lines, -8 lines 0 comments Download
M nginx/http View 1 chunk +1 line, -1 line 0 comments Download
M production_overrides.ini View 1 chunk +1 line, -1 line 0 comments Download
M revision View 1 chunk +1 line, -1 line 0 comments Download
M scripts/gen_deploymgr.py View 3 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 4
abentley-home
Please take a look.
11 years, 2 months ago (2013-02-07 21:16:30 UTC) #1
rharding
lgtm just wanted to check on using the new common variables in more places to ...
11 years, 2 months ago (2013-02-07 21:40:55 UTC) #2
curtis
Thank you Aaron, lgtm. I don't have any comment about the mechanical changes in in ...
11 years, 2 months ago (2013-02-07 21:42:14 UTC) #3
abentley-home
11 years, 2 months ago (2013-02-07 21:45:46 UTC) #4
On 2013/02/07 21:40:55, rharding wrote:
>
https://codereview.appspot.com/7311060/diff/1/files/nrpe-external-master/chec...
> files/nrpe-external-master/check_ingest.sh:2: if [ -f
> /home/charmworld/var/ingest-errors ]; then
> Should this be set to use the charmworld_home var defined in common?

No, because this is a standalone script, not a hook.  It winds up getting
installed in /etc, IIRC.

> https://codereview.appspot.com/7311060/diff/1/hooks/config-changed#newcode82
> hooks/config-changed:82: */$interval * * * * charmworld HOME=/home/charmworld
> LOGDIR=$log_dir INI=$CONFIG_FILE ~webops_deploy/run-write-errors
> $log_dir/ingest-errors $project_dir/scripts/ingest
> again should this use the variable defined for charmworkd_home like the
log_dir
> variable?

Sure.

> https://codereview.appspot.com/7311060/diff/1/hooks/config-changed#newcode83
> hooks/config-changed:83: @daily charmworld HOME=/home/webops_deploy
> INI=$project_dir/production.ini $project_dir/bin/python
> $project_dir/charmworld/jobs/cstat.py
> and webops_home here.

Sure.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b