Skip to content

Instantly share code, notes, and snippets.

@lucarin91
Created September 27, 2017 15:23
Show Gist options
  • Save lucarin91/ba04491c9c3534c1018ac6cc605fd3c8 to your computer and use it in GitHub Desktop.
Save lucarin91/ba04491c9c3534c1018ac6cc605fd3c8 to your computer and use it in GitHub Desktop.
example toskeriser
tosca_definitions_version: tosca_simple_yaml_1_0
description: "TOSCA simple profile with wordpress, web server and mysql on the same\
\ server.\n"
repositories:
docker_hub: https://registry.hub.docker.com/
imports:
- tosker: ../tosker-types.yaml
topology_template:
node_templates:
app1:
type: tosker.nodes.Software
requirements:
- host:
node_filter:
properties:
- supported_sw:
- node: 6.2.x
- ruby: 2.x
- wget: x
- os_distribution: alpine
node: my_group_container
interfaces:
Standard:
start:
implementation: get_version.sh
app2:
type: tosker.nodes.Software
requirements:
- host:
node_filter:
properties:
- supported_sw:
- node: 6.2.0
- wget: 1.x
node: my_group_container
interfaces:
Standard:
start:
implementation: get_version.sh
my_group_container:
type: tosker.nodes.Container
properties:
supported_sw:
node: 6.2.0
ash: 1.24.2
wget: 1.24.2
tar: 1.24.2
bash: 4.3.42
ruby: 2.3.1
httpd: 1.24.2
npm: 3.8.9
git: 2.8.3
erl: '2'
unzip: 1.24.2
os_distribution: Alpine Linux v3.4
artifacts:
my_image:
file: jekyll/jekyll:3.1.6
type: tosker.artifacts.Image
repository: docker_hub
groups:
my_group:
type: tosker.groups.DeploymentUnit
members: [app1, app2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment