feedhenry / mcp-standalone

Standalone version of the mobile-control-panel.
http://feedhenry.org
Apache License 2.0
13 stars 21 forks source link

Setup admin user with cluster edit permissions #223

Closed aidenkeating closed 6 years ago

aidenkeating commented 6 years ago

Currently we have to create this user manually. This change adds a role that will create a user named admin and give it cluster edit permissions.

A further change has been made to provide additional labels in the playbook file to differentiate between what should be done for normal local installations and local dev installations.

When running the playbook with --tags=local the admin user will not be created. It will with local-dev.

Resolves #184

maleck13 commented 6 years ago

What is the default tag?

aidenkeating commented 6 years ago

@maleck13 By default all tags will run, I don't think Ansible have added support for default tags other than all yet.

We can work around this using variables instead of tags if we want the user not to be created by default.

maleck13 commented 6 years ago

Ok do do we have to specify a tag when running now? Something that needs a Readme update or a change to the installer?

aidenkeating commented 6 years ago

@maleck13 By default the admin user will be created and given edit permissions. If a user specifies --tags=local then the admin user won't be created.

I'll include a note in the README.md about the differences.