From f03e06e09bc486a1a26d5642cce278d7dbb7bd92 Mon Sep 17 00:00:00 2001 From: SamYaple Date: Wed, 16 Mar 2016 21:45:25 +0000 Subject: Add generate_passwords.py to generate passwords As with all tools, this is a first pass at the generation. Perhaps we even want to move this into kolla/kolla/cmd and be generated with tox itself in the future. This tool, when run, will only populate empty fields that have no values meaning that it is safe to run repeatedly on the same file. Of note, there is no way to preserve comments in the file after it has been processed by the yaml parser in python. Comments and sections will remain in the passwords.yml template for additional documentation if the user wishes to populate the file themselves. Use SystemRandom and clean up the docs a bit to not use pronouns. Co-Authored-By: Steven Dake Closes-Bug: #1559266 Change-Id: I2932d592df8871f1b7811059206d0b4d0553a687 --- doc/quickstart.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/quickstart.rst b/doc/quickstart.rst index ef0ae708c..82b9792b6 100644 --- a/doc/quickstart.rst +++ b/doc/quickstart.rst @@ -390,6 +390,15 @@ the Ansible inventory file can be found in the Ansible `inventory introduction All variables for the environment can be specified in the files: "/etc/kolla/globals.yml" and "/etc/kolla/passwords.yml" +Generate passwords for /etc/kolla/passwords.yml using the provided +kolla-genpwd tool. The tool will populate all empty fields in the +"/etc/kolla/passwords.yml" file using randomly generated values to secure the +deployment. Optionally, the passwords may be populate in the file by hand. + +:: + + kolla-genpwd + Start by editing /etc/kolla/globals.yml. Check and edit, if needed, these parameters: kolla_base_distro, kolla_install_type. -- cgit v1.2.3