Remove unused yaml files

Move unused tosca yaml files (from the spec) to their own folder.
Remove unused tosca yaml files related to heat-translator features.
Remove hot_output folder under tests/data.

Change-Id: I39e886a6b754eaa2570f6ae5a5cfe0beed74dc54
This commit is contained in:
Vahid Hashemian
2015-09-11 13:19:28 -07:00
parent 8c6baa0fed
commit 16d2c6a84c
39 changed files with 0 additions and 2524 deletions

View File

@@ -1,555 +0,0 @@
heat_template_version: 2013-05-23
description: >
This TOSCA simple profile deploys nodejs, mongodb, elasticsearch, logstash and
kibana each on a separate server with monitoring enabled for nodejs server where
a sample nodejs application is running. The rsyslog and collectd are installed
on a nodejs server.
parameters:
github_url:
type: string
description: The URL to download nodejs.
default: http://github.com/paypal/rest-api-sample-app-nodejs.git
my_cpus:
type: number
description: Number of CPUs for the server.
default: 4
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
resources:
nodejs_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: nodejs_create_config
server:
get_resource: app_server
nodejs_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: nodejs/create.sh
group: script
paypal_pizzastore_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: paypal_pizzastore_configure_config
input_values:
github_url: http://github.com/paypal/rest-api-sample-app-nodejs.git
mongodb_ip:
get_attr:
- mongo_server
- networks
- private
- 0
server:
get_resource: app_server
depends_on:
- nodejs_create_deploy
- mongo_db_create_deploy
paypal_pizzastore_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: nodejs/config.sh
group: script
paypal_pizzastore_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: paypal_pizzastore_start_config
server:
get_resource: app_server
depends_on:
- paypal_pizzastore_configure_deploy
paypal_pizzastore_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: nodejs/start.sh
group: script
mongo_dbms_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_dbms_create_config
server:
get_resource: mongo_server
mongo_dbms_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/create.sh
group: script
mongo_dbms_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_dbms_configure_config
input_values:
mongodb_ip:
get_attr:
- mongo_server
- networks
- private
- 0
server:
get_resource: mongo_server
depends_on:
- mongo_dbms_create_deploy
mongo_dbms_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/config.sh
group: script
mongo_dbms_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_dbms_start_config
server:
get_resource: mongo_server
depends_on:
- mongo_dbms_configure_deploy
mongo_dbms_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/start.sh
group: script
mongo_db_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_db_create_config
server:
get_resource: mongo_server
depends_on:
- mongo_dbms_start_deploy
mongo_db_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/create_database.sh
group: script
app_collectd_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_create_config
server:
get_resource: app_server
depends_on:
- logstash_start_deploy
app_collectd_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: collectd/create.sh
group: script
app_collectd_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_configure_config
input_values:
logstash_ip:
get_attr:
- logstash_server
- networks
- private
- 0
server:
get_resource: app_server
depends_on:
- app_collectd_create_deploy
app_collectd_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: collectd/config.py
group: script
app_collectd_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_start_config
server:
get_resource: app_server
depends_on:
- app_collectd_configure_deploy
app_collectd_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: collectd/start.sh
group: script
app_collectd_logstash_connect_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_logstash_connect_config
server:
get_resource: logstash_server
depends_on:
- logstash_create_deploy
app_collectd_logstash_connect_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/configure_collectd.py
group: script
app_rsyslog_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_rsyslog_create_config
server:
get_resource: app_server
depends_on:
- logstash_start_deploy
app_rsyslog_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: rsyslog/create.sh
group: script
app_rsyslog_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_rsyslog_start_config
server:
get_resource: app_server
depends_on:
- app_rsyslog_configure_deploy
app_rsyslog_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: rsyslog/start.sh
group: script
app_rsyslog_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_rsyslog_configure_config
input_values:
logstash_ip:
get_attr:
- logstash_server
- networks
- private
- 0
server:
get_resource: app_server
depends_on:
- app_rsyslog_create_deploy
app_rsyslog_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: rsyslog/config.sh
group: script
app_rsyslog_logstash_connect_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_rsyslog_logstash_connect_config
server:
get_resource: logstash_server
depends_on:
- logstash_create_deploy
app_rsyslog_logstash_connect_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/configure_rsyslog.py
group: script
logstash_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: logstash_create_config
server:
get_resource: logstash_server
depends_on:
- elasticsearch_start_deploy
logstash_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/create.sh
group: script
logstash_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: logstash_start_config
server:
get_resource: logstash_server
depends_on:
- logstash_create_deploy
logstash_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/start.sh
group: script
logstash_elasticsearch_connect_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: logstash_elasticsearch_connect_config
input_values:
elasticsearch_ip:
get_attr:
- elasticsearch_server
- networks
- private
- 0
server:
get_resource: logstash_server
depends_on:
- logstash_create_deploy
logstash_elasticsearch_connect_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/configure_elasticsearch.py
group: script
elasticsearch_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: elasticsearch_create_config
server:
get_resource: elasticsearch_server
elasticsearch_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: elasticsearch/create.sh
group: script
elasticsearch_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: elasticsearch_start_config
server:
get_resource: elasticsearch_server
depends_on:
- elasticsearch_create_deploy
elasticsearch_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: elasticsearch/start.sh
group: script
kibana_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: kibana_create_config
server:
get_resource: kibana_server
depends_on:
- elasticsearch_start_deploy
kibana_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: kibana/create.sh
group: script
kibana_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: kibana_configure_config
input_values:
elasticsearch_ip:
get_attr:
- elasticsearch_server
- networks
- private
- 0
kibana_ip:
get_attr:
- kibana_server
- networks
- private
- 0
server:
get_resource: kibana_server
depends_on:
- kibana_create_deploy
kibana_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: kibana/config.sh
group: script
kibana_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: kibana_start_config
server:
get_resource: kibana_server
depends_on:
- kibana_configure_deploy
kibana_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: kibana/start.sh
group: script
app_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
mongo_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
logstash_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
elasticsearch_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
kibana_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
outputs:
nodejs_url:
description: URL for the nodejs server, http://<IP>:3000
value:
get_attr:
- app_server
- networks
- private
- 0
mongodb_url:
description: URL for the mongodb server.
value:
get_attr:
- mongo_server
- networks
- private
- 0
logstash_url:
description: URL for the logstash server.
value:
get_attr:
- logstash_server
- networks
- private
- 0
elasticsearch_url:
description: URL for the elasticsearch server.
value:
get_attr:
- elasticsearch_server
- networks
- private
- 0
kibana_url:
description: URL for the kibana server.
value:
get_attr:
- kibana_server
- networks
- private
- 0

View File

@@ -1,137 +0,0 @@
heat_template_version: 2013-05-23
description: >
A template to test host assignment for translated hot resources.
It makes sure if a resource depends on multiple hosts only the
one with the "HostedOn" relationship is picked as the host. In
this template, the translated resource 'app_collectd_create_deploy'
would depend on 'logstash_server' and 'app_server'. But it would
have "HostedOn" relationship with 'app_server', and that server
would be its host.
parameters: {}
resources:
app_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
logstash_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
app_collectd_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: collectd/create.sh
group: script
app_collectd_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_create_config
server:
get_resource: app_server
depends_on:
- logstash_start_deploy
app_collectd_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: collectd/config.py
group: script
app_collectd_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_configure_config
input_values:
logstash_ip:
get_attr:
- logstash_server
- networks
- private
- 0
server:
get_resource: app_server
depends_on:
- app_collectd_create_deploy
app_collectd_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: collectd/start.sh
group: script
app_collectd_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_start_config
server:
get_resource: app_server
depends_on:
- app_collectd_configure_deploy
logstash_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/create.sh
group: script
logstash_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: logstash_create_config
server:
get_resource: logstash_server
logstash_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/start.sh
group: script
logstash_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: logstash_start_config
server:
get_resource: logstash_server
depends_on:
- logstash_create_deploy
app_collectd_logstash_connect_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: logstash/configure_collectd.py
group: script
app_collectd_logstash_connect_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: app_collectd_logstash_connect_config
server:
get_resource: logstash_server
depends_on:
- logstash_create_deploy
outputs: {}

View File

@@ -1,187 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with nodejs and mongodb.
parameters:
github_url:
type: string
description: The URL to download nodejs.
default: http://github.com/paypal/rest-api-sample-app-nodejs.git
my_cpus:
type: number
description: Number of CPUs for the server.
default: 4
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
resources:
mongo_dbms_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_dbms_create_config
server:
get_resource: mongo_server
mongo_dbms_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/create.sh
group: script
mongo_dbms_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_dbms_configure_config
input_values:
mongodb_ip:
get_attr:
- mongo_server
- networks
- private
- 0
server:
get_resource: mongo_server
depends_on:
- mongo_dbms_create_deploy
mongo_dbms_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/config.sh
group: script
mongo_dbms_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_dbms_start_config
server:
get_resource: mongo_server
depends_on:
- mongo_dbms_configure_deploy
mongo_dbms_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/start.sh
group: script
mongo_db_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mongo_db_create_config
server:
get_resource: mongo_server
depends_on:
- mongo_dbms_start_deploy
mongo_db_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mongodb/create_database.sh
group: script
nodejs_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: nodejs_create_config
server:
get_resource: app_server
nodejs_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: nodejs/create.sh
group: script
paypal_pizzastore_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: paypal_pizzastore_configure_config
input_values:
github_url: http://github.com/paypal/rest-api-sample-app-nodejs.git
mongodb_ip:
get_attr:
- mongo_server
- networks
- private
- 0
server:
get_resource: app_server
depends_on:
- mongo_db_create_deploy
- nodejs_create_deploy
paypal_pizzastore_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: nodejs/config.sh
group: script
paypal_pizzastore_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: paypal_pizzastore_start_config
server:
get_resource: app_server
depends_on:
- paypal_pizzastore_configure_deploy
paypal_pizzastore_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: nodejs/start.sh
group: script
mongo_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
app_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
outputs:
mongodb_url:
description: URL for the mongodb server.
value:
get_attr:
- mongo_server
- networks
- private
- 0
nodejs_url:
description: URL for the nodejs server, http://<IP>:3000
value:
get_attr:
- app_server
- networks
- private
- 0

View File

@@ -1,202 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with wordpress, web server and mysql on the same server.
parameters:
db_name:
type: string
description: The name of the database.
default: wordpress
db_user:
type: string
description: The user name of the DB user.
default: wp_user
db_pwd:
type: string
description: The WordPress database admin account password.
default: wp_pass
cpus:
type: number
description: Number of CPUs for the server.
default: 8
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
db_root_pwd:
type: string
description: Root password for MySQL.
default: passw0rd
db_port:
type: number
description: Port for the MySQL database.
default: 3366
resources:
mysql_dbms_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mysql/mysql_dbms_install.sh
group: script
mysql_dbms_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_dbms_create_config
input_values:
db_root_password: passw0rd
server:
get_resource: server
mysql_dbms_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mysql/mysql_dbms_start.sh
group: script
mysql_dbms_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_dbms_start_config
server:
get_resource: server
depends_on:
- mysql_dbms_configure_deploy
mysql_dbms_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mysql/mysql_dbms_configure.sh
group: script
mysql_dbms_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_dbms_configure_config
input_values:
db_port: 3366
server:
get_resource: server
depends_on:
- mysql_dbms_create_deploy
mysql_database_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: mysql/mysql_database_configure.sh
group: script
mysql_database_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_database_configure_config
input_values:
db_name: wordpress
db_password: wp_pass
db_root_password: passw0rd
db_user: wp_user
server:
get_resource: server
depends_on:
- mysql_dbms_start_deploy
webserver_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: webserver/webserver_install.sh
group: script
webserver_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: webserver_create_config
server:
get_resource: server
webserver_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: webserver/webserver_start.sh
group: script
webserver_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: webserver_start_config
server:
get_resource: server
depends_on:
- webserver_create_deploy
wordpress_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: wordpress/wordpress_install.sh
group: script
wordpress_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: wordpress_create_config
server:
get_resource: server
depends_on:
- webserver_start_deploy
- mysql_database_configure_deploy
wordpress_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: wordpress/wordpress_configure.sh
group: script
wordpress_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: wordpress_configure_config
input_values:
wp_db_name: wordpress
wp_db_password: wp_pass
wp_db_user: wp_user
server:
get_resource: server
depends_on:
- wordpress_create_deploy
server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
outputs:
website_url:
description: URL for Wordpress wiki.
value:
get_attr:
- server
- networks
- private
- 0

View File

@@ -1,21 +0,0 @@
heat_template_version: 2013-05-23
description: >
Tosca template for creating an object storage service.
parameters:
objectstore_name:
type: string
default: myobjstore
resources:
obj_store_server:
type: OS::Swift::Container
properties:
X-Container-Meta:
Quota-Bytes: 1000000000
X-Container-Read: ".r:*"
name:
get_param: objectstore_name
outputs: {}

View File

@@ -1,37 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile that just defines a single compute instance and selects a
(guest) host Operating System from the Compute node's properties. Note, this
example does not include default values on inputs properties.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: ubuntu-12.04-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
outputs:
private_ip:
description: The private IP address of the deployed server instance.
value:
get_attr:
- my_server
- networks
- private
- 0

View File

@@ -1,59 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with a software component.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
resources:
server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
my_software_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: my_software_create_config
server:
get_resource: server
my_software_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: software_install.sh
group: script
my_software_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: my_software_start_config
server:
get_resource: server
depends_on:
- my_software_create_deploy
my_software_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: software_start.sh
group: script
outputs: {}

View File

@@ -1,15 +0,0 @@
heat_template_version: 2013-05-23
description: >
Template for deploying a single server with predefined properties.
parameters: {}
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: rhel-6.5-test-image
key_name: userkey
user_data_format: SOFTWARE_CONFIG
outputs: {}

View File

@@ -1,100 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with a web application.
parameters:
context_root:
type: string
description: Context root for installing the application.
default: my_web_app
cpus:
type: number
description: Number of CPUs for the server.
default: 2
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
resources:
server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: ubuntu-software-config-os-init
key_name: userkey
user_data_format: SOFTWARE_CONFIG
web_server_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: web_server_create_config
server:
get_resource: server
web_server_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: web_server_install.sh
group: script
web_server_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: web_server_start_config
server:
get_resource: server
depends_on:
- web_server_create_deploy
web_server_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: web_server_start.sh
group: script
web_app_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: web_app_create_config
input_values:
context_root: app
server:
get_resource: server
depends_on:
- web_server_start_deploy
web_app_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: web_app_install.sh
group: script
web_app_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: web_app_start_config
server:
get_resource: server
depends_on:
- web_app_create_deploy
web_app_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: web_app_start.sh
group: script
outputs: {}

View File

@@ -1,45 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with 1 server bound to a new network
parameters:
network_name:
type: string
description: Network name
default: private_net
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: cirros-0.3.2-x86_64-uec
key_name: userkey
networks:
- port: { get_resource: my_port }
user_data_format: SOFTWARE_CONFIG
my_network:
type: OS::Neutron::Net
properties:
name:
get_param: network_name
my_network_subnet:
type: OS::Neutron::Subnet
properties:
allocation_pools:
- end: 192.168.0.200
start: 192.168.0.50
cidr: 192.168.0.0/24
gateway_ip: 192.168.0.1
ip_version: 4
network: { get_resource: my_network }
my_port:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network }
outputs: {}

View File

@@ -1,72 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with 1 server bound to 3 networks
parameters: {}
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: cirros-0.3.2-x86_64-uec
key_name: userkey
networks:
- port: { get_resource: my_port1 }
- port: { get_resource: my_port2 }
- port: { get_resource: my_port3 }
user_data_format: SOFTWARE_CONFIG
my_network1:
type: OS::Neutron::Net
properties:
name: net1
my_network2:
type: OS::Neutron::Net
properties:
name: net2
my_network3:
type: OS::Neutron::Net
properties:
name: net3
my_network1_subnet:
type: OS::Neutron::Subnet
properties:
cidr: 192.168.1.0/24
ip_version: 4
network: { get_resource: my_network1 }
my_network2_subnet:
type: OS::Neutron::Subnet
properties:
cidr: 192.168.2.0/24
ip_version: 4
network: { get_resource: my_network2 }
my_network3_subnet:
type: OS::Neutron::Subnet
properties:
cidr: 192.168.3.0/24
ip_version: 4
network: { get_resource: my_network3 }
my_port1:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network1 }
my_port2:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network2 }
my_port3:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network3 }
outputs: {}

View File

@@ -1,28 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with 1 server bound to an existing network
parameters:
network_name:
type: string
description: Network name
default: private_net
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: cirros-0.3.2-x86_64-uec
key_name: userkey
networks:
- port: { get_resource: my_port }
user_data_format: SOFTWARE_CONFIG
my_port:
type: OS::Neutron::Port
properties:
network: {get_param: network_name}
outputs: {}

View File

@@ -1,74 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with 2 servers bound to the 1 network
parameters:
network_name:
type: string
description: Network name
default: my_private_net
network_cidr:
type: string
description: CIDR for the network
default: 10.0.0.0/24
network_start_ip:
type: string
description: Start IP for the allocation pool
default: 10.0.0.100
network_end_ip:
type: string
description: End IP for the allocation pool
default: 10.0.0.150
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: cirros-0.3.2-x86_64-uec
key_name: userkey
networks:
- port: { get_resource: my_port }
user_data_format: SOFTWARE_CONFIG
my_server2:
type: OS::Nova::Server
properties:
flavor: m1.small
image: cirros-0.3.2-x86_64-uec
key_name: userkey
networks:
- port: { get_resource: my_port2 }
user_data_format: SOFTWARE_CONFIG
my_network:
type: OS::Neutron::Net
properties:
name:
get_param: network_name
my_network_subnet:
type: OS::Neutron::Subnet
properties:
allocation_pools:
- end:
get_param: network_end_ip
start:
get_param: network_start_ip
cidr:
get_param: network_cidr
ip_version: 4
network: { get_resource: my_network }
my_port:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network }
my_port2:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network }
outputs: {}

View File

@@ -1,72 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with server and attached block storage using the normative
AttachesTo Relationship Type.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_location:
type: string
description: Block storage mount point (filesystem path).
default: /dev/vdc
storage_size:
type: number
description: Size of the storage to be created.
default: 2
storage_snapshot_id:
type: string
description: "Optional identifier for an existing snapshot to use when creating storage."
default: ssid
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
attachesto_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_server
mountpoint:
get_param: storage_location
volume_id:
get_resource: my_storage
outputs:
private_ip:
description: The private IP address of the newly created compute instance.
value:
get_attr:
- my_server
- networks
- private
- 0
volume_id:
description: The volume id of the block storage instance.
value:
get_resource: my_storage

View File

@@ -1,94 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with a Single Block Storage node shared by 2-Tier
Application with custom AttachesTo Type and implied relationships.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_size:
type: number
description: Size of the storage to be created.
default: 1
storage_snapshot_id:
type: string
description: Optional identifier for an existing snapshot to use when creating storage.
default: ssid
resources:
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
my_web_app_tier_1:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
myattachesto_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_1
mountpoint: /default_location
volume_id:
get_resource: my_storage
my_web_app_tier_2:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
myattachesto_2:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_2
mountpoint: /some_other_data_location
volume_id:
get_resource: my_storage
outputs:
private_ip_1:
description: The private IP address of the applications first tier.
value:
get_attr:
- my_web_app_tier_1
- networks
- private
- 0
private_ip_2:
description: The private IP address of the applications second tier.
value:
get_attr:
- my_web_app_tier_2
- networks
- private
- 0
volume_id:
description: The volume id of the block storage instance.
value:
get_resource: my_storage

View File

@@ -1,94 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with a Single Block Storage node shared by 2-Tier
Application with custom AttachesTo Type and implied relationships.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_size:
type: number
description: Size of the storage to be created.
default: 1
storage_snapshot_id:
type: string
description: Optional identifier for an existing snapshot to use when creating storage.
default: ssid
resources:
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
my_web_app_tier_1:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
myattachesto_2:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_1
mountpoint: /default_location
volume_id:
get_resource: my_storage
my_web_app_tier_2:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
myattachesto_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_2
mountpoint: /some_other_data_location
volume_id:
get_resource: my_storage
outputs:
private_ip_1:
description: The private IP address of the applications first tier.
value:
get_attr:
- my_web_app_tier_1
- networks
- private
- 0
private_ip_2:
description: The private IP address of the applications second tier.
value:
get_attr:
- my_web_app_tier_2
- networks
- private
- 0
volume_id:
description: The volume id of the block storage instance.
value:
get_resource: my_storage

View File

@@ -1,98 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with a single Block Storage node shared by 2-Tier
Application with custom AttachesTo Type and explicit Relationship Templates.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_location:
type: string
description: Block storage mount point (filesystem path).
default: /dev/vdc
storage_size:
type: number
description: Size of the storage to be created.
default: 1
storage_snapshot_id:
type: string
description: Optional identifier for an existing snapshot to use when creating storage.
default: ssid
resources:
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
my_web_app_tier_1:
type: OS::Nova::Server
properties:
flavor: m1.small
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
storage_attachesto_1_2:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_1
mountpoint: /my_data_location
volume_id:
get_resource: my_storage
my_web_app_tier_2:
type: OS::Nova::Server
properties:
flavor: m1.small
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
storage_attachesto_2_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_2
mountpoint: /some_other_data_location
volume_id:
get_resource: my_storage
outputs:
private_ip_1:
description: The private IP address of the applications first tier.
value:
get_attr:
- my_web_app_tier_1
- networks
- private
- 0
private_ip_2:
description: The private IP address of the applications second tier.
value:
get_attr:
- my_web_app_tier_2
- networks
- private
- 0
volume_id:
description: The volume id of the block storage instance.
value:
get_resource: my_storage

View File

@@ -1,98 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with a single Block Storage node shared by 2-Tier
Application with custom AttachesTo Type and explicit Relationship Templates.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_location:
type: string
description: Block storage mount point (filesystem path).
default: /dev/vdc
storage_size:
type: number
description: Size of the storage to be created.
default: 1
storage_snapshot_id:
type: string
description: Optional identifier for an existing snapshot to use when creating storage.
default: ssid
resources:
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
my_web_app_tier_1:
type: OS::Nova::Server
properties:
flavor: m1.small
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
storage_attachesto_1_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_1
mountpoint: /my_data_location
volume_id:
get_resource: my_storage
my_web_app_tier_2:
type: OS::Nova::Server
properties:
flavor: m1.small
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
storage_attachesto_2_2:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_web_app_tier_2
mountpoint: /some_other_data_location
volume_id:
get_resource: my_storage
outputs:
private_ip_1:
description: The private IP address of the applications first tier.
value:
get_attr:
- my_web_app_tier_1
- networks
- private
- 0
private_ip_2:
description: The private IP address of the applications second tier.
value:
get_attr:
- my_web_app_tier_2
- networks
- private
- 0
volume_id:
description: The volume id of the block storage instance.
value:
get_resource: my_storage

View File

@@ -1,72 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with server and attached block storage using a custom
AttachesTo Relationship Type.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_location:
type: string
description: Block storage mount point (filesystem path).
default: /dev/vdc
storage_size:
type: number
description: Size of the storage to be created.
default: 1
storage_snapshot_id:
type: string
description: Optional identifier for an existing snapshot to use when creating storage.
default: ssid
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
mycustomattachesto_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_server
volume_id:
get_resource: my_storage
mountpoint:
get_param: storage_location
outputs:
private_ip:
description: The private IP address of the newly created compute instance.
value:
get_attr:
- my_server
- networks
- private
- 0
volume_id:
description: The volume id of the block storage instance.
value:
get_resource: my_storage

View File

@@ -1,66 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with server and attached block storage using a named
Relationship Template for the storage attachment.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_location:
type: string
description: Block storage mount point (filesystem path).
default: /dev/vdc
storage_size:
type: number
description: Size of the storage to be created.
default: 1
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
storage_attachment_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_server
mountpoint:
get_input: storage_location
volume_id:
get_resource: my_storage
outputs:
private_ip:
description: The private IP address of the newly created compute instance.
value:
get_attr:
- my_server
- networks
- private
- 0
volume_id:
description: The volume id of the block storage instance.
value:
get_resource: my_storage

View File

@@ -1,111 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with 2 servers each with different attached block storage.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_location:
type: string
description: Block storage mount point (filesystem path).
default: /dev/vdc
storage_size:
type: number
description: Size of the storage to be created.
default: 1
storage_snapshot_id:
type: string
description: Optional identifier for an existing snapshot to use when creating storage.
default: ssid
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
attachesto_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_server
mountpoint:
get_param: storage_location
volume_id:
get_resource: my_storage
my_server2:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage2
my_storage2:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
attachesto_2:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_server2
mountpoint:
get_param: storage_location
volume_id:
get_resource: my_storage2
outputs:
server_ip_1:
description: The private IP address of the applications first server.
value:
get_attr:
- my_server
- networks
- private
- 0
server_ip_2:
description: The private IP address of the applications second server.
value:
get_attr:
- my_server2
- networks
- private
- 0
volume_id_1:
description: The volume id of the first block storage instance.
value:
get_resource: my_storage
volume_id_2:
description: The volume id of the second block storage instance.
value:
get_resource: my_storage2

View File

@@ -1,111 +0,0 @@
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with 2 servers each with different attached block storage.
parameters:
cpus:
type: number
description: Number of CPUs for the server.
default: 1
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
storage_location:
type: string
description: Block storage mount point (filesystem path).
default: /dev/vdc
storage_size:
type: number
description: Size of the storage to be created.
default: 1
storage_snapshot_id:
type: string
description: Optional identifier for an existing snapshot to use when creating storage.
default: ssid
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage
my_storage:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
attachesto_2:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_server
mountpoint:
get_param: storage_location
volume_id:
get_resource: my_storage
my_server2:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: fedora-amd64-heat-config
key_name: userkey
user_data_format: SOFTWARE_CONFIG
depends_on:
- my_storage2
my_storage2:
type: OS::Cinder::Volume
properties:
size:
get_param: storage_size
snapshot_id:
get_param: storage_snapshot_id
attachesto_1:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid:
get_resource: my_server2
mountpoint:
get_param: storage_location
volume_id:
get_resource: my_storage2
outputs:
server_ip_1:
description: The private IP address of the applications first server.
value:
get_attr:
- my_server
- networks
- private
- 0
server_ip_2:
description: The private IP address of the applications second server.
value:
get_attr:
- my_server2
- networks
- private
- 0
volume_id_1:
description: The volume id of the first block storage instance.
value:
get_resource: my_storage
volume_id_2:
description: The volume id of the second block storage instance.
value:
get_resource: my_storage2

View File

@@ -1,80 +0,0 @@
tosca_definitions_version: tosca_simple_yaml_1_0
description: >
A template to test host assignment for translated hot resources.
It makes sure if a resource depends on multiple hosts only the
one with the "HostedOn" relationship is picked as the host. In
this template, the translated resource 'app_collectd_create_deploy'
would depend on 'logstash_server' and 'app_server'. But it would
have "HostedOn" relationship with 'app_server', and that server
would be its host.
imports:
- custom_types/logstash.yaml
- custom_types/collectd.yaml
- custom_types/rsyslog.yaml
- custom_types/elasticsearch.yaml
dsl_definitions:
host_capabilities: &host_capabilities
# compute properties (flavor)
disk_size: 10 GB
num_cpus: 1
mem_size: 4096 MB
os_capabilities: &os_capabilities
architecture: x86_64
type: Linux
distribution: Ubuntu
version: 14.04
topology_template:
node_templates:
app_collectd:
type: tosca.nodes.SoftwareComponent.Collectd
requirements:
- host:
node: app_server
- log_endpoint:
node: logstash
capability: log_endpoint
relationship:
type: tosca.relationships.ConnectsTo
interfaces:
Configure:
pre_configure_target:
implementation: logstash/configure_collectd.py
interfaces:
Standard:
create: collectd/create.sh
configure:
implementation: collectd/config.py
inputs:
logstash_ip: { get_attribute: [logstash_server, private_address] }
start: collectd/start.sh
logstash:
type: tosca.nodes.SoftwareComponent.Logstash
requirements:
- host:
node: logstash_server
interfaces:
Standard:
create: logstash/create.sh
start: logstash/start.sh
app_server:
type: tosca.nodes.Compute
capabilities:
os:
properties: *os_capabilities
host:
properties: *host_capabilities
logstash_server:
type: tosca.nodes.Compute
capabilities:
os:
properties: *os_capabilities
host:
properties: *host_capabilities

View File

@@ -1,40 +0,0 @@
tosca_definitions_version: tosca_simple_yaml_1_0
description: >
TOSCA simple profile with a software component.
topology_template:
inputs:
cpus:
type: integer
description: Number of CPUs for the server.
constraints:
- valid_values: [ 1, 2, 4, 8 ]
default: 1
node_templates:
my_software:
type: tosca.nodes.SoftwareComponent
properties:
component_version: 1.0
requirements:
- host: server
interfaces:
Standard:
create: software_install.sh
start: software_start.sh
server:
type: tosca.nodes.Compute
capabilities:
host:
properties:
disk_size: 10 GB
num_cpus: { get_input: cpus }
mem_size: 1024 MB
os:
properties:
architecture: x86_64
type: Linux
distribution: Ubuntu
version: 14.04

View File

@@ -1,56 +0,0 @@
tosca_definitions_version: tosca_simple_yaml_1_0
description: >
TOSCA simple profile with a web application.
topology_template:
inputs:
cpus:
type: integer
description: Number of CPUs for the server.
constraints:
- valid_values: [ 1, 2, 4, 8 ]
default: 1
context_root:
type: string
description: Context root for installing the application.
default: app
node_templates:
web_app:
type: tosca.nodes.WebApplication
properties:
context_root: { get_input: context_root }
requirements:
- host: web_server
interfaces:
Standard:
create:
implementation: web_app_install.sh
inputs:
context_root: { get_input: context_root }
start: web_app_start.sh
web_server:
type: tosca.nodes.WebServer
requirements:
- host: server
interfaces:
Standard:
create: web_server_install.sh
start: web_server_start.sh
server:
type: tosca.nodes.Compute
capabilities:
host:
properties:
disk_size: 10 GB
num_cpus: { get_input: cpus }
mem_size: 1024 MB
os:
properties:
architecture: x86_64
type: Linux
distribution: Ubuntu
version: 14.04