commit 64072861fcd43be19d2345dac1d402b9f35b2fdc Author: Liam Young Date: Mon Dec 14 12:34:27 2015 +0000 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..172bf57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.tox diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..24b270f --- /dev/null +++ b/config.yaml @@ -0,0 +1,36 @@ + os-admin-network: + type: string + default: + description: | + The IP address and netmask of the OpenStack Admin network (e.g., + 192.168.0.0/24) + . + This network will be used for admin endpoints. + os-internal-network: + type: string + default: + description: | + The IP address and netmask of the OpenStack Internal network (e.g., + 192.168.0.0/24) + . + This network will be used for internal endpoints. + os-public-network: + type: string + default: + description: | + The IP address and netmask of the OpenStack Public network (e.g., + 192.168.0.0/24) + . + This network will be used for public endpoints. + os-public-hostname: + type: string + default: + description: | + The hostname or address of the public endpoints created for neutron-api + in the keystone identity provider. + . + This value will be used for public endpoints. For example, an + os-public-hostname set to 'neutron-api.example.com' with ssl enabled + will create the following endpoint for neutron-api: + . + https://neutron-api.example.com:9696/ diff --git a/copyright b/copyright new file mode 100644 index 0000000..5a49dcb --- /dev/null +++ b/copyright @@ -0,0 +1,21 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 + +Files: * +Copyright: 2015, Canonical Ltd. +License: Apache-2.0 + +License: Apache-2.0 + 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. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in `/usr/share/common-licenses/Apache-2.0'. diff --git a/layer.yaml b/layer.yaml new file mode 100644 index 0000000..5c50723 --- /dev/null +++ b/layer.yaml @@ -0,0 +1 @@ +includes: ['layer:openstack'] diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..10dbed3 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +flake8>=2.2.4,<=2.4.1 +os-testr>=0.4.1 +charm-tools diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..99c57e5 --- /dev/null +++ b/tox.ini @@ -0,0 +1,25 @@ +[tox] +envlist = lint,py27 +skipsdist = True + +[testenv] +setenv = VIRTUAL_ENV={envdir} + PYTHONHASHSEED=0 +install_command = + pip install --allow-unverified python-apt {opts} {packages} +commands = ostestr {posargs} + +[testenv:py27] +basepython = python2.7 +deps = -r{toxinidir}/test-requirements.txt + +[testenv:lint] +basepython = python2.7 +deps = -r{toxinidir}/test-requirements.txt +commands = flake8 {posargs} lib + +[testenv:venv] +commands = {posargs} + +[flake8] +ignore = E402,E226