add create_admin script to webui container for ansible use
ClosedPublic

Authored by adamwill on Oct 14 2015, 2:13 AM.

Details

Summary

This is submitted upstream, but for now we can pull it in when
building the webui container. It allows scripted creation of
an admin user and API key/secret.

Test Plan

Check you can use this in a freshly deployed openQA
instance to create an admin user and API key successfully.
I've tested it with ansible, it works(TM).

Diff Detail

Repository
rOPENQA fedora_openqa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamwill retitled this revision from to add create_admin script to webui container for ansible use.Oct 14 2015, 2:13 AM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: jskladan, garretraziel.
garretraziel accepted this revision.Oct 15 2015, 2:01 PM

It's in Perl. But besides this, I have no other complains :-).

This revision is now accepted and ready to land.Oct 15 2015, 2:01 PM

Is this still necessary since original PR was merged?

well, until the container images get updated, I guess. But I care less now I'm working on the packages, I'm just gonna add the script to the package. So, only if you want to do unattended deployment stuff with the containers, I guess.

I have just updated Docker images to openQA 4.2-1.2, but it seems that it was added only to unstable, because /var/lib/openqa/script/create_admin is missing. So feel free to merge this :-).

This revision was automatically updated to reflect the committed changes.