Ton Ngo 40a9ce5629 TOSCA generator translation for individual TOSCA type.
Each TOSCA abstract type is handled by a separate generator. These contain the
necessary logic to implement the abstract type as concrete Heat resource type.
In this set, only the server type requires custom handling.
All the other types are software config and are handled by the super class.
The WordPress type is a custom type and will be moved to a separate place

Partially implements blueprint heat-translator-tosca
Change-Id: Ida687e6eed53e1edfdc611bc3d27704d9d9f3d67
O
2014-06-11 12:03:49 -07:00

28 lines
877 B
Python
Executable File

#
# 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 translator.hot.syntax.hot_resource import HotResource
class ToscaDbms(HotResource):
'''Translate TOSCA node type tosca.nodes.DBMS.'''
toscatype = 'tosca.nodes.DBMS'
def __init__(self, nodetemplate):
super(ToscaDbms, self).__init__(nodetemplate)
pass
def handle_properties(self):
pass