diff options
author | Rob Austein <sra@hactrn.net> | 2013-04-17 22:11:33 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-04-17 22:11:33 +0000 |
commit | 89506621cfbb5f539fd93ca0c0250a785bd5f143 (patch) | |
tree | 25a8aab21555693eee624e5aead4ab2e1f0f3717 /buildtools/debian-skeleton | |
parent | 67f18bb0f5802f97a117736208027918be5f7ce5 (diff) |
Add --pwgen option to rpki-confgen. Add framework for rpkid
post-install actions. Clean up a bunch of useless __doc__ strings in
preparation for converting most tools from getopt to argparse.
svn path=/trunk/; revision=5299
Diffstat (limited to 'buildtools/debian-skeleton')
-rw-r--r-- | buildtools/debian-skeleton/rpki-ca.postinst | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/buildtools/debian-skeleton/rpki-ca.postinst b/buildtools/debian-skeleton/rpki-ca.postinst index 339cadce..cd3bae7e 100644 --- a/buildtools/debian-skeleton/rpki-ca.postinst +++ b/buildtools/debian-skeleton/rpki-ca.postinst @@ -80,16 +80,13 @@ setup_rpki_conf() { # SQL password every time, but that's harmless so long as we're # careful not to overwrite an existing configuration. - mysql_passwd=`python -c 'import random, string; print "".join(random.choice(string.uppercase + string.lowercase + string.digits) for _ in xrange(16))'` - secret_key=`python -c 'import random, string; print "".join(random.choice(string.uppercase + string.lowercase + string.digits) for _ in xrange(50))'` - rpki-confgen --read-xml /etc/rpki/rpki-confgen.xml \ --autoconf \ --set myrpki::handle=`hostname -f | sed 's/[.]/_/g'` \ --set myrpki::rpkid_server_host=`hostname -f` \ --set myrpki::pubd_server_host=`hostname -f` \ - --set myrpki::shared_sql_password="$mysql_passwd" \ - --set web_portal::secret-key="$secret_key" \ + --pwgen myrpki::shared_sql_password \ + --pwgen web_portal::secret-key \ --write-conf /etc/rpki.conf.sample if test ! -f /etc/rpki.conf |