Closed
Bug 1347242
Opened 9 years ago
Closed 9 years ago
Ansible changes for mozreview staging
Categories
(MozReview Graveyard :: Infrastructure, enhancement)
MozReview Graveyard
Infrastructure
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: fubar, Assigned: glob)
References
Details
Attachments
(6 files)
|
59 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
gps
:
review-
|
Details |
|
59 bytes,
text/x-review-board-request
|
gps
:
review-
|
Details |
|
59 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
Filing for :glob for all of the ansible changes we'll need for the staging environment
hosts:
reviewboard1.stage.webapp.scl3.mozilla.com
reviewboard2.stage.webapp.scl3.mozilla.com
reviewboard-hg1.stage.dmz.scl3.mozilla.com
reviewboard-hg2.stage.dmz.scl3.mozilla.com
reviewboard1.stage.db.scl3.mozilla.com
reviewboard2.stage.db.scl3.mozilla.com
fubar - i don't have ssh access to these systems (auth fail).
i'll need ssh+sudo access to the first four systems (along with everyone else listed in bug 1347936).
Flags: needinfo?(klibby)
| Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(klibby)
hey fubar - i'm still unable to ssh to the stage infra.
Flags: needinfo?(klibby)
| Reporter | ||
Comment 3•9 years ago
|
||
My bad, I was in the middle of adding the new vpn_team_mozreview_staging to access/sudoers, got distracted by looking for all of the changes needed in puppet to support the addition of a staging env (notably hiera stuff), and forgot to commit/push. Fixed. (many typos died to bring us this information)
Flags: needinfo?(klibby)
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 10•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8853004 [details]
ansible: move reviewboard-hg2 into a hgreview-prod group (bug 1347242);
https://reviewboard.mozilla.org/r/125128/#review127812
::: ansible/mozreview-create-repo.yml:2
(Diff revision 1)
> ---
> -- hosts: reviewboard-hg2.dmz.scl3.mozilla.com
> +- hosts: hgreview-prod
This works as long as there is a single host in the group. Otherwise, it wil run the playbook on multiple hosts.
For hgmo, we have a `hgssh-prod-master` group for single-homed actions.
Attachment #8853004 -
Flags: review?(gps) → review+
Comment 11•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8853005 [details]
ansible: add rb-stage hosts to inventory, group like servers and comment (bug 1347242)
https://reviewboard.mozilla.org/r/125130/#review127814
Attachment #8853005 -
Flags: review?(gps) → review+
Comment 12•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8853006 [details]
ansible: duplicate deploy-mozreview-prod --> -stage (bug 1347242)
https://reviewboard.mozilla.org/r/125132/#review127816
Please `hg cp` this file so history is preserved.
Attachment #8853006 -
Flags: review?(gps) → review-
Comment 13•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8853007 [details]
ansible: update deploy-mozreview-stage to point to staging (bug 1347242);
https://reviewboard.mozilla.org/r/125134/#review127818
::: ansible/deploy-mozreview-stage.yml:50
(Diff revision 1)
> register: mozreview_config
>
> roles:
> - {
> role: hg-reviewboard,
> - domain: "reviewboard-hg.mozilla.org",
> + domain: "reviewboard-hg.allizom.org",
This should be a variable like everything else in this section.
::: ansible/deploy-mozreview-stage.yml:54
(Diff revision 1)
> role: hg-reviewboard,
> - domain: "reviewboard-hg.mozilla.org",
> + domain: "reviewboard-hg.allizom.org",
> bind_dn: "{{ (ldap_config.content | b64decode | from_json).username }}",
> bind_pw: "{{ (ldap_config.content | b64decode | from_json).password }}",
> ldap_uri: "{{ (ldap_config.content | b64decode | from_json).url }}",
> - reviewboard_url: "https://reviewboard.mozilla.org",
> + reviewboard_url: "https://reviewboard.allizom.org",
Ditto.
::: ansible/deploy-mozreview-stage.yml:75
(Diff revision 1)
> roles:
> - rbweb
>
> tasks:
> - name: sync code from admin node
> - command: /data/bin/update-www.sh reviewboard.mozilla.org
> + command: /data/bin/update-www.sh reviewboard.allizom.org
Variable.
::: ansible/deploy-mozreview-stage.yml:90
(Diff revision 1)
> post_tasks:
> - name: wait for HTTP server to become available
> wait_for: port=80
>
> - name: prime HTTP server
> - shell: "for n in `seq 20`; do curl -H 'Host: reviewboard.mozilla.org' http://localhost/r/ > /dev/null; done"
> + shell: "for n in `seq 20`; do curl -H 'Host: reviewboard.allizom.org' http://localhost/r/ > /dev/null; done"
Variable.
Attachment #8853007 -
Flags: review?(gps) → review-
Comment 14•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8853008 [details]
ansible: use bugzilla_url when available, set for stage deploy (bug 1347242)
https://reviewboard.mozilla.org/r/125136/#review127820
Attachment #8853008 -
Flags: review?(gps) → review+
Comment 15•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8853009 [details]
ansible: add mozreview-stage command to deploy (bug 1347242)
https://reviewboard.mozilla.org/r/125138/#review127822
There's a way to prevent the DRY violation and reuse the common decorators. But I don't think we care enough for this code.
Attachment #8853009 -
Flags: review?(gps) → review+
| Assignee | ||
Comment 16•9 years ago
|
||
MozReview will be replaced by Conduit/Phabricator.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•