sborenst / ansible_aws_deployer

20 stars 20 forks source link

[workshop] Provision an admin user in htpasswd outside of workshop context #28

Open gnunn1 opened 7 years ago

gnunn1 commented 7 years ago

I'm using --skip-tags=workshop to create a vanilla installation without the bu-workshop stuff. One thing I noticed is that it doesn't provision an admin user in htpasswd, instead you have to ssh to the master and run sudo htpasswd /etc/origin/master/htpasswd admin to create the user.

It's not a big deal to do this manually, but it would be a nice user-friendly touch if it could provision the admin user based on a variable containing the password.

johannes-cabal commented 7 years ago

Isn't this a configuration option available with the core openshift-installer?

Also, if we wanted to do it through our playbooks, should just use the htpasswd module.

http://docs.ansible.com/ansible/htpasswd_module.html

thoraxe commented 7 years ago

The installer does have an option:

https://github.com/openshift/openshift-ansible/blob/master/inventory/byo/hosts.ose.example#L101-L106

Utilizing it might get a little tricky. I don't think we need to switch to doing this in the installer (depends on how this gets broken out modularly in general), but I don't object to using the Ansible module.