Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-148-extra-cli-commands cf08b4bf7 -> 57eeb7162 (forced update)
ARIA-150 Fixed simple hello-world example The simple hello-world example had a missing host node, which caused an error at service creation phase. The example now uses custom types which do not require the extra host node. Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/7a4a1dda Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/7a4a1dda Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/7a4a1dda Branch: refs/heads/ARIA-148-extra-cli-commands Commit: 7a4a1ddabadef814affb56778c7614256ca8fe00 Parents: 29bc84b Author: Ran Ziv <[email protected]> Authored: Sun Apr 23 15:39:57 2017 +0300 Committer: Ran Ziv <[email protected]> Committed: Sun Apr 23 15:39:57 2017 +0300 ---------------------------------------------------------------------- examples/hello-world/helloworld.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/7a4a1dda/examples/hello-world/helloworld.yaml ---------------------------------------------------------------------- diff --git a/examples/hello-world/helloworld.yaml b/examples/hello-world/helloworld.yaml index b6efaca..77cef30 100644 --- a/examples/hello-world/helloworld.yaml +++ b/examples/hello-world/helloworld.yaml @@ -1,18 +1,23 @@ -tosca_definitions_version: tosca_simple_profile_for_nfv_1_0 +tosca_definitions_version: tosca_simple_yaml_1_0 node_types: + web_server: + derived_from: tosca.nodes.Root + capabilities: + host: + type: tosca.capabilities.Container + web_app: derived_from: tosca.nodes.WebApplication properties: port: type: integer - default: 8080 topology_template: node_templates: web_server: - type: tosca.nodes.WebServer + type: web_server web_app: type: web_app
