RETIRED, CLI supporting kolla-ansible deployment project
Go to file
Mark Giles 8bfacb084a Run certificate init playbook as admin user
Previously, the generated certificate files were owned by root which
prevented it from being easily removed later.  This change adds the
capability of setting the --become-user flag to ansible-playbook which
allows the certificate generation playbook to run as the admin user so
that the resulting certificate files are owned by the admin user.

Change-Id: I3c5cf1894b88474f6fd89a27c52bd2d1257e3ebe
2018-05-24 17:02:27 -07:00
doc Updating the cli to work against kolla-ansible 2018-04-17 09:45:35 -07:00
kolla-cli/locale Updating the cli to work against kolla-ansible 2018-04-17 09:45:35 -07:00
kolla_cli Run certificate init playbook as admin user 2018-05-24 17:02:27 -07:00
tools Updates to fix py27 / tox tests 2018-05-15 11:24:40 -04:00
.gitignore Fix mypy static type checker 2018-05-17 16:12:23 -04:00
.gitreview Add a .gitreview file 2018-04-18 18:13:40 +01:00
.stestr.conf Align tests with how functional tests are handled 2018-05-16 16:13:54 -04:00
.zuul.yaml Enable py35 functional tests 2018-05-18 13:14:49 -04:00
LICENSE Adding the Apache LICENSE file, required to be included in the RPM 2015-08-27 13:39:31 -07:00
README.rst Updates to fix py27 / tox tests 2018-05-15 11:24:40 -04:00
babel.cfg Initial commit 2015-07-15 13:34:36 -07:00
builddocs.sh Added initial sphinx documentation support for the python api 2016-03-21 10:59:42 -07:00
requirements.txt Updates to fix py27 / tox tests 2018-05-15 11:24:40 -04:00
setup.cfg Create 'certificate init' command. 2018-05-17 16:09:31 -07:00
setup.py fixed the property code to work with mainstream kolla changes. ordered property output. 2015-08-20 13:05:04 -07:00
test-requirements.txt Fix mypy static type checker 2018-05-17 16:12:23 -04:00
tox.ini Enable py35 functional tests 2018-05-18 13:14:49 -04:00

README.rst

Kolla-CLI

The following steps can be used to build / run the kolla-cli

* install ansible and docker
* virtualenv .venv
* . .venv/bin/activate
* pip install -r requirements.txt
* python setup.py install
* mkdir /usr/share/kolla-ansible
* cp -r kolla-ansible/ansible to /usr/share/kolla
* mkdir -p /etc/kolla/kolla-cli/ansible
* touch /etc/kolla/kolla-cli/ansible/inventory.json
* mkdir -p /usr/share/kolla-ansible/kolla-cli/tools
* mkdir /usr/share/kolla-ansible/kolla-cli/ansible
* touch /usr/share/kolla-ansible/kolla-cli/ansible.lock
* cp kolla-cli/tools /usr/share/kolla-ansible/kolla-cli/tools
* mkdir /usr/share/kolla-ansible/ansible/host_vars
* cp /etc/kolla/globals.yml /usr/share/kolla-ansible/ansible/group_vars/__GLOBAL__
  • kolla-cli
At that point you will be dropped into the kollacli shell where
you can run commands like help or ? to see what commands are

available and any of the sub commands can be executed directly.

Alternately you can not use the shell and just execute commands

directly via >kollacli host add, etc.

If you make changes to the i18n strings (denoted by methods like
_("message")) make sure to re-generate the i18n files with the
>python setup.py extract_messages command and check in the files

generated in openstack-kollacli.

===============
Troubleshooting

If you get an error about missing python.h install the python-dev package via apt-get or yum or whatever mechanism is appropriate for your platform.