From fd9d72ea80ce9662a45ee016b3df33366f489198 Mon Sep 17 00:00:00 2001 From: Kaarel Tark <kaarel.tark@ut.ee> Date: Thu, 4 Nov 2021 15:01:25 +0000 Subject: [PATCH] Tark adding apache tomcat service template --- .../myApacheService/README.md | 1 + .../myApacheService/README.md.mimetype | 1 + .../myApacheService/ServiceTemplate.tosca | 48 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 servicetemplates/radon.blueprints.examples/myApacheService/README.md create mode 100644 servicetemplates/radon.blueprints.examples/myApacheService/README.md.mimetype create mode 100644 servicetemplates/radon.blueprints.examples/myApacheService/ServiceTemplate.tosca diff --git a/servicetemplates/radon.blueprints.examples/myApacheService/README.md b/servicetemplates/radon.blueprints.examples/myApacheService/README.md new file mode 100644 index 00000000..82b6c890 --- /dev/null +++ b/servicetemplates/radon.blueprints.examples/myApacheService/README.md @@ -0,0 +1 @@ +Tark first apache service template \ No newline at end of file diff --git a/servicetemplates/radon.blueprints.examples/myApacheService/README.md.mimetype b/servicetemplates/radon.blueprints.examples/myApacheService/README.md.mimetype new file mode 100644 index 00000000..f1148cc2 --- /dev/null +++ b/servicetemplates/radon.blueprints.examples/myApacheService/README.md.mimetype @@ -0,0 +1 @@ +text/plain \ No newline at end of file diff --git a/servicetemplates/radon.blueprints.examples/myApacheService/ServiceTemplate.tosca b/servicetemplates/radon.blueprints.examples/myApacheService/ServiceTemplate.tosca new file mode 100644 index 00000000..08794fd9 --- /dev/null +++ b/servicetemplates/radon.blueprints.examples/myApacheService/ServiceTemplate.tosca @@ -0,0 +1,48 @@ +tosca_definitions_version: tosca_simple_yaml_1_3 + +metadata: + targetNamespace: "radon.blueprints.examples" +topology_template: + node_templates: + RemoteWorkstation_1: + type: radon.nodes.VM.RemoteWorkstation + metadata: + x: "392" + y: "219" + displayName: "myWorkerVM_tark" + properties: + ssh_username: "centos" + KeyFile: "/home/ubuntu/tark_priv.pem" + external_ip: "172.17.89.136" + containerNginx_0: + type: radon.nodes.docker.containerNginx + metadata: + x: "1231" + y: "543" + displayName: "defaultApacheServer_tark" + properties: + container_port: "80" + image_name: "httpd:2.4" + container_name: "tark_apache" + host_port: "8088" + requirements: + - host: + node: DockerEngineUT_0 + relationship: con_HostedOn_1 + capability: host + DockerEngineUT_0: + type: radon.nodes.docker.DockerEngineUT + metadata: + x: "641" + y: "427" + displayName: "DockerEngineUT" + requirements: + - host: + node: RemoteWorkstation_1 + relationship: con_HostedOn_0 + capability: host + relationship_templates: + con_HostedOn_0: + type: tosca.relationships.HostedOn + con_HostedOn_1: + type: tosca.relationships.HostedOn -- GitLab