Browse Source

Retire kolla-kubernetes project - step 3 remove project content

Depends-On: https://review.openstack.org/567779
Needed-By: https://review.openstack.org/568174
Change-Id: If5bdd602d5f5c8addba70235ac41c0a52cef2c11
changes/21/565221/3
Jeffrey Zhang 4 years ago
committed by Jeffrey Zhang
parent
commit
434b65c6ef
  1. 7
      .coveragerc
  2. 60
      .gitignore
  3. 3
      .mailmap
  4. 7
      .testr.conf
  5. 351
      .zuul.d/legacy.yaml
  6. 17
      CONTRIBUTING.rst
  7. 22
      Dockerfile
  8. 4
      HACKING.rst
  9. 176
      LICENSE
  10. 90
      README.rst
  11. 156
      ansible/action_plugins/merge_configs.py
  12. 96
      ansible/action_plugins/merge_yaml.py
  13. 6
      ansible/destroy.yml
  14. 559
      ansible/group_vars/all.yml
  15. 51
      ansible/library/merge_configs.py
  16. 51
      ansible/library/merge_yaml.py
  17. 37
      ansible/roles/ceph/defaults/main.yml
  18. 33
      ansible/roles/ceph/tasks/config.yml
  19. 2
      ansible/roles/ceph/tasks/main.yml
  20. 43
      ansible/roles/ceph/templates/ceph-mon.json.j2
  21. 21
      ansible/roles/ceph/templates/ceph-osd.json.j2
  22. 23
      ansible/roles/ceph/templates/ceph-rgw.json.j2
  23. 46
      ansible/roles/ceph/templates/ceph.conf.j2
  24. 160
      ansible/roles/cinder/defaults/main.yml
  25. 65
      ansible/roles/cinder/tasks/config.yml
  26. 2
      ansible/roles/cinder/tasks/main.yml
  27. 30
      ansible/roles/cinder/templates/cinder-api.json.j2
  28. 37
      ansible/roles/cinder/templates/cinder-backup.json.j2
  29. 30
      ansible/roles/cinder/templates/cinder-scheduler.json.j2
  30. 51
      ansible/roles/cinder/templates/cinder-volume.json.j2
  31. 153
      ansible/roles/cinder/templates/cinder.conf.j2
  32. 23
      ansible/roles/common/defaults/main.yml
  33. 5
      ansible/roles/destroy/tasks/label_iterator.yml
  34. 86
      ansible/roles/destroy/tasks/main.yml
  35. 62
      ansible/roles/glance/defaults/main.yml
  36. 49
      ansible/roles/glance/tasks/config.yml
  37. 2
      ansible/roles/glance/tasks/main.yml
  38. 71
      ansible/roles/glance/templates/glance-api.conf.j2
  39. 37
      ansible/roles/glance/templates/glance-api.json.j2
  40. 48
      ansible/roles/glance/templates/glance-registry.conf.j2
  41. 25
      ansible/roles/glance/templates/glance-registry.json.j2
  42. 72
      ansible/roles/heat/defaults/main.yml
  43. 55
      ansible/roles/heat/tasks/config.yml
  44. 2
      ansible/roles/heat/tasks/main.yml
  45. 4
      ansible/roles/heat/templates/_deprecated.yaml
  46. 25
      ansible/roles/heat/templates/heat-api-cfn.json.j2
  47. 25
      ansible/roles/heat/templates/heat-api.json.j2
  48. 31
      ansible/roles/heat/templates/heat-engine.json.j2
  49. 83
      ansible/roles/heat/templates/heat.conf.j2
  50. 53
      ansible/roles/horizon/defaults/main.yml
  51. 88
      ansible/roles/horizon/tasks/config.yml
  52. 2
      ansible/roles/horizon/tasks/main.yml
  53. 76
      ansible/roles/horizon/templates/horizon.conf.j2
  54. 54
      ansible/roles/horizon/templates/horizon.json.j2
  55. 815
      ansible/roles/horizon/templates/local_settings.j2
  56. 66
      ansible/roles/ironic/defaults/main.yml
  57. 90
      ansible/roles/ironic/tasks/config.yml
  58. 2
      ansible/roles/ironic/tasks/main.yml
  59. 25
      ansible/roles/ironic/templates/ironic-api.json.j2
  60. 11
      ansible/roles/ironic/templates/ironic-conductor-tftp.json.j2
  61. 35
      ansible/roles/ironic/templates/ironic-conductor.json.j2
  62. 9
      ansible/roles/ironic/templates/ironic-dnsmasq.conf.j2
  63. 11
      ansible/roles/ironic/templates/ironic-dnsmasq.json.j2
  64. 18
      ansible/roles/ironic/templates/ironic-inspector-tftp.json.j2
  65. 41
      ansible/roles/ironic/templates/ironic-inspector.conf.j2
  66. 25
      ansible/roles/ironic/templates/ironic-inspector.json.j2
  67. 63
      ansible/roles/ironic/templates/ironic.conf.j2
  68. 7
      ansible/roles/ironic/templates/pxelinux.default.j2
  69. 13
      ansible/roles/iscsi/defaults/main.yml
  70. 34
      ansible/roles/iscsi/tasks/config.yml
  71. 2
      ansible/roles/iscsi/tasks/main.yml
  72. 4
      ansible/roles/iscsi/templates/iscsid.json.j2
  73. 4
      ansible/roles/iscsi/templates/tgtd.json.j2
  74. 38
      ansible/roles/keystone/defaults/main.yml
  75. 111
      ansible/roles/keystone/tasks/config.yml
  76. 2
      ansible/roles/keystone/tasks/main.yml
  77. 83
      ansible/roles/keystone/templates/keystone-paste.ini.j2
  78. 55
      ansible/roles/keystone/templates/keystone.conf.j2
  79. 49
      ansible/roles/keystone/templates/keystone.json.j2
  80. 42
      ansible/roles/keystone/templates/wsgi-keystone.conf.j2
  81. 15
      ansible/roles/mariadb/defaults/main.yml
  82. 27
      ansible/roles/mariadb/tasks/config.yml
  83. 2
      ansible/roles/mariadb/tasks/main.yml
  84. 41
      ansible/roles/mariadb/templates/galera.cnf.j2
  85. 24
      ansible/roles/mariadb/templates/mariadb.json.j2
  86. 25
      ansible/roles/memcached/defaults/main.yml
  87. 16
      ansible/roles/memcached/tasks/config.yml
  88. 2
      ansible/roles/memcached/tasks/main.yml
  89. 4
      ansible/roles/memcached/templates/memcached.json.j2
  90. 262
      ansible/roles/neutron/defaults/main.yml
  91. 52
      ansible/roles/neutron/tasks/config-neutron-fake.yml
  92. 255
      ansible/roles/neutron/tasks/config.yml
  93. 2
      ansible/roles/neutron/tasks/main.yml
  94. 3
      ansible/roles/neutron/templates/bgp_dragent.ini.j2
  95. 6
      ansible/roles/neutron/templates/dhcp_agent.ini.j2
  96. 8
      ansible/roles/neutron/templates/dnsmasq.conf.j2
  97. 1
      ansible/roles/neutron/templates/fwaas_driver.ini.j2
  98. 16
      ansible/roles/neutron/templates/l3_agent.ini.j2
  99. 6
      ansible/roles/neutron/templates/lbaas_agent.ini.j2
  100. 6
      ansible/roles/neutron/templates/metadata_agent.ini.j2

7
.coveragerc

@ -1,7 +0,0 @@
[run]
branch = True
source = kolla_kubernetes
omit = kolla_kubernetes/tests/*
[report]
ignore_errors = True

60
.gitignore

@ -1,60 +0,0 @@
*.py[cod]
# C extensions
*.so
# helm / chart
values.yaml
**/charts
helm/**/*.lock
# Packages
*.egg*
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
# Installer logs
pip-log.txt
# Unit test / coverage reports
cover/
.coverage*
!.coveragerc
.tox
nosetests.xml
.testrepository
.venv
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Complexity
output/*.html
output/*/index.html
# Sphinx
doc/build
# pbr generates these
AUTHORS
ChangeLog
# Editors
*~
.*.swp
.*sw?

3
.mailmap

@ -1,3 +0,0 @@
# Format is:
# <preferred e-mail> <other e-mail 1>
# <preferred e-mail> <other e-mail 2>

7
.testr.conf

@ -1,7 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-240} \
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

351
.zuul.d/legacy.yaml

@ -1,351 +0,0 @@
- project:
check:
jobs:
- kolla-kubernetes-deploy-centos-binary-2-ceph-multi:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-2-ceph:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-2-external-ovs:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-2-iscsi:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-ubuntu-binary-2-iscsi:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-ubuntu-binary-2-ceph:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-3-ceph-multi:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-source-4-ironic:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-source-4-microchart-ansible:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
experimental:
jobs:
- kolla-kubernetes-deploy-centos-binary-2-helm-operator:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-2-ceph-reboot:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-4-ceph-multi:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-source-4-helm-compute-kit:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-source-4-helm-entrypoint:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-ubuntu-source-4-ironic:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-upgrade-centos-binary-2-ceph:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-upgrade-centos-binary-3-ceph:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-binary-t-ceph-multi:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-centos-source-t-iscsi:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- kolla-kubernetes-deploy-ubuntu-source-t-iscsi:
irrelevant-files:
- ^.*\.rst$
- ^deploy-guide/source/.*
- ^doc/.*
- job:
name: kolla-kubernetes-base
description: |
This job runs provides the base required projects for
legacy kolla-kubernetes jobs.
parent: legacy-base
required-projects:
- openstack/requirements
- job:
name: kolla-kubernetes-deploy-centos-binary-2-ceph
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-2-ceph-multi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml
nodeset: legacy-centos-7-2-node
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-2-ceph-reboot
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml
nodeset: legacy-centos-7-2-node
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-2-external-ovs
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-2-helm-operator
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-2-iscsi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-3-ceph-multi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml
nodeset: legacy-centos-7-2-node
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-4-ceph-multi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml
nodeset: legacy-centos-7-2-node
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-binary-t-ceph-multi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml
nodeset: legacy-centos-7-2-node
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-source-4-helm-compute-kit
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-source-4-helm-entrypoint
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-source-4-ironic
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-source-4-microchart-ansible
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-centos-source-t-iscsi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-deploy-ubuntu-binary-2-ceph
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml
nodeset: legacy-ubuntu-xenial
timeout: 3600
- job:
name: kolla-kubernetes-deploy-ubuntu-binary-2-iscsi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml
nodeset: legacy-ubuntu-xenial
timeout: 3600
- job:
name: kolla-kubernetes-deploy-ubuntu-source-4-ironic
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml
nodeset: legacy-ubuntu-xenial
timeout: 3600
- job:
name: kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml
nodeset: legacy-ubuntu-xenial
timeout: 3600
- job:
name: kolla-kubernetes-deploy-ubuntu-source-t-iscsi
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml
nodeset: legacy-ubuntu-xenial
timeout: 3600
- job:
name: kolla-kubernetes-upgrade-centos-binary-2-ceph
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml
nodeset: legacy-centos-7
timeout: 3600
- job:
name: kolla-kubernetes-upgrade-centos-binary-3-ceph
parent: kolla-kubernetes-base
run: tests/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml
post-run: tests/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml
nodeset: legacy-centos-7
timeout: 3600

17
CONTRIBUTING.rst

@ -1,17 +0,0 @@
If you would like to contribute to the development of OpenStack, you must
follow the steps in this page:
http://docs.openstack.org/infra/manual/developers.html
If you already have a good understanding of how the system works and your
OpenStack accounts are set up, you can skip to the development workflow
section of this documentation to learn how changes to OpenStack should be
submitted for review via the Gerrit tool:
http://docs.openstack.org/infra/manual/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
https://bugs.launchpad.net/kolla-kubernetes

22
Dockerfile

@ -1,22 +0,0 @@
FROM ubuntu:16.04
RUN apt-get update && apt-get -y install python-dev curl libffi-dev gcc libssl-dev sshpass wget crudini git vim
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python get-pip.py \
&& rm get-pip.py
RUN pip install ansible==2.2.* oslo_config
ENV HELM_LATEST_VERSION="v2.7.2"
ENV KUBE_LATEST_VERSION="v1.8.4"
RUN wget http://storage.googleapis.com/kubernetes-helm/helm-${HELM_LATEST_VERSION}-linux-amd64.tar.gz \
&& tar -xvf helm-${HELM_LATEST_VERSION}-linux-amd64.tar.gz \
&& mv linux-amd64/helm /usr/local/bin \
&& rm -f /helm-${HELM_LATEST_VERSION}-linux-amd64.tar.gz
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
ADD . /kolla-kubernetes
RUN pip install -U /kolla-kubernetes/
RUN cp -a /kolla-kubernetes/etc/* /etc

4
HACKING.rst

@ -1,4 +0,0 @@
kolla-kubernetes Style Commandments
===============================================
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/

176
LICENSE

@ -1,176 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

90
README.rst

@ -1,83 +1,13 @@
========================
Team and repository tags
========================
This project is no longer maintained.
.. image:: http://governance.openstack.org/badges/kolla-kubernetes.svg
:target: http://governance.openstack.org/reference/tags/index.html
The contents of this repository are still available in the Git
source code management system. To see the contents of this
repository before it reached its end of life, please check out the
previous commit with "git checkout 22ed0c232d7666afb6e288001b8814deea664992".
.. Change things from this point on
For an alternative, consider checking the project at
http://github.com/openstack/openstack-helm.
==============
Kolla Overview
==============
The Kolla project is a member of the OpenStack `Big Tent
Governance <https://governance.openstack.org/tc/reference/projects/index.html>`__.
Kolla's mission statement is:
::
To provide production-ready containers and deployment tools for operating
OpenStack clouds.
================
kolla-kubernetes
================
The kolla-kubernetes deliverable deploys OpenStack on top of Kubernetes.
This work is experimental at this time. A 1.0.0 version or later signals
this work is ready for evaluation.
The kolla-kubernetes Repository
===============================
The kolla-kubernetes repository is one of three deliverables of the
OpenStack Kolla project. The three deliverables that make up the Kolla
project are:
================ =========================================================
Deliverable Repository
================ =========================================================
kolla https://git.openstack.org/openstack/kolla
kolla-ansible https://git.openstack.org/openstack/kolla-ansible
kolla-kubernetes https://git.openstack.org/openstack/kolla-kubernetes
================ =========================================================
The kolla deliverable maintains container images and container build tools.
The kolla-ansible deliverable maintains an Ansible deployment for Kolla
containers on bare metal.
The kolla-kubernetes deliverable maintains a cloud-native implementation
of deployment of OpenStack on Kubernetes.
Getting Involved
================
Need a feature? Find a bug? Let us know! Contributions are much
appreciated and should follow the standard `Gerrit
workflow <http://docs.openstack.org/infra/manual/developers.html>`__.
- We communicate using the #openstack-kolla irc channel.
- File bugs, blueprints, track releases, etc on
`Launchpad <https://launchpad.net/kolla-kubernetes>`__.
- Attend weekly
`meetings <https://wiki.openstack.org/wiki/Meetings/Kolla>`__.
- Contribute `code <https://git.openstack.org/openstack/kolla-kubernetes>`__.
General Information
===================
* Free software: Apache license
* Documentation: http://docs.openstack.org/developer/kolla-kubernetes
* Source: http://git.openstack.org/cgit/openstack/kolla-kubernetes
* Bugs: http://bugs.launchpad.net/kolla-kubernetes
Notices
=======
Docker and the Docker logo are trademarks or registered trademarks of
Docker, Inc. in the United States and/or other countries. Docker, Inc.
and other parties may also have trademark rights in other terms used herein.
For any further questions, please email
openstack-dev@lists.openstack.org with the tagline [kolla] or join
#openstack-kolla on Freenode.

156
ansible/action_plugins/merge_configs.py

@ -1,156 +0,0 @@
#!/usr/bin/env python
# Copyright 2015 Sam Yaple
# Copyright 2017 99Cloud Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import collections
import inspect
import os
from ansible.plugins import action
from six import StringIO
from oslo_config import iniparser
class OverrideConfigParser(iniparser.BaseParser):
def __init__(self):
self._cur_sections = collections.OrderedDict()
self._sections = collections.OrderedDict()
self._cur_section = None
def assignment(self, key, value):
cur_value = self._cur_section.get(key)
if len(value) == 1 and value[0] == '':
value = []
if not cur_value:
self._cur_section[key] = [value]
else:
self._cur_section[key].append(value)
def parse(self, lineiter):
self._cur_sections = collections.OrderedDict()
super(OverrideConfigParser, self).parse(lineiter)
# merge _cur_sections into _sections
for section, values in self._cur_sections.items():
if section not in self._sections:
self._sections[section] = collections.OrderedDict()
for key, value in values.items():
self._sections[section][key] = value
def new_section(self, section):
cur_section = self._cur_sections.get(section)
if not cur_section:
cur_section = collections.OrderedDict()
self._cur_sections[section] = cur_section
self._cur_section = cur_section
return cur_section
def write(self, fp):
def write_key_value(key, values):
for v in values:
if not v:
fp.write('{} =\n'.format(key))
for index, value in enumerate(v):
if index == 0:
fp.write('{} = {}\n'.format(key, value))
else:
fp.write('{} {}\n'.format(len(key) * ' ', value))
def write_section(section):
for key, values in section.items():
write_key_value(key, values)
for section in self._sections:
fp.write('[{}]\n'.format(section))
write_section(self._sections[section])
fp.write('\n')
class ActionModule(action.ActionBase):
TRANSFERS_FILES = True
def read_config(self, source, config):
# Only use config if present
if os.access(source, os.R_OK):
with open(source, 'r') as f:
template_data = f.read()
result = self._templar.template(template_data)
fakefile = StringIO(result)
config.parse(fakefile)
fakefile.close()
def run(self, tmp=None, task_vars=None):
if task_vars is None:
task_vars = dict()
result = super(ActionModule, self).run(tmp, task_vars)
# NOTE(jeffrey4l): Ansible 2.1 add a remote_user param to the
# _make_tmp_path function. inspect the number of the args here. In
# this way, ansible 2.0 and ansible 2.1 are both supported
make_tmp_path_args = inspect.getargspec(self._make_tmp_path)[0]
if not tmp and len(make_tmp_path_args) == 1:
tmp = self._make_tmp_path()
if not tmp and len(make_tmp_path_args) == 2:
remote_user = (task_vars.get('ansible_user')
or self._play_context.remote_user)
tmp = self._make_tmp_path(remote_user)
sources = self._task.args.get('sources', None)
extra_vars = self._task.args.get('vars', list())
if not isinstance(sources, list):
sources = [sources]
temp_vars = task_vars.copy()
temp_vars.update(extra_vars)
config = OverrideConfigParser()
old_vars = self._templar._available_variables
self._templar.set_available_variables(temp_vars)
for source in sources:
self.read_config(source, config)
self._templar.set_available_variables(old_vars)
# Dump configparser to string via an emulated file
fakefile = StringIO()
config.write(fakefile)
remote_path = self._connection._shell.join_path(tmp, 'src')
xfered = self._transfer_data(remote_path, fakefile.getvalue())
fakefile.close()
new_module_args = self._task.args.copy()
new_module_args.pop('vars', None)
new_module_args.pop('sources', None)
new_module_args.update(
dict(
src=xfered
)
)
result.update(self._execute_module(module_name='copy',
module_args=new_module_args,
task_vars=task_vars,
tmp=tmp))
return result

96
ansible/action_plugins/merge_yaml.py

@ -1,96 +0,0 @@
#!/usr/bin/env python
# Copyright 2015 Sam Yaple
# Copyright 2016 intel
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import inspect
import os
from yaml import dump
from yaml import safe_load
try:
from yaml import CDumper as Dumper # noqa: F401
from yaml import CLoader as Loader # noqa: F401
except ImportError:
from yaml import Dumper # noqa: F401
from yaml import Loader # noqa: F401
from ansible.plugins import action
class ActionModule(action.ActionBase):
TRANSFERS_FILES = True
def read_config(self, source):
result = None
# Only use config if present
if os.access(source, os.R_OK):
with open(source, 'r') as f:
template_data = f.read()
template_data = self._templar.template(template_data)
result = safe_load(template_data)
return result or {}
def run(self, tmp=None, task_vars=None):
if task_vars is None:
task_vars = dict()
result = super(ActionModule, self).run(tmp, task_vars)
# NOTE(jeffrey4l): Ansible 2.1 add a remote_user param to the
# _make_tmp_path function. inspect the number of the args here. In
# this way, ansible 2.0 and ansible 2.1 are both supported
make_tmp_path_args = inspect.getargspec(self._make_tmp_path)[0]
if not tmp and len(make_tmp_path_args) == 1:
tmp = self._make_tmp_path()
if not tmp and len(make_tmp_path_args) == 2:
remote_user = (task_vars.get('ansible_user')
or self._play_context.remote_user)
tmp = self._make_tmp_path(remote_user)
# save template args.
extra_vars = self._task.args.get('vars', list())
old_vars = self._templar._available_variables
temp_vars = task_vars.copy()
temp_vars.update(extra_vars)
self._templar.set_available_variables(temp_vars)
output = {}
sources = self._task.args.get('sources', None)
if not isinstance(sources, list):
sources = [sources]
for source in sources:
output.update(self.read_config(source))
# restore original vars
self._templar.set_available_variables(old_vars)
remote_path = self._connection._shell.join_path(tmp, 'src')
xfered = self._transfer_data(remote_path,
dump(output,
default_flow_style=False))
new_module_args = self._task.args.copy()
new_module_args.update(
dict(
src=xfered
)
)
del new_module_args['sources']
result.update(self._execute_module(module_name='copy',
module_args=new_module_args,
task_vars=task_vars,
tmp=tmp))
return result

6
ansible/destroy.yml

@ -1,6 +0,0 @@
---
- name: Destroy the existing Kolla-Kubernetes deployment
hosts: localhost
connection: local
roles:
- destroy

559
ansible/group_vars/all.yml

@ -1,559 +0,0 @@
---
# The options in this file can be overridden in 'globals.yml'
# The "temp" files that are created before merge need to stay persistent due
# to the fact that ansible will register a "change" if it has to create them
# again. Persistent files allow for idempotency
container_config_directory: "/var/lib/kolla/config_files"
# The directory to merge custom config files the kolla's config files
node_custom_config: "/etc/kolla/config"
# The project to generate configuration files for
project: ""
# The directory to store the config files on the destination node
node_config_directory: "/etc/kolla/{{ project }}"
###################
# Kolla options
###################
std_logger: true
# Which orchestration engine to use. Valid options are [ ANSIBLE, KUBERNETES ]
orchestration_engine: "KUBERNETES"
# Valid options are [ COPY_ONCE, COPY_ALWAYS ]
config_strategy: "COPY_ALWAYS"
# Valid options are [ centos, oraclelinux, ubuntu ]
kolla_base_distro: "centos"
# Valid options are [ binary, source ]
kolla_install_type: "binary"
kolla_internal_vip_address: "{{ kolla_internal_address }}"
kolla_internal_fqdn: "{{ kolla_internal_vip_address }}"
kolla_external_vip_address: "{{ kolla_internal_vip_address }}"
kolla_external_fqdn: "{{ kolla_internal_fqdn if kolla_external_vip_address == kolla_internal_vip_address else kolla_external_vip_address }}"
kolla_enable_sanity_checks: "no"
kolla_enable_sanity_keystone: "{{ kolla_enable_sanity_checks }}"
kolla_enable_sanity_glance: "{{ kolla_enable_sanity_checks }}"
kolla_enable_sanity_cinder: "{{ kolla_enable_sanity_checks }}"
kolla_enable_sanity_swift: "{{ kolla_enable_sanity_checks }}"
####################
# kolla-kubernetes
####################
# By default, Kolla API services bind to the network address assigned
# to the api_interface. Allow the bind address to be an override. In
# some cases (Kubernetes), the api_interface address is not known
# until container runtime, and thus it is necessary to bind to all
# interfaces "0.0.0.0". When used outside of Kubernetes, binding to
# all interfaces may present a security issue, and thus is not
# recommended.
api_interface_address: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] if orchestration_engine == 'ANSIBLE' else '0.0.0.0' }}"
################
# Chrony options
################
# A list contains ntp servers
external_ntp_servers:
- 0.pool.ntp.org
- 1.pool.ntp.org
- 2.pool.ntp.org
- 3.pool.ntp.org
####################
# Database options
####################
database_address: "{{ kolla_internal_fqdn }}"
database_user: "root"
database_port: "3306"
keystone_database_address: "mariadb"
glance_database_address: "mariadb"
nova_database_address: "mariadb"
nova_api_database_address: "mariadb"
neutron_database_address: "mariadb"
cinder_database_address: "mariadb"
ironic_database_address: "mariadb"
placement_database_address: "mariadb"
####################
# Docker options
####################
docker_registry_email:
docker_registry:
docker_namespace: "kolla"
docker_registry_username:
# Valid options are [ never, on-failure, always, unless-stopped ]
docker_restart_policy: "unless-stopped"
# '0' means unlimited retries
docker_restart_policy_retry: "10"
# Common options used throughout Docker
docker_common_options:
auth_email: "{{ docker_registry_email }}"
auth_password: "{{ docker_registry_password }}"
auth_registry: "{{ docker_registry }}"
auth_username: "{{ docker_registry_username }}"
environment:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
restart_policy: "{{ docker_restart_policy }}"
restart_retries: "{{ docker_restart_policy_retry }}"
####################
# keepalived options
####################
# Arbitrary unique number from 0..255
keepalived_virtual_router_id: "51"
####################
# Networking options
####################
network_interface: "eth0"
neutron_external_interface: "eth1"
kolla_external_vip_interface: "{{ network_interface }}"
api_interface: "{{ network_interface }}"
storage_interface: "{{ network_interface }}"
cluster_interface: "{{ network_interface }}"
tunnel_interface: "{{ network_interface }}"
bifrost_network_interface: "{{ network_interface }}"
dns_interface: "{{ network_interface }}"
tunnel_interface_address: "{{ hostvars[inventory_hostname]['ansible_' + tunnel_interface]['ipv4']['address'] if orchestration_engine == 'ANSIBLE' else '0.0.0.0' }}"
# Valid options are [ openvswitch, linuxbridge, sfc ]
neutron_plugin_agent: "openvswitch"
# The default ports used by each service.
aodh_api_port: "8042"
barbican_api_port: "9311"
ceilometer_api_port: "8777"
congress_api_port: "1789"
cloudkitty_api_port: "8889"
designate_api_port: "9001"
designate_bind_port: "53"
designate_mdns_port: "5354"
designate_rndc_port: "953"
freezer_api_port: "9090"
iscsi_port: "3260"
gnocchi_api_port: "8041"
mariadb_port: "{{ database_port }}"
mariadb_wsrep_port: "4567"
mariadb_ist_port: "4568"
mariadb_sst_port: "4444"
panko_api_port: "8977"
rabbitmq_port: "5672"
rabbitmq_management_port: "15672"
rabbitmq_cluster_port: "25672"
rabbitmq_epmd_port: "4369"
rabbitmq_servers: "rabbitmq"
mongodb_port: "27017"
mongodb_web_port: "28017"
haproxy_stats_port: "1984"
keystone_public_port: "5000"
keystone_admin_port: "35357"
keystone_ssh_port: "8023"
glance_api_port: "9292"
glance_registry_port: "9191"
octavia_api_port: "9876"
octavia_health_manager_port: "5555"
placement_api_port: "8780"
nova_api_port: "8774"
nova_metadata_port: "8775"
nova_novncproxy_port: "6080"
nova_spicehtml5proxy_port: "6082"
nova_serialproxy_port: "6083"
neutron_server_port: "9696"
cinder_api_port: "8776"
memcached_servers: "memcached"
memcached_port: "11211"
swift_proxy_server_port: "8080"
swift_object_server_port: "6000"
swift_account_server_port: "6001"
swift_container_server_port: "6002"
swift_rsync_port: "10873"
sahara_api_port: "8386"
heat_api_port: "8004"
heat_api_cfn_port: "8000"
horizon_port: "80"
murano_api_port: "8082"
ironic_api_port: "6385"
ironic_inspector_port: "5050"
magnum_api_port: "9511"
solum_application_deployment_port: "9777"
solum_image_builder_port: "9778"
rgw_port: "6780"
mistral_api_port: "8989"
kibana_server_port: "5601"
elasticsearch_port: "9200"
manila_api_port: "8786"
watcher_api_port: "9322"
influxdb_admin_port: "8083"
influxdb_http_port: "8086"
senlin_api_port: "8778"
trove_api_port: "8779"
etcd_client_port: "2379"
etcd_peer_port: "2380"
karbor_api_port: "8799"
kuryr_port: "23750"
searchlight_api_port: "9393"
grafana_server_port: "3000"
tacker_server_port: "9890"
fluentd_syslog_port: "5140"
public_protocol: "{{ 'https' if kolla_enable_tls_external | bool else 'http' }}"
internal_protocol: "http"
admin_protocol: "http"
####################
# OpenStack options
####################
openstack_release: "auto"
openstack_logging_debug: "False"
openstack_region_name: "RegionOne"
# In the context of multi-regions, list here the name of all your regions.
multiple_regions_names:
- "{{ openstack_region_name }}"
openstack_service_workers: "{{ [ansible_processor_vcpus, 5]|min if orchestration_engine == 'ANSIBLE' else '1'}}"
# Optionally allow Kolla to set sysctl values
set_sysctl: "yes"
# Valid options are [ novnc, spice ]
nova_console: "novnc"
# OpenStack authentication string. You should only need to override these if you
# are changing the admin tenant/project or user.
openstack_auth:
auth_url: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}"
username: "admin"
password: "{{ keystone_admin_password }}"
project_name: "admin"
domain_name: "default"
# These roles are required for Kolla to be operation, however a savvy deployer
# could disable some of these required roles and run their own services.
enable_glance: "yes"
enable_haproxy: "yes"
enable_keystone: "yes"
enable_mariadb: "yes"
enable_memcached: "yes"
enable_neutron: "yes"
enable_nova: "yes"
enable_rabbitmq: "yes"
# Additional optional OpenStack features and services are specified here
enable_aodh: "no"
enable_barbican: "no"
enable_cadf_notifications: "no"
enable_ceilometer: "no"
enable_central_logging: "no"
enable_ceph: "no"
enable_ceph_rgw: "no"
enable_chrony: "no"
enable_cinder: "no"
enable_cinder_backend_hnas_iscsi: "no"
enable_cinder_backend_hnas_nfs: "no"
enable_cinder_backend_iscsi: "no"
enable_cinder_backend_lvm: "no"
enable_cinder_backend_nfs: "no"
enable_cloudkitty: "no"
enable_congress: "no"
enable_designate: "no"
enable_etcd: "no"
enable_freezer: "no"
enable_gnocchi: "no"
enable_grafana: "no"
enable_heat: "yes"
enable_horizon: "yes"
enable_horizon_cloudkitty: "{{ enable_cloudkitty | bool }}"
enable_horizon_freezer: "{{ enable_freezer | bool }}"
enable_horizon_ironic: "{{ enable_ironic | bool }}"
enable_horizon_karbor: "{{ enable_karbor | bool }}"
enable_horizon_magnum: "{{ enable_magnum | bool }}"
enable_horizon_manila: "{{ enable_manila | bool }}"
enable_horizon_mistral: "{{ enable_mistral | bool }}"
enable_horizon_murano: "{{ enable_murano | bool }}"
enable_horizon_neutron_lbaas: "{{ enable_neutron_lbaas | bool }}"
enable_horizon_sahara: "{{ enable_sahara | bool }}"
enable_horizon_searchlight: "{{ enable_searchlight | bool }}"
enable_horizon_senlin: "{{ enable_senlin | bool }}"
enable_horizon_solum: "{{ enable_solum | bool }}"
enable_horizon_tacker: "{{ enable_tacker | bool }}"
enable_horizon_trove: "{{ enable_trove | bool }}"
enable_horizon_watcher: "{{ enable_watcher | bool }}"
enable_influxdb: "no"
enable_ironic: "no"
enable_iscsid: "{{ enable_cinder_backend_iscsi | bool or enable_cinder_backend_lvm | bool or enable_ironic | bool }}"
enable_karbor: "no"
enable_kuryr: "no"
enable_magnum: "no"
enable_manila: "no"
enable_manila_backend_generic: "no"
enable_manila_backend_hnas: "no"
enable_mistral: "no"
enable_mongodb: "no"
enable_multipathd: "no"
enable_murano: "no"
enable_neutron_vpnaas: "no"
enable_neutron_dvr: "no"
enable_neutron_lbaas: "no"
enable_neutron_fwaas: "no"
enable_neutron_qos: "no"
enable_neutron_agent_ha: "no"
enable_neutron_bgp_dragent: "no"
enable_nova_serialconsole_proxy: "no"
enable_octavia: "no"
enable_panko: "no"
enable_rally: "no"
enable_sahara: "no"
enable_searchlight: "no"
enable_senlin: "no"
enable_solum: "no"
enable_swift: "no"
enable_tacker: "no"
enable_telegraf: "no"
enable_tempest: "no"
enable_trove: "no"
enable_vmtp: "no"
enable_watcher: "no"
enable_placement: "yes"
ironic_keystone_user: "ironic"
neutron_keystone_user: "neutron"
nova_keystone_user: "nova"
designate_keystone_user: "designate"
# Nova fake driver and the number of fake driver per compute node
enable_nova_fake: "no"
num_nova_fake_per_node: 5
# Monitoring options are specified here
enable_collectd: "no"
# Clean images options are specified here
enable_destroy_images: "no"
####################
# Logging options
####################
elasticsearch_address: "{{ kolla_internal_vip_address }}"
elasticsearch_protocol: "{{ internal_protocol }}"
enable_elasticsearch: "{{ 'yes' if enable_central_logging | bool or enable_freezer | bool else 'no' }}"
enable_kibana: "{{ 'yes' if enable_central_logging | bool else 'no' }}"
####################
# RabbitMQ options
####################
rabbitmq_user: "openstack"
rabbitmq_version: "rabbitmq_server-3.6/plugins/rabbitmq_clusterer-3.6.x.ez/rabbitmq_clusterer-3.6.x-667f92b0/ebin"
####################
# HAProxy options
####################
haproxy_user: "openstack"
haproxy_enable_external_vip: "{{ 'no' if kolla_external_vip_address == kolla_internal_vip_address else 'yes' }}"
kolla_enable_tls_external: "no"
kolla_external_fqdn_cert: "{{ node_config_directory }}/certificates/haproxy.pem"
kolla_external_fqdn_cacert: "{{ node_config_directory }}/certificates/haproxy-ca.crt"
####################
# Kibana options
####################
kibana_user: "kibana"
####################
# Keystone options
####################
keystone_admin_url: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v3"
keystone_internal_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }}/v3"
keystone_public_url: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ keystone_public_port }}/v3"
# Valid options are [ uuid, fernet ]
keystone_token_provider: "fernet"
fernet_token_expiry: 86400
keystone_default_user_role: "_member_"
#######################
# Glance options
#######################
glance_backend_file: "{{ not enable_ceph | bool }}"
glance_backend_ceph: "{{ enable_ceph }}"
glance_registry_host: "glance-registry"
#######################
# Ceilometer options
#######################
# Valid options are [ mongodb, mysql, gnocchi ]
ceilometer_database_type: "mongodb"
# Valid options are [ mongodb, gnocchi, panko ]
ceilometer_event_type: "mongodb"
########################
### Panko options
########################
# Valid options are [ mongodb, mysql ]
panko_database_type: "mysql"
#################
# Gnocchi options
#################
# Vaid options are [file, ceph]
gnocchi_backend_storage: "{{ 'ceph' if enable_ceph|bool else 'file' }}"
#################################
# Cinder options
#################################
cinder_backend_ceph: "{{ enable_ceph }}"
cinder_volume_group: "cinder-volumes"
cinder_backup_driver: "nfs"
cinder_backup_share: ""
cinder_backup_mount_options_nfs: ""
#######################
# Cloudkitty options
#######################
# Valid options are [ ceilometer, gnocchi ]
cloudkitty_collector_backend: "ceilometer"
#######################
# Designate options
#######################
# Valid options are [ bind9 ]
designate_backend: "bind9"
designate_ns_record: "sample.openstack.org"
#######################
# Neutron options
#######################
neutron_bgp_router_id: "1.1.1.1"
neutron_host: "neutron"
#######################
# Nova options
#######################
nova_backend_ceph: "{{ enable_ceph }}"
nova_backend: "{{ 'rbd' if nova_backend_ceph | bool else 'default' }}"
# Valid options are [ kvm, qemu ]
nova_compute_virt_type: "kvm"
#######################
# Horizon options
#######################
horizon_backend_database: "{{ enable_murano | bool }}"
#################
# Octavia options
#################
# Load balancer topology options are [ SINGLE, ACTIVE_STANDBY ]
octavia_loadbalancer_topology: "SINGLE"
octavia_amp_boot_network_list:
octavia_amp_secgroup_list:
octavia_amp_flavor_id:
###################
# Ceph options
###################
# Ceph can be setup with a caching to improve performance. To use the cache you
# must provide separate disks than those for the OSDs
ceph_enable_cache: "no"
# Valid options are [ forward, none, writeback ]
ceph_cache_mode: "writeback"
# Valid options are [ ext4, btrfs, xfs ]
ceph_osd_filesystem: "xfs"
# Set to 'yes-i-really-really-mean-it' to force wipe disks with existing partitions for OSDs. Only
# set if you understand the consequences!
ceph_osd_wipe_disk: ""
# These are /etc/fstab options. Comma separated, no spaces (see fstab(8))
ceph_osd_mount_options: "defaults,noatime"
# A requirement for using the erasure-coded pools is you must setup a cache tier
# Valid options are [ erasure, replicated ]
ceph_pool_type: "replicated"
# Integrate Ceph Rados Object Gateway with OpenStack keystone
enable_ceph_rgw_keystone: "no"
ceph_cinder_pool_name: "volumes"
ceph_cinder_backup_pool_name: "backups"
ceph_glance_pool_name: "images"
ceph_gnocchi_pool_name: "gnocchi"
ceph_nova_pool_name: "vms"
ceph_erasure_profile: "k=4 m=2 ruleset-failure-domain=host"
ceph_rule: "default host {{ 'indep' if ceph_pool_type == 'erasure' else 'firstn' }}"
ceph_cache_rule: "cache host firstn"

51
ansible/library/merge_configs.py

@ -1,51 +0,0 @@
#!/usr/bin/env python
# Copyright 2015 Sam Yaple
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
DOCUMENTATION = '''
---
module: merge_configs
short_description: Merge ini-style configs
description:
- ConfigParser is used to merge several ini-style configs into one
options:
dest:
description:
- The destination file name
required: True
type: str
sources:
description:
- A list of files on the destination node to merge together
default: None
required: True
type: str
author: Sam Yaple
'''
EXAMPLES = '''
Merge multiple configs:
- hosts: database
tasks:
- name: Merge configs
merge_configs:
sources:
- "/tmp/config_1.cnf"
- "/tmp/config_2.cnf"
- "/tmp/config_3.cnf"
dest:
- "/etc/mysql/my.cnf"
'''

51
ansible/library/merge_yaml.py

@ -1,51 +0,0 @@
#!/usr/bin/env python
# Copyright 2015 Sam Yaple
# Copyright 2016 intel
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
DOCUMENTATION = '''