-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tutorial to reflect new create-user action (#263)
- Loading branch information
mthaddon
committed
Jun 17, 2024
1 parent
8c4fcd5
commit 3c2260e
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,10 +79,12 @@ juju trust nginx-ingress-integrator --scope=cluster | |
juju relate discourse-k8s nginx-ingress-integrator | ||
``` | ||
|
||
Discourse will be deployed with `discourse-k8s` as default hostname. In order to reach it, modify your `/etc/hosts` file so that it points to `127.0.0.1` | ||
To create an admin user, run: | ||
``` | ||
juju run discourse-k8s/0 create-user admin=true [email protected] | ||
``` | ||
The command will return the password of the created user. Discourse will be deployed with `discourse-k8s` as default hostname. In order to reach it, modify your `/etc/hosts` file so that it points to `127.0.0.1` | ||
|
||
`echo 127.0.0.1 discourse-k8s >> /etc/hosts` | ||
|
||
After that, visit `http://discourse-k8s` to reach Discourse. | ||
|
||
This charm allows you to add a admin user by executing the corresponding action. Instead of interacting with the Discourse UI just run `juju run discourse-k8s/0 add-admin-user [email protected] password=somelongpwd` and it will be registered and validated. | ||
After that, visit `http://discourse-k8s` to reach Discourse, using the credentials returned from the `create-user` action to login. |