Merge lp:~mitchburton/landscape-charm/deployment_mode into lp:landscape-charm
Status: | Merged |
---|---|
Approved by: | Mitch Burton |
Approved revision: | 434 |
Merged at revision: | 434 |
Proposed branch: | lp:~mitchburton/landscape-charm/deployment_mode |
Merge into: | lp:landscape-charm |
Diff against target: |
323 lines (+183/-8) 6 files modified
README.md (+11/-3) bundle.yaml (+32/-0) config.yaml (+13/-0) src/charm.py (+21/-2) src/settings_files.py (+26/-0) tests/test_settings_files.py (+80/-3) |
To merge this branch: | bzr merge lp:~mitchburton/landscape-charm/deployment_mode |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kevin Nasto | Approve | ||
Review via email: mp+438647@code.launchpad.net |
Commit message
Add deployment_mode and additional_
Description of the change
This includes changes needed to be able to set up a juju deployment in SaaS/production mode. Here's the config I've been using - feel free to change it:
landscape-server:
openid_
openid_
admin_email: <Ubuntu One email>
admin_name: <Your name>
admin_password: thisisatest
additional_
[stores]
main = landscape_
account-1 = landscape_
resource-1 = landscape_
package = landscape_
session = landscape_
session-
knowledge = landscape_
steps to test:
1. deploy by running the following:
charmcraft pack
juju deploy ./landscape-
juju deploy postgresql --config postgresql.yaml --series bionic
juju deploy haproxy --config haproxy.yaml --series focal
juju deploy rabbitmq-server --series focal
juju relate landscape-server:db postgresql:db-admin
juju relate landscape-server haproxy
juju relate landscape-server rabbitmq-server
2. Wait until everything is in ready status
3. update the landscape-server application config (can be production or staging):
juju config landscape-server deployment_
4. Wait for config-changed to finish
5. hook up your user to your SSO id:
juju ssh postgresql/0
sudo -u postgres psql landscape_
UPDATE person SET identity='<Ubuntu One ID URL>';
6. If you want, give yourself admin privileges while you're there:
INSERT INTO person_access VALUES (1, 6, NULL);
7. Poke around by going to the HAProxy unit's IP, make sure things in general are working
LGTM+1