Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
d40869d5
Commit
d40869d5
authored
Jul 01, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
define Orchestrator and capabilities
parent
0e9b7d25
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
7 deletions
+42
-7
application_example.yaml
TOSCA/application_example.yaml
+4
-3
capabilities.yaml
TOSCA/types/capabilities.yaml
+10
-0
nodes.yaml
TOSCA/types/nodes.yaml
+27
-2
basic_planner.py
drip_planner2/src/planner/basic_planner.py
+1
-2
No files found.
TOSCA/application_example.yaml
View file @
d40869d5
tosca_definitions_version
:
tosca_simple_yaml_1_0
imports
:
-
indigo_custom_types
:
types/nodes.yaml
-
nodes
:
types/nodes.yaml
-
capabilities
:
types/capabilities.yaml
description
:
>
TOSCA example
...
...
@@ -10,7 +11,7 @@ topology_template:
node_templates
:
wordpress
:
type
:
tosca.nodes.
SWITCH
.Container.Application.Docker
type
:
tosca.nodes.
ARTICONF
.Container.Application.Docker
requirements
:
-
service
:
node
:
mysql
...
...
@@ -32,7 +33,7 @@ topology_template:
WORDPRESS_DB_NAME
:
wordpress
mysql
:
type
:
tosca.nodes.
SWITCH
.Container.Application.Docker
type
:
tosca.nodes.
ARTICONF
.Container.Application.Docker
properties
:
volumes
:
-
db_data:/var/lib/mysql
...
...
TOSCA/types/capabilities.yaml
0 → 100644
View file @
d40869d5
tosca_definitions_version
:
tosca_simple_yaml_1_0
capability_types
:
tosca.capabilities.ARTICONF.Orchestrator
:
derived_from
:
tosca.capabilities.Container
properties
:
some_properties
:
type
:
string
required
:
no
TOSCA/types/nodes.yaml
View file @
d40869d5
...
...
@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_yaml_1_0
node_types
:
tosca.nodes.
SWITCH
.Container.Application.Docker
:
tosca.nodes.
ARTICONF
.Container.Application.Docker
:
#derived_from: tosca.nodes.Container.Application.Docker
description
:
description of container
capabilities
:
...
...
@@ -31,6 +31,31 @@ node_types:
required
:
false
requirements
:
-
host
:
capability
:
tosca.capabilities.Compute
capability
:
tosca.capabilities.ARTICONF.Orchestrator
node
:
tosca.nodes.ARTICONF.Orchestrator
relationship
:
tosca.relationships.HostedOn
tosca.nodes.ARTICONF.Orchestrator
:
derived_from
:
tosca.nodes.SoftwareComponent
description
:
a container orchestrator
requirements
:
-
host
:
capability
:
tosca.capabilities.Container
node
:
tosca.nodes.Compute
relationship
:
tosca.relationships.HostedOn
capabilities
:
host
:
type
:
tosca.capabilities.ARTICONF.Orchestrator
tosca.nodes.ARTICONF.Orchestrator.Kubernetes
:
derived_from
:
tosca.nodes.ARTICONF.Orchestrator
description
:
Kubernetes orchestrator
requirements
:
-
host
:
capability
:
tosca.capabilities.Scalable
node
:
tosca.nodes.Compute
relationship
:
tosca.relationships.HostedOn
drip_planner2/src/planner/basic_planner.py
View file @
d40869d5
...
...
@@ -22,10 +22,9 @@ class BasicPlanner:
for
node
in
self
.
template
.
nodetemplates
:
missing_requirements
=
self
.
get_missing_requirements
(
node
)
print
(
missing_requirements
)
for
req
in
missing_requirements
:
node
.
requirements
.
append
(
req
)
print
(
'----------------------'
)
# print(node.get_properties().keys())
# print(node.get_capabilities().keys)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment