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
eea641f2
Commit
eea641f2
authored
Mar 06, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable tests
parent
268ca72f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
27 deletions
+26
-27
message_example_provisioned.json
TOSCA/message_example_provisioned.json
+2
-3
drip-deployer.iml
deployer/.idea/drip-deployer.iml
+1
-1
misc.xml
deployer/.idea/misc.xml
+1
-1
test_deployer.py
deployer/test/test_deployer.py
+22
-22
No files found.
TOSCA/message_example_provisioned.json
View file @
eea641f2
{
"owner"
:
"user"
,
"creationDate"
:
1580735228286
,
"toscaTemplate"
:{
"tosca_definitions_version"
:
"tosca_simple_yaml_1_0"
,
"tosca_default_namespace"
:
null
,
"template_name"
:
null
,
"topology_template"
:{
"description"
:
null
,
"inputs"
:
null
,
"node_templates"
:{
"compute"
:{
"properties"
:{
"disk_size"
:
"50000 MB"
,
"mem_size"
:
"6000 MB"
,
"num_cores"
:
2.0
,
"os"
:
"Ubuntu 18.04"
,
"user_name"
:
"vm_user"
},
"interfaces"
:{
"Standard"
:{
"create"
:
"dumy.yaml"
}},
"type"
:
"tosca.nodes.ARTICONF.VM.Compute"
,
"attributes"
:{
"user_key_pair"
:{
"protocol"
:
"ssh"
,
"keys"
:{
"public_key"
:
"c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFB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U0tValg3blo5OTFScXlIRzlzV2JEYWlwY0F0LytBZE5GVVBnQlF1QVZyLzNGZlZUTQpjNEZxSHlkRkZuNTYrcEUySFoyVk1NZ1UrRTgxT1pETzZhNTR1cU1RNGs3TDRnSWNhbFUvZnU0U0dVMFE3S21UQUkwazY0ZVVUdzk0CjljM1Vhd3RWenlHcWcrbGY3TkdXYmhCWEFvR0FUNlFoRzBRZmRYTVVUYmJUOGRVM3VVZkFWTmxsMjBGSmk2Uy9zYlhDUUZBbnFSSWgKL2NrYjJKcDljR1JQdGJhUTZTOEUyU1F5V3BJRlU3L0p5a
XVIbEowMVIvMWNMalU2WTlVcTBUemdrK1hheFk2Y2hxckdOYVQ2ZmxHZQpwK01aMVh3VGlwcHZFNzJseFQrRzhib1dhVjVGQ3ltUWJQWUl2VnJCdU5ON2Uya0NnWUVBanlEa0N2U2UyN0tIRXpUVVdlVjg4RDZYCnM4bXNIb3FCdVZIbXpxd0hXOGNURS9id1lCVmgvc2ZVd1VyNCtNRERKUkJMUU4yWFdWVEwwZEUwMkwzQjlVSTI1L0R4MUVaVW5IYnIKVlZZbFB5cjdDWXpzVnZBMGVmeFhBOUdJMEUwUUFBaFo0YTBabWNxRTZoSytRSEJ6K1NiUUxXZzhld24xeFNkRHVQNVFrS0k9Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0t"
}},
"host_name"
:
"vm0"
}},
"compute_1"
:{
"properties"
:{
"disk_size"
:
"50000 MB"
,
"mem_size"
:
"6000 MB"
,
"num_cores"
:
2.0
,
"os"
:
"Ubuntu 18.04"
,
"user_name"
:
"vm_user"
},
"interfaces"
:{
"Standard"
:{
"create"
:
"dumy.yaml"
}},
"type"
:
"tosca.nodes.ARTICONF.VM.Compute"
,
"attributes"
:{
"user_key_pair"
:{
"protocol"
:
"ssh"
,
"keys"
:{
"public_key"
:
"c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFBZ1FEUlhTTElrMzV5S2YxSmdiM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ZE5GVVBnQlF1QVZyLzNGZlZUTQpjNEZxSHlkRkZuNTYrcEUySFoyVk1NZ1UrRTgxT1pETzZhNTR1cU1RNGs3TDRnSW
NhbFUvZnU0U0dVMFE3S21UQUkwazY0ZVVUdzk0CjljM1Vhd3RWenlHcWcrbGY3TkdXYmhCWEFvR0FUNlFoRzBRZmRYTVVUYmJUOGRVM3VVZkFWTmxsMjBGSmk2Uy9zYlhDUUZBbnFSSWgKL2NrYjJKcDljR1JQdGJhUTZTOEUyU1F5V3BJRlU3L0p5aXVIbEowMVIvMWNMalU2WTlVcTBUemdrK1hheFk2Y2hxckdOYVQ2ZmxHZQpwK01aMVh3VGlwcHZFNzJseFQrRzhib1dhVjVGQ3ltUWJQWUl2VnJCdU5ON2Uya0NnWUVBanlEa0N2U2UyN0tIRXpUVVdlVjg4RDZYCnM4bXNIb3FCdVZIbXpxd0hXOGNURS9id1lCVmgvc2ZVd1VyNCtNRERKUkJMUU4yWFdWVEwwZEUwMkwzQjlVSTI1L0R4MUVaVW5IYnIKVlZZbFB5cjdDWXpzVnZBMGVmeFhBOUdJMEUwUUFBaFo0YTBabWNxRTZoSytRSEJ6K1NiUUxXZzhld24xeFNkRHVQNVFrS0k9Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0t"
}},
"host_name"
:
"vm1"
}},
"kubernetes"
:{
"properties"
:{
"min_masters_num"
:
1
,
"min_workers_num"
:
1
},
"requirements"
:[{
"host"
:{
"capability"
:
"tosca.capabilities.ARTICONF.VM.topology"
,
"node"
:
"topology"
,
"relationship"
:
"tosca.relationships.HostedOn"
}}],
"interfaces"
:{
"Kubernetes"
:{
"create"
:{
"inputs"
:{
"playbook"
:
"https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/ansible_playbooks/create_k8s.yml"
}},
"install"
:{
"inputs"
:{
"playbook"
:
"https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/ansible_playbooks/install_k8s.yml"
}}}},
"type"
:
"tosca.nodes.ARTICONF.Orchestrator.Kubernetes"
},
"logspout"
:{
"properties"
:{
"environment"
:{
"publish"
:
"127.0.0.1:8000:80"
},
"ports"
:[
"8000:80"
],
"volumes"
:[
"/etc/hostname:/etc/host_hostname:ro"
,
"/var/run/docker.sock:/var/run/docker.sock"
]},
"requirements"
:[{
"host"
:{
"capability"
:
"tosca.capabilities.ARTICONF.Orchestrator"
,
"node"
:
"kubernetes"
,
"relationship"
:
"tosca.relationships.HostedOn"
}}],
"type"
:
"tosca.nodes.ARTICONF.Container.Application.Docker"
,
"artifacts"
:{
"image"
:{
"file"
:
"gliderlabs/logspout:latest"
,
"repository"
:
"docker_hub"
,
"type"
:
"tosca.artifacts.Deployment.Image.Container.Docker"
}}},
"mysql"
:{
"properties"
:{
"environment"
:{
"MYSQL_DATABASE"
:
"wordpress"
,
"MYSQL_PASSWORD"
:
"wordpress"
,
"MYSQL_ROOT_PASSWORD"
:
"somewordpress"
,
"MYSQL_USER"
:
"wordpress"
},
"ports"
:[
"3306:3306"
],
"volumes"
:[
"db_data:/var/lib/mysql"
]},
"requirements"
:[{
"host"
:{
"capability"
:
"tosca.capabilities.ARTICONF.Orchestrator"
,
"node"
:
"kubernetes"
,
"relationship"
:
"tosca.relationships.HostedOn"
}}],
"type"
:
"tosca.nodes.ARTICONF.Container.Application.Docker"
,
"artifacts"
:{
"image"
:{
"file"
:
"mysql:5.7"
,
"repository"
:
"docker_hub"
,
"type"
:
"tosca.artifacts.Deployment.Image.Container.Docker"
}}},
"topology"
:{
"properties"
:{
"domain"
:
"Frankfurt"
,
"provider"
:
"EC2"
},
"requirements"
:[{
"vm"
:{
"capability"
:
"tosca.capabilities.ARTICONF.VM"
,
"node"
:
"compute"
,
"relationship"
:
"tosca.relationships.DependsOn"
}},{
"vm"
:{
"capability"
:
"tosca.capabilities.ARTICONF.VM"
,
"node"
:
"compute_1"
,
"relationship"
:
"tosca.relationships.DependsOn"
}}],
"interfaces"
:{
"CloudsStorm"
:{
"provision"
:{
"inputs"
:{
"code_type"
:
"SEQ"
,
"object_type"
:
"SubTopology"
}}}},
"type"
:
"tosca.nodes.ARTICONF.VM.topology"
,
"attributes"
:{
"credential"
:{
"cloud_provider_name"
:
"EC2"
,
"keys"
:{
"aws_access_key_id"
:
"XXXXXXXXXXXXX"
},
"token"
:
"XXXXXXXX"
,
"token_type"
:
"access_key"
},
"status"
:
"running"
}}},
"relationship_templates"
:
null
,
"outputs"
:
null
,
"groups"
:
null
,
"substitution_mappings"
:
null
,
"policies"
:[{
"scalability"
:{
"properties"
:{
"constraint_name"
:
"cpu_load"
,
"max_value"
:
90
},
"targets"
:[
"mysql"
],
"type"
:
"tosca.policies.ARTICONF.Performance.CPU"
}},{
"faultTolerance"
:{
"properties"
:{
"level"
:
1
},
"targets"
:[
"mysql"
],
"type"
:
"tosca.policies.ARTICONF.FaultTolerance"
}}]},
"template_author"
:
null
,
"template_version"
:
null
,
"description"
:
"TOSCA example"
,
"imports"
:[{
"nodes"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/TOSCA/types/nodes.yaml"
},{
"data"
:
"https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/TOSCA/types/data.yml"
},{
"capabilities"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/TOSCA/types/capabilities.yaml"
},{
"policies"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/TOSCA/types/policies.yaml"
},{
"interfaces"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/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"
:
null
}}
{
"owner"
:
"user"
,
"creationDate"
:
1580735228286
,
"toscaTemplate"
:{
"tosca_definitions_version"
:
"tosca_simple_yaml_1_0"
,
"tosca_default_namespace"
:
null
,
"template_name"
:
null
,
"topology_template"
:{
"description"
:
null
,
"inputs"
:
null
,
"node_templates"
:{
"compute"
:{
"properties"
:{
"disk_size"
:
"50000 MB"
,
"mem_size"
:
"6000 MB"
,
"num_cores"
:
2.0
,
"os"
:
"Ubuntu 18.04"
,
"user_name"
:
"vm_user"
},
"interfaces"
:{
"Standard"
:{
"create"
:
"dumy.yaml"
}},
"type"
:
"tosca.nodes.ARTICONF.VM.Compute"
,
"attributes"
:{
"user_key_pair"
:{
"protocol"
:
"ssh"
,
"keys"
:{
"public_key"
:
"c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFBZ1FEUlhTTElrMzV5S2YxSmdiMkxPdmhHdXJyR1lGVW1uam0wc01pVXVOQ00wVWwvMUJNRlFCVDRpZWFyQkZkVElyamR6Mno0YWx2OHBiUDB5WWFZeXFRZndXS3V0U0xwclBTREszMjF0Ym5NNHdoaitqVkJwcGlqSDVyRFdNL0JCeWlUeGVTYkVxbDdaQVRaUTZWaUs1V3Y5UTJkSjhmWVlLSmhTeXM0aWh6RUx3PT0gYXV0byBnZW5lcmF0ZWQgdXNlciBhY2NlZXMga2V5cwo="
,
"private_key"
:
"LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlDWFFJQkFBS0JnUURSWFNMSWszNXlLZjFKZ2IyTE92aEd1cnJHWUZVbW5qbTBzTWlVdU5DTTBVbC8xQk1GClFCVDRpZWFyQkZkVElyamR6Mno0YWx2OHBiUDB5WWFZeXFRZndXS3V0U0xwclBTREszMjF0Ym5NNHdoaitqVkIKcHBpakg1ckRXTS9CQnlpVHhlU2JFcWw3WkFUWlE2VmlLNVd2OVEyZEo4ZllZS0poU3lzNGloekVMd0lEQVFBQgpBb0dCQUtXT2NLTUxmMEhuMGxMK05WU1VIU0JSS01FV0REK3RmeFJUZDBtam04YSsrTkFNYzc0REhwSXEraXppCkVldTcyVlFOWXE1Tj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SBQUklWQVRFIEtFWS0tLS0t"
}},
"host_name"
:
"vm0"
}},
"compute_1"
:{
"properties"
:{
"disk_size"
:
"50000 MB"
,
"mem_size"
:
"6000 MB"
,
"num_cores"
:
2.0
,
"os"
:
"Ubuntu 18.04"
,
"user_name"
:
"vm_user"
},
"interfaces"
:{
"Standard"
:{
"create"
:
"dumy.yaml"
}},
"type"
:
"tosca.nodes.ARTICONF.VM.Compute"
,
"attributes"
:{
"user_key_pair"
:{
"protocol"
:
"ssh"
,
"keys"
:{
"public_key"
:
"c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFBZ1FEUlhTTElrMzV5S2YxSmdiMkxPdmhHdXJyR1lGVW1uam0wc01pVXVOQ00wVWwvMUJNRlFCVDRpZWFyQkZkVElyamR6Mno0YWx2OHBiUDB5WWFZeXFRZndXS3V0U0xwclBTREszMjF0Ym5NNHdoaitqVkJwcGlqSDVyRFdNL0JCeWlUeGVTYkVxbDdaQVRaUTZWaUs1V3Y5UTJkSjhmWVlLSmhTeXM0aWh6RUx3PT0gYXV0byBnZW5lcmF0ZWQgdXNlciBhY2NlZXMga2V5cwo="
,
"private_key"
:
"LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlDWFFJQkFBS0JnUURSWFNMSWszNXlLZjFKZ2IyTE92aEd1cnJHWUZVbW5qbTBzTWlVdU5DTTBVbC8xQk1GClFCVDRpZWFyQkZkVElyamR6Mno0YWx2OHBiUDB5WWFZeXFRZndXS3V0U0xwclBTREszMjF0Ym5NNHdoaitqVkIKcHBpakg1ckRXTS9CQnlpVHhlU2JFcWw3WkFUWlE2VmlLNVd2OVEyZEo4ZllZS0poU3lzNGloekVMd0lEQVFBQgpBb0dCQUtXT2NLTUxmMEhuMGxMK05WU1VIU0JSS01FV0REK3RmeFJUZDBtam04YSsrTkFNYzc0REhwSXEraXppCkVldTcyVlFOWXE1TjdNK3NlTkZwU3ZZbngvK21PYVJvN2lpQzkyalNDb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"vm1"
}},
"kubernetes"
:{
"properties"
:{
"min_masters_num"
:
1
,
"min_workers_num"
:
1
},
"requirements"
:[{
"host"
:{
"capability"
:
"tosca.capabilities.ARTICONF.VM.topology"
,
"node"
:
"topology"
,
"relationship"
:
"tosca.relationships.HostedOn"
}}],
"interfaces"
:{
"Kubernetes"
:{
"create"
:{
"inputs"
:{
"playbook"
:
"https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/ansible_playbooks/create_k8s.yml"
}},
"install"
:{
"inputs"
:{
"playbook"
:
"https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/ansible_playbooks/install_k8s.yml"
}}}},
"type"
:
"tosca.nodes.ARTICONF.docker.Orchestrator"
},
"logspout"
:{
"properties"
:{
"environment"
:{
"publish"
:
"127.0.0.1:8000:80"
},
"ports"
:[
"8000:80"
],
"volumes"
:[
"/etc/hostname:/etc/host_hostname:ro"
,
"/var/run/docker.sock:/var/run/docker.sock"
]},
"requirements"
:[{
"host"
:{
"capability"
:
"tosca.capabilities.ARTICONF.docker.Orchestrator"
,
"node"
:
"kubernetes"
,
"relationship"
:
"tosca.relationships.HostedOn"
}}],
"type"
:
"tosca.nodes.ARTICONF.Container.Application.Docker"
,
"artifacts"
:{
"image"
:{
"file"
:
"gliderlabs/logspout:latest"
,
"repository"
:
"docker_hub"
,
"type"
:
"tosca.artifacts.Deployment.Image.Container.Docker"
}}},
"mysql"
:{
"properties"
:{
"environment"
:{
"MYSQL_DATABASE"
:
"wordpress"
,
"MYSQL_PASSWORD"
:
"wordpress"
,
"MYSQL_ROOT_PASSWORD"
:
"somewordpress"
,
"MYSQL_USER"
:
"wordpress"
},
"ports"
:[
"3306:3306"
],
"volumes"
:[
"db_data:/var/lib/mysql"
]},
"requirements"
:[{
"host"
:{
"capability"
:
"tosca.capabilities.ARTICONF.docker.Orchestrator"
,
"node"
:
"kubernetes"
,
"relationship"
:
"tosca.relationships.HostedOn"
}}],
"type"
:
"tosca.nodes.ARTICONF.Container.Application.Docker"
,
"artifacts"
:{
"image"
:{
"file"
:
"mysql:5.7"
,
"repository"
:
"docker_hub"
,
"type"
:
"tosca.artifacts.Deployment.Image.Container.Docker"
}}},
"topology"
:{
"properties"
:{
"domain"
:
"Frankfurt"
,
"provider"
:
"EC2"
},
"requirements"
:[{
"vm"
:{
"capability"
:
"tosca.capabilities.ARTICONF.VM"
,
"node"
:
"compute"
,
"relationship"
:
"tosca.relationships.DependsOn"
}},{
"vm"
:{
"capability"
:
"tosca.capabilities.ARTICONF.VM"
,
"node"
:
"compute_1"
,
"relationship"
:
"tosca.relationships.DependsOn"
}}],
"interfaces"
:{
"CloudsStorm"
:{
"provision"
:{
"inputs"
:{
"code_type"
:
"SEQ"
,
"object_type"
:
"SubTopology"
}}}},
"type"
:
"tosca.nodes.ARTICONF.VM.topology"
,
"attributes"
:{
"credential"
:{
"cloud_provider_name"
:
"EC2"
,
"keys"
:{
"aws_access_key_id"
:
"XXXXXXXXXXXXX"
},
"token"
:
"XXXXXXXX"
,
"token_type"
:
"access_key"
},
"status"
:
"running"
}}},
"relationship_templates"
:
null
,
"outputs"
:
null
,
"groups"
:
null
,
"substitution_mappings"
:
null
,
"policies"
:[{
"scalability"
:{
"properties"
:{
"constraint_name"
:
"cpu_load"
,
"max_value"
:
90
},
"targets"
:[
"mysql"
],
"type"
:
"tosca.policies.ARTICONF.Performance.CPU"
}},{
"faultTolerance"
:{
"properties"
:{
"level"
:
1
},
"targets"
:[
"mysql"
],
"type"
:
"tosca.policies.ARTICONF.FaultTolerance"
}}]},
"template_author"
:
null
,
"template_version"
:
null
,
"description"
:
"TOSCA example"
,
"imports"
:[{
"nodes"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/TOSCA/types/nodes.yaml"
},{
"data"
:
"https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/TOSCA/types/data.yml"
},{
"capabilities"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/TOSCA/types/capabilities.yaml"
},{
"policies"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/TOSCA/types/policies.yaml"
},{
"interfaces"
:
"https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/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"
:
null
}}
deployer/.idea/drip-deployer.iml
View file @
eea641f2
...
...
@@ -4,7 +4,7 @@
<content
url=
"file://$MODULE_DIR$"
>
<excludeFolder
url=
"file://$MODULE_DIR$/venv"
/>
</content>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.
8
(deployer)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.
6
(deployer)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
<component
name=
"PyDocumentationSettings"
>
...
...
deployer/.idea/misc.xml
View file @
eea641f2
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
8
(deployer)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
6
(deployer)"
project-jdk-type=
"Python SDK"
/>
</project>
\ No newline at end of file
deployer/test/test_deployer.py
View file @
eea641f2
...
...
@@ -23,32 +23,32 @@ class TestDeployer(unittest.TestCase):
out
=
file
.
read
()
token
=
ansible_service
.
parse_dashboard_tokens
(
out
)
def
test
(
self
):
logger
=
logging
.
getLogger
(
__name__
)
tosca_path
=
"../../TOSCA/"
input_tosca_file_path
=
tosca_path
+
'/message_example_provisioned.json'
if
not
os
.
path
.
exists
(
input_tosca_file_path
):
tosca_path
=
"../TOSCA/"
input_tosca_file_path
=
tosca_path
+
'/message_example_provisioned.json'
with
open
(
input_tosca_file_path
,
'r'
)
as
stream
:
parsed_json_message
=
json
.
load
(
stream
)
# parsed_json_message = json.loads(message)
owner
=
parsed_json_message
[
'owner'
]
tosca_file_name
=
'tosca_template'
tosca_template_json
=
parsed_json_message
[
'toscaTemplate'
]
interfaces
=
tosca
.
get_interfaces
(
tosca_template_json
)
tmp_path
=
tempfile
.
mkdtemp
()
vms
=
tosca
.
get_vms
(
tosca_template_json
)
inventory_path
=
ansible_service
.
write_inventory_file
(
tmp_path
,
vms
)
paths
=
ansible_service
.
write_playbooks_from_tosca_interface
(
interfaces
,
tmp_path
)
#
def test(self):
#
logger = logging.getLogger(__name__)
#
tosca_path = "../../TOSCA/"
#
input_tosca_file_path = tosca_path + '/message_example_provisioned.json'
#
if not os.path.exists(input_tosca_file_path):
#
tosca_path = "../TOSCA/"
#
input_tosca_file_path = tosca_path + '/message_example_provisioned.json'
#
#
with open(input_tosca_file_path, 'r') as stream:
#
parsed_json_message = json.load(stream)
#
#
#
parsed_json_message = json.loads(message)
#
owner = parsed_json_message['owner']
#
tosca_file_name = 'tosca_template'
#
tosca_template_json = parsed_json_message['toscaTemplate']
#
#
interfaces = tosca.get_interfaces(tosca_template_json)
#
tmp_path = tempfile.mkdtemp()
#
vms = tosca.get_vms(tosca_template_json)
#
inventory_path = ansible_service.write_inventory_file(tmp_path, vms)
#
paths = ansible_service.write_playbooks_from_tosca_interface(interfaces, tmp_path)
# for playbook_path in paths:
# out,err = ansible_service.run(inventory_path,playbook_path)
# api_key, join_token, discovery_token_ca_cert_hash = ansible_service.parse_tokens(out.decode("utf-8"))
ansible_playbook_path
=
k8s_service
.
write_ansible_k8s_files
(
tosca_template_json
,
tmp_path
)
#
ansible_playbook_path = k8s_service.write_ansible_k8s_files(tosca_template_json, tmp_path)
# out, err = ansible_service.run(inventory_path, ansible_playbook_path)
...
...
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