I've just written an Ansible playbook that deploys DC/OS with their CloudFormation template as shown here:
https://docs.mesosphere.com/1.8/administration/installing/cloud/aws/
And it works fine!
Now I'm trying to connect on DC/OS with Ansible to deploy stuff on it, but of course I need to login first.
The way I know to create the first account is to visit with a browser the DC/OS page.
But I want to create this first account programmatically for Ansible, how can I do so?
Cheers
Open Source DC/OS currently uses dcos-oauth
The easiest way to automatically create a user is to create the relevant ZNode in ZooKeeper (/dcos/users/). Hopefully Ansible has a plugin to do this.
Relevant code here:
https://github.com/dcos/dcos-oauth/blob/master/dcos-oauth/login.go#L100
This being said, we're planning to open source parts of our Identity and Access Management service in the 1.10 release (available towards the end of 2016 or early 2017), at which point open DC/OS will get a REST API to do this automation.