RETIRED, CLI supporting kolla-ansible deployment project
Go to file
Borne Mace 499aa1ec2b Removed no longer relevant cli destroy playbooks
We now use the upstream kolla playbook for destroy so
the custom playbooks used by the cli are no longer
relevant.  Also fixed a couple of minor pep8 and
bandit errors.

Change-Id: Ie4e7cf5980cd7ca1702a12a566937d5cea9848f4
Jira-Issue: None
2016-10-24 18:28:53 -07:00
ansible_plugins change plugin license back to gpl3 2016-08-03 09:36:55 -04:00
buildrpm Adjust preinstall entry to include a blank line. 2016-10-11 10:15:31 +01:00
doc Update api docs 2016-09-26 15:02:49 +02:00
kollacli Removed no longer relevant cli destroy playbooks 2016-10-24 18:28:53 -07:00
openstack-kolla-data move oracle-specific precheck to kollacli rpm 2016-09-19 18:21:22 +02:00
openstack-kollacli/locale renamed all kollaclient references to kollacli other than the git repo path 2015-08-06 15:13:54 -07:00
tests allow empty passwords to be set 2016-10-13 16:07:55 +02:00
tools add new cli/api command to init passwords 2016-09-22 19:25:47 +02:00
.gitignore improved key generation behavior. partially implemented ssh_check_connection. 2015-07-22 17:29:42 -07: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
LICENSE Adding the Apache LICENSE file, required to be included in the RPM 2015-08-27 13:39:31 -07:00
README.rst added AnsiblePlaybook class and moved playbook calls out of common and host 2015-10-13 14:26:50 -07:00
requirements.txt remove docker-py requirement from kollacli 2016-09-15 19:41:17 +02:00
setup.cfg add new cli/api command to init passwords 2016-09-22 19:25:47 +02: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 Added support for settings / clearing multiple properties in a single call. 2016-04-13 12:19:10 -07:00
tox.ini Added initial mypy / pep-484 type hinting support. 2016-07-21 11:47:20 -07:00

KollaCLI

The following steps can be used to build / run the kollacli

  • install ansible and docker
  • virtualenv .venv
  • . .venv/bin/activate
  • pip install -r requirements.txt
  • python setup.py install
  • mkdir /usr/share/kolla
  • cp -r openstack-kolla/ansible to /usr/share/kolla
  • mkdir /etc/kolla
  • mkdir /etc/kolla/kollacli
  • mkdir /etc/kolla/kollacli/ansible
  • cp -r openstack-kolla/etc/kolla/* to /etc/kolla
  • mkdir /usr/share/kolla/kollacli
  • mkdir /usr/share/kolla/kollacli/tools
  • mkdir /usr/share/kolla/kollacli/ansible
  • cp openstack-kollacli/tools /usr/share/kolla/kollacli/tools
  • cp openstack-kollacli/ansible /usr/share/kolla/kollacli/ansible
  • kollacli

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.