Skip to content
Snippets Groups Projects
Commit 06f61371 authored by poojara's avatar poojara
Browse files

Merge branch 'master' into 'master'

Rooparg is adding apache and nginx service templates

See merge request dehury/radon-particles!13
parents c99667ab b3e53902
No related branches found
No related tags found
No related merge requests found
This is a sample TOSCA application that starts an Nginx server on a docker node hosted in VM.
\ No newline at end of file
text/plain
\ No newline at end of file
tosca_definitions_version: tosca_simple_yaml_1_3
metadata:
targetNamespace: "radon.blueprints.examples"
topology_template:
node_templates:
containerNginx_0:
type: radon.nodes.docker.containerNginx
metadata:
x: "891"
y: "231"
displayName: "defaultNginxServer_rooparg"
properties:
container_port: 80
image_name: "nginx:1.13"
container_name: "mynginxserver"
host_port: 8082
requirements:
- host:
node: DockerEngineUT_0
relationship: con_HostedOn_1
capability: host
RemoteWorkstation_0:
type: radon.nodes.VM.RemoteWorkstation
metadata:
x: "223"
y: "232"
displayName: "myWorker_rooparg"
properties:
ssh_username: "centos"
KeyFile: "/home/ubuntu/dev-ops-2021"
external_ip: "192.168.42.199"
DockerEngineUT_0:
type: radon.nodes.docker.DockerEngineUT
metadata:
x: "557"
y: "231"
displayName: "DockerEngineUT"
requirements:
- host:
node: RemoteWorkstation_0
relationship: con_HostedOn_0
capability: host
relationship_templates:
con_HostedOn_0:
type: tosca.relationships.HostedOn
con_HostedOn_1:
type: tosca.relationships.HostedOn
This is a service template for Apache server instead of Nginx.
\ No newline at end of file
text/plain
\ No newline at end of file
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: "352"
y: "278"
displayName: "rooparg_worker_VM"
properties:
ssh_username: "centos"
KeyFile: "/home/ubuntu/dev-ops-2021"
external_ip: "192.168.42.199"
containerNginx_0:
type: radon.nodes.docker.containerNginx
metadata:
x: "966"
y: "289"
displayName: "ContainerApache"
properties:
container_port: "80"
image_name: "httpd"
container_name: "myapachecontainer"
host_port: "8083"
requirements:
- host:
node: DockerEngineUT_0
relationship: con_HostedOn_1
capability: host
DockerEngineUT_0:
type: radon.nodes.docker.DockerEngineUT
metadata:
x: "668"
y: "273"
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment