Hello,
I'm trying to install and setup an ikiwiki in a fully automated way (using ansible, for info), and I'd like to know if it's possible to have an automated setup step ( ikiwiki --setup /etc/ikiwiki/auto.setup
).
Apparently I can reassign all variables in the .setup file or even on the command line, but if I set $admin
to a certain value it keeps prompting me for a password. So :
can I set the admin password somewhere in the .setup file or on the command line ?
if I can't, can I avoid setting any (and re-define one maybe later) ?
I didn't fully understand it at first, but when you do
ikiwiki --setup /etc/ikiwiki/auto.setup
, the userfoo.setup
that is generated is enough to rebuild the wiki from scratch. So from a fresh reinstall the auto.setup step can be avoided if you already have the previousfoo.setup
backed up.So on my ansible usecase I just have to keep
foo.setup
as a template, copy it and build the wiki.I don't know if this creates a wiki administrator though. I guess it doesn't, since the foo.setup contains no info about it.
If I really wanted to create an admin and choose its password, I guess I would have to run the
ikiwiki --setup /etc/ikiwiki/auto.setup
, and in this case theexpect
module from ansible would allow me to send the password to fill the prompt automatically (not tested). Seems kinda hacky though.