cloudify-cosmo / cloudify-nodecellar-example

A sample Cloudify 3 application consisted of a nodejs server and mongodb database.
Apache License 2.0
18 stars 46 forks source link

1st time use vsphere-blueprint.yaml #118

Closed yishaihl closed 3 years ago

yishaihl commented 5 years ago

Hi Guys, This is the 1st time i'm using the vsphere-plugin (also added cloudify-vsphere-plugin ver. 2.15.1) i created the following secrets for my on-prem environment as follow: Screen Shot 2019-08-27 at 12 59 57

and now i want to create my 1st blueprint - simple vm deploy from template.

i tried to use the sample vsphere-bluperint and set it to my needs without success:


tosca_definitions_version: cloudify_dsl_1_3

description: > This Blueprint installs the nodecellar application on an vsphere environment. imports:

#####################################################################################

inputs section allows the user to use same

blueprint for creating different deployments, each one

with its own parameters.

to specify deployment inputs run:

- cfy deployments create -b -i inputs.json

#####################################################################################

external_network: type: cloudify.vsphere.nodes.Network properties:

  connection_config:
    username: { get_secret: vsphere_username }
    password: { get_secret: vcenter_password }
    host: { get_secret: vcenter_hostname_or_ip }
    datacenter_name: { get_secret: datacenter_name }     

example_server: type: cloudify.vsphere.nodes.Server properties: networking: domain: domain.local dns_servers: ['10.0.0.215'] connected_networks:

when i'm trying to upload the blueprint i'm getting the following error:

Errors in the form Invalid blueprint - 'external_network' is not in schema. Valid schema values: ['relationships', 'inputs', 'description', 'node_types', 'imports', 'workflows', 'namespaces_mapping', 'capabilities', 'dsl_definitions', 'node_templates', 'data_types', 'outputs', 'groups', 'plugins', 'policies', 'tosca_definitions_version', 'imported_blueprints', 'policy_triggers', 'policy_types', 'metadata'] in: /opt/manager/resources/blueprint.yaml-9241d8e1-3043-4e4b-b252-1d50bb58acb5/blueprint.yaml in line: 3, column: 0 path: external_network value: {'type': 'cloudify.vsphere.nodes.Network', 'properties': {'connection_config': {'username': {'get_secret': 'vsphere_username'}, 'host': {'get_secret': 'vcenter_hostname_or_ip'}, 'password': {'get_secret': 'vcenter_password'}, 'datacenter_name': {'get_secret': 'datacenter_name'}}}}

if anyone can guide me with simple on-prem vsphere deployment and what i'm missing here i will really appreciate that.

Thanks in advance, Yishai.

yishaihl commented 3 years ago

solved