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
c32ced47
Commit
c32ced47
authored
Mar 27, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed interfaces
parent
be9ab511
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
31 deletions
+60
-31
interfaces.yml
TOSCA/types/interfaces.yml
+25
-7
nodes.yaml
TOSCA/types/nodes.yaml
+2
-4
docker-compose.yml
docker-compose.yml
+19
-19
message_plan_request.json
example_messages/message_plan_request.json
+1
-0
message_provision_response.json
example_messages/message_provision_response.json
+7
-1
test_planner.py
planner/test/test_planner.py
+6
-0
No files found.
TOSCA/types/interfaces.yml
View file @
c32ced47
...
...
@@ -62,10 +62,18 @@ interface_types:
description
:
Provision the defined objects (resources). ObjectType can be SubTopology or VM.
tosca.interfaces.ARTICONF.Standard
:
derived_from
:
tosca.interfaces.node.lifecycle.Standard
inputs
:
inventory_file
:
type
:
string
required
:
false
playbook
:
type
:
string
required
:
false
tosca.interfaces.ARTICONF.Kubernetes
:
derived_from
:
tosca.interfaces.
node.lifecycle
.Standard
derived_from
:
tosca.interfaces.
ARTICONF
.Standard
inputs
:
inventory_file
:
type
:
string
...
...
@@ -77,13 +85,23 @@ interface_types:
type
:
integer
required
:
false
scale
:
description
:
Set the number of replicas for a Deployment, ReplicaSet, or Replication Controller, or the parallelism attribute of a Job.
create
:
description
:
create deployment on a k8s cluster
delete
:
description
:
delete deployment on a k8s cluster
description
:
Set the number of replicas for a Deployment, ReplicaSet, or Replication Controller, or the parallelism attribute of a Job.
autoscale
:
description
:
horizontal_pod_autoscaler
info
:
description
:
get information on pods,services or deployments
#tosca.interfaces.node.lifecycle.Standard:
#derived_from: tosca.interfaces.Root
#create:
#description: Standard lifecycle create operation.
#configure:
#description: Standard lifecycle configure operation.
#start:
#description: Standard lifecycle start operation.
#stop:
#description: Standard lifecycle stop operation.
#delete:
#description: Standard lifecycle delete operation.
TOSCA/types/nodes.yaml
View file @
c32ced47
...
...
@@ -126,12 +126,10 @@ node_types:
description
:
the dashboard access url
interfaces
:
Standard
:
type
:
tosca.interfaces.ARTICONF.Standard
install
:
inputs
:
playbook
:
https://raw.githubusercontent.com/skoulouzis/CONF/develop/ansible_playbooks/install_k8s.yml
create
:
inputs
:
playbook
:
https://raw.githubusercontent.com/skoulouzis/CONF/develop/ansible_playbooks/create_k8s.yml
playbook
:
https://raw.githubusercontent.com/skoulouzis/CONF/develop/ansible_playbooks/install_k8s.yml
configure
:
inputs
:
playbook
:
https://raw.githubusercontent.com/skoulouzis/CONF/develop/ansible_playbooks/dashboard.yaml
...
...
docker-compose.yml
View file @
c32ced47
...
...
@@ -59,31 +59,31 @@ services:
-
"
27017:27017"
manager
:
depends_on
:
-
rabbit
-
mongo
-
sure-tosca
image
:
manager:3.0.0
environment
:
RABBITMQ_HOST
:
rabbit
MONGO_HOST
:
mongo
SURE_TOSCA_BASE_PATH
:
http://sure-tosca:8081/tosca-sure/1.0.0
ports
:
-
"
30000:8080"
#
manager:
#
depends_on:
#
- rabbit
#
- mongo
#
- sure-tosca
#
image: manager:3.0.0
#
environment:
#
RABBITMQ_HOST: rabbit
#
MONGO_HOST: mongo
#
SURE_TOSCA_BASE_PATH: http://sure-tosca:8081/tosca-sure/1.0.0
#
ports:
#
- "30000:8080"
sure-tosca
:
image
:
sure-tosca:3.0.0
ports
:
-
"
8081:8081"
planner
:
depends_on
:
-
rabbit
-
sure-tosca
image
:
planner:3.0.0
environment
:
RABBITMQ_HOST
:
rabbit
#
planner:
#
depends_on:
#
- rabbit
#
- sure-tosca
#
image: planner:3.0.0
#
environment:
#
RABBITMQ_HOST: rabbit
provisioner
:
depends_on
:
...
...
example_messages/message_plan_request.json
0 → 100644
View file @
c32ced47
{
"owner"
:
"user"
,
"creationDate"
:
1585323740913
,
"toscaTemplate"
:{
"tosca_definitions_version"
:
"tosca_simple_yaml_1_0"
,
"tosca_default_namespace"
:
null
,
"template_name"
:
null
,
"topology_template"
:{
"description"
:
null
,
"inputs"
:
null
,
"node_templates"
:{
"ws-pema"
:{
"properties"
:{
"ports"
:[
"30001:8080"
]},
"type"
:
"tosca.nodes.ARTICONF.Container.Application.Docker"
,
"artifacts"
:{
"image"
:{
"type"
:
"tosca.artifacts.Deployment.Image.Container.Docker"
,
"file"
:
"alogo53/ws-pema-lifewatch"
,
"repository"
:
"docker_hub"
}}}},
"relationship_templates"
:
null
,
"outputs"
:
null
,
"groups"
:
null
,
"substitution_mappings"
:
null
,
"policies"
:
null
},
"template_author"
:
null
,
"template_version"
:
null
,
"description"
:
"TOSCA example
\n
"
,
"imports"
:[{
"nodes"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/develop/TOSCA/types/nodes.yaml"
},{
"data"
:
"https://raw.githubusercontent.com/skoulouzis/CONF/develop/TOSCA/types/data.yml"
},{
"capabilities"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/develop/TOSCA/types/capabilities.yaml"
},{
"policies"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/develop/TOSCA/types/policies.yaml"
},{
"interfaces"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/develop/TOSCA/types/interfaces.yml"
}],
"dsl_definitions"
:
null
,
"node_types"
:
null
,
"relationship_types"
:
null
,
"relationship_templates"
:
null
,
"capability_types"
:
null
,
"artifact_types"
:
null
,
"data_types"
:
null
,
"interface_types"
:
null
,
"policy_types"
:
null
,
"group_types"
:
null
,
"repositories"
:{
"docker_hub"
:
"https://hub.docker.com/"
}}}
example_messages/message_provision_response.json
View file @
c32ced47
This diff is collapsed.
Click to expand it.
planner/test/test_planner.py
View file @
c32ced47
...
...
@@ -25,6 +25,12 @@ class MyTestCase(unittest.TestCase):
input_tosca_file_path
=
self
.
get_input_tosca_file_path
(
file_name
)
self
.
run_test
(
input_tosca_file_path
)
file_name
=
'lifeWatch_vre1.yaml'
input_tosca_file_path
=
self
.
get_input_tosca_file_path
(
file_name
)
self
.
run_test
(
input_tosca_file_path
)
def
test_kubernetes
(
self
):
file_name
=
'kubernetes.yaml'
input_tosca_file_path
=
self
.
get_input_tosca_file_path
(
file_name
)
...
...
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