tosca_definitions_version:tosca_simple_yaml_1_0imports:-indigo_custom_types:https://raw.githubusercontent.com/indigo-dc/tosca-types/k8s/custom_types.yamldescription:>Start Elasticsearch + Kibana on a Virtual Machinetopology_template:inputs:num_cpus:type:integerdescription:Number of virtual cpus for the VMdefault:2constraints:-valid_values:[2,4]mem_size:type:scalar-unit.sizedescription:Amount of memory for the VMdefault:4 GBconstraints:-valid_values:[4 GB,8 GB]es_version:type:stringdefault:7.4.1description:Elasticsearch versiones_bind_address:type:stringdefault:0.0.0.0description:Bind address for Elasticsearch servicees_password:type:stringrequired:truedescription:Password for user elastickibana_password:type:stringrequired:truedescription:Password for kibana system usernode_templates:elasticsearch:type:tosca.nodes.indigo.Elasticsearchproperties:es_version:{ get_input:es_version}bind_address:{ get_input:es_bind_address}elastic_password:{ get_input:es_password}kibana_system_password:{ get_input:kibana_password}requirements:-host:kibana_es_serverkibana:type:tosca.nodes.indigo.Kibanaproperties:kibana_version:{ get_input:es_version}elasticsearch_password:{ get_input:kibana_password}requirements:-host:kibana_es_server-dependency:elasticsearchkibana_es_server:type:tosca.nodes.indigo.Computecapabilities:endpoint:properties:network_name:PUBLICports:kibana:protocol:tcpsource:5601host:properties:num_cpus:{ get_input:num_cpus}mem_size:{ get_input:mem_size}os:properties:distribution:ubuntutype:linuxversion:16.04outputs:kibana_endpoint:value:{ concat:['http://',get_attribute:[kibana_es_server,public_address,0],':5601']}node_ip:value:{ get_attribute:[kibana_es_server,public_address,0]}node_creds:value:{ get_attribute:[kibana_es_server,endpoint,credential,0]}
2. Installation on separate servers
1
Click on the "TOSCA template" tab to see a possible solution.
tosca_definitions_version:tosca_simple_yaml_1_0imports:-indigo_custom_types:https://raw.githubusercontent.com/indigo-dc/tosca-types/k8s/custom_types.yamldescription:>Start Elasticsearch + Kibana on separate Virtual Machinestopology_template:inputs:num_cpus:type:integerdescription:Number of virtual cpus for the VMdefault:2constraints:-valid_values:[2,4]mem_size:type:scalar-unit.sizedescription:Amount of memory for the VMdefault:4 GBconstraints:-valid_values:[4 GB,8 GB]es_version:type:stringdefault:7.4.1description:Elasticsearch versiones_bind_address:type:stringdefault:0.0.0.0description:Bind address for Elasticsearch servicees_password:type:stringrequired:truedescription:Password for user elastickibana_password:type:stringrequired:truedescription:Password for kibana system usernode_templates:elasticsearch:type:tosca.nodes.indigo.Elasticsearchproperties:es_version:{ get_input:es_version}bind_address:{ get_input:es_bind_address}elastic_password:{ get_input:es_password}kibana_system_password:{ get_input:kibana_password}requirements:-host:es_serverkibana:type:tosca.nodes.indigo.Kibanaproperties:kibana_version:{ get_input:es_version}elasticsearch_password:{ get_input:kibana_password}elasticsearch_url:{ concat:['http://',{ get_attribute:[es_server,private_address,0]},":9200"]}requirements:-host:kibana_server-dependency:elasticsearches_server:type:tosca.nodes.indigo.Computecapabilities:host:properties:num_cpus:{ get_input:num_cpus}mem_size:{ get_input:mem_size}os:properties:distribution:ubuntutype:linuxversion:16.04kibana_server:type:tosca.nodes.indigo.Computecapabilities:endpoint:properties:network_name:PUBLICports:kibana:protocol:tcpsource:5601host:properties:num_cpus:{ get_input:num_cpus}mem_size:{ get_input:mem_size}os:properties:distribution:ubuntutype:linuxversion:16.04outputs:kibana_endpoint:value:{ concat:['http://',get_attribute:[kibana_server,public_address,0],':5601']}kibana_node_ip:value:{ get_attribute:[kibana_server,public_address,0]}kibana_node_creds:value:{ get_attribute:[kibana_server,endpoint,credential,0]}
Run the deployment
Choose one of the two topologies and submit the template to the Orchestrator: