Skip to content

Commit

Permalink
Update tutorial to reflect new create-user action (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthaddon committed Jun 17, 2024
1 parent 8c4fcd5 commit 3c2260e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 3c2260e

Please sign in to comment.