Roll this into master after pull request was approved
This commit is contained in:
parent
238eba8966
commit
f1e2a3f343
@ -1,4 +1,4 @@
|
|||||||
# drydock
|
# helm_drydock
|
||||||
A python REST orchestrator to translate a YAML host topology to a provisioned set of hosts and provide a set of cloud-init post-provisioning instructions.
|
A python REST orchestrator to translate a YAML host topology to a provisioned set of hosts and provide a set of cloud-init post-provisioning instructions.
|
||||||
|
|
||||||
## Modular service
|
## Modular service
|
||||||
@ -9,7 +9,7 @@ aka ingester
|
|||||||
|
|
||||||
Pluggable service to ingest a inventory/design specification, convert it to a standard
|
Pluggable service to ingest a inventory/design specification, convert it to a standard
|
||||||
internal representaion, and persist it to the Design State API. Initial implementation
|
internal representaion, and persist it to the Design State API. Initial implementation
|
||||||
is the consumer of AIC YAML schema.
|
is the consumer of YAML schema.
|
||||||
|
|
||||||
### Design State API ###
|
### Design State API ###
|
||||||
|
|
||||||
@ -38,10 +38,6 @@ aka maasdriver
|
|||||||
|
|
||||||
Pluggable provisioner for server bootstrapping. Initial implementation is MaaS client.
|
Pluggable provisioner for server bootstrapping. Initial implementation is MaaS client.
|
||||||
|
|
||||||
### Network Driver ###
|
|
||||||
|
|
||||||
Pluggable provisioner for network provisioning. Initial implementation is Noop.
|
|
||||||
|
|
||||||
### Introspection API ###
|
### Introspection API ###
|
||||||
|
|
||||||
aka introspection
|
aka introspection
|
||||||
|
13
helm_drydock/control/__init__.py
Normal file
13
helm_drydock/control/__init__.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 2017 AT&T Intellectual Property. All other rights reserved.
|
||||||
|
#
|
||||||
|
# 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.
|
35
helm_drydock/control/root.py
Normal file
35
helm_drydock/control/root.py
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Copyright 2017 AT&T Intellectual Property. All other rights reserved.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
from pecan import expose
|
||||||
|
from webob.exc import status_map
|
||||||
|
|
||||||
|
class RootController(object):
|
||||||
|
|
||||||
|
@expose(generic=True, template='index.html')
|
||||||
|
def index(self):
|
||||||
|
return dict()
|
||||||
|
|
||||||
|
@index.when(method='POST')
|
||||||
|
def index_post(self, q):
|
||||||
|
redirect('https://pecan.readthedocs.io/en/latest/search.html?q=%s' % q)
|
||||||
|
|
||||||
|
@expose('error.html')
|
||||||
|
def error(self, status):
|
||||||
|
try:
|
||||||
|
status = int(status)
|
||||||
|
except ValueError:
|
||||||
|
status = 0
|
||||||
|
message = getattr(status_map.get(status), 'explanation', '')
|
||||||
|
return dict(status=status, message=message)
|
6
setup.py
6
setup.py
@ -44,14 +44,16 @@ setup(name='helm_drydock',
|
|||||||
'helm_drydock.ingester',
|
'helm_drydock.ingester',
|
||||||
'helm_drydock.ingester.plugins',
|
'helm_drydock.ingester.plugins',
|
||||||
'helm_drydock.statemgmt',
|
'helm_drydock.statemgmt',
|
||||||
'helm_drydock.orchestrator'],
|
'helm_drydock.orchestrator',
|
||||||
|
'helm_drydock.control'],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'PyYAML',
|
'PyYAML',
|
||||||
'oauth',
|
'oauth',
|
||||||
'requests-oauthlib',
|
'requests-oauthlib',
|
||||||
'pyipmi',
|
'pyipmi',
|
||||||
'netaddr',
|
'netaddr',
|
||||||
'pecan'
|
'pecan',
|
||||||
|
'webob'
|
||||||
],
|
],
|
||||||
dependency_link=[
|
dependency_link=[
|
||||||
'git+https://github.com/maas/python-libmaas.git'
|
'git+https://github.com/maas/python-libmaas.git'
|
||||||
|
Loading…
Reference in New Issue
Block a user