Checking User Existence Rake

I’m not quite sure I understand, sorry.

We want to create some actions that a user could utilise when deploying discourse with the charm. One of these is to create a user account.

Since this behaviour is covered by a rake task, behaviour is isolated from the operator code, which can only execute the rake task, and input through stdin.

If a user already exists, the rake task will ask some additional prompts, asking if the password should be overwritten. This means that the stdin will no longer be sufficient.

We have patched the users:exists rake task that has now been submitted as a PR to address this: we can check if the user exists already, and then adjust the stdin as appropriate.