Hackpads are smart collaborative documents. .

Sharone Revah Zitzman

938 days ago
Unfiled. Edited by Sharone Revah Zitzman 938 days ago
Sharone Z Full Reference Architecture TOSCA YAML - Internet Activation Example
 
  •  
  • node_templates:
  •     management_network:
  •         type: cloudify.openstack.nodes.Network
  •         properties:
  •             use_external_resource: True
  •             resource_id: Management
  •  
  •     management_subnet:
  •         type: cloudify.openstack.nodes.Subnet
  •         properties:
  •             resource_id: Management
  •             use_external_resource: True
  •             subnet:
  •                 ip_version: 4
  •                 cidr: 10.0.1.0/24
  •         relationships:
  •             - target: management_network
  •               type: cloudify.relationships.contained_in
  •  
  •     router_inbound:
  •        type: cloudify.openstack.nodes.Network
  •        properties:
  •           use_external_resource: False
  •           resource_id: router_inbound
  •  
  •  
  •     router_subnet:
  •         type: cloudify.openstack.nodes.Subnet
  •         properties:
  •             use_external_resource: False
  •             resource_id: router_inbound-subnet
  •             subnet:
  •                 ip_version: 4
  •                 cidr: 10.0.2.0/24
  •         relationships:
  •             - target: router_inbound
  •               type: cloudify.relationships.contained_in
  •  
  •     firewall_inbound:
  •        type: cloudify.openstack.nodes.Network
  •        properties:
  •            use_external_resource: False
  •            resource_id: firewall_inbound
  •  
  •  
  •     firewall_subnet:
  •         type: cloudify.openstack.nodes.Subnet
  •         properties:
  •             resource_id: firewall_inbound_subnet
  •             use_external_resource: False
  •             subnet:
  •                 ip_version: 4
  •                 cidr: 10.0.3.0/24
  •         relationships:
  •             - target: firewall_inbound
  •               type: cloudify.relationships.contained_in
  •  
  •  
  •     firewall_outbound:
  •        type: cloudify.openstack.nodes.Network
  •        properties:
  •            use_external_resource: False
  •            resource_id: firewall_outbound
  •  
  •  
  •     firewall_out_subnet:
  •         type: cloudify.openstack.nodes.Subnet
  •         properties:
  •             resource_id: firewall_outbound_subnet
  •             use_external_resource: False
  •             subnet:
  •                 ip_version: 4
  •                 cidr: 10.0.4.0/24
  •         relationships:
  •             - target: firewall_outbound
  •               type: cloudify.relationships.contained_in
  •             - target: tenant_router
  •               type: cloudify.openstack.subnet_connected_to_router
  •  
  •     tenant_router:
  •         type: cloudify.openstack.nodes.Router
  •         properties:
  •             use_external_resource: False
  •             resource_id: tenant_internet-router
  •             router:
  •                 external_gateway_info:
  •                     network_name: public
  •  
  •     external_network:
  •         type: cloudify.openstack.nodes.Network
  •         properties:
  •             use_external_resource: true
  •             resource_id: public
  •  
  •     tenant_security_group:
  •         type: cloudify.openstack.nodes.SecurityGroup
  •         properties:
...
938 days ago
Unfiled. Edited by Sharone Revah Zitzman 938 days ago
Sharone Z Full Reference Architecture TOSCA YAML - IMS Example
  • node_templates:
  •     a_node:
  •         type: cloudify.nodes.Compute
  •         properties:
  •            install_agent: false
  •  
  •     policy_node:
  •         type: policy_node_type
  •         relationships:
  •            - target: bono_vm
  •              type: cloudify.relationships.depends_on
  •            - target: sprout_vm
  •              type: cloudify.relationships.depends_on
  •            - target: a_node
  •              type: cloudify.relationships.contained_in
  •         properties:
  •            nodes_to_monitor:
  •               - bono_vm
  •               - sprout_vm
  •  
  •     bono_ip:
  •         type: cloudify.openstack.nodes.FloatingIP
  •     ellis_ip:
  •         type: cloudify.openstack.nodes.FloatingIP
  •         
  •     bono_vm:
  •         type: cloudify.openstack.nodes.Server 
  •         properties:
  •            server: { get_input: server }
  •         relationships:
  •             -   type: cloudify.openstack.server_connected_to_floating_ip
  •                 target: bono_ip
  •             -   type: cloudify.relationships.depends_on
  •                 target: All_ports_open
  •                 
  •         interfaces:          
  •             cloudify.interfaces.monitoring_agent:
  •                install:
  •                   implementation: diamond.diamond_agent.tasks.install
  •                   inputs:
  •                      diamond_config: 
  •                         interval: 5
  •                start: diamond.diamond_agent.tasks.start
  •                stop: diamond.diamond_agent.tasks.stop
  •                uninstall: diamond.diamond_agent.tasks.uninstall
  •  
  •             cloudify.interfaces.monitoring:
  •                start:
  •                   implementation: diamond.diamond_agent.tasks.add_collectors
  •                   inputs:
  •                      collectors_config:
  •                            CPUCollector: {}
  • snmpd_configuring_node:
  •       type: SnmpdConfiguringNode
  •       relationships:
  •         - type: cloudify.relationships.contained_in
  •           target: bono_vm
  •  
  •     snmp_proxy_node:
  •       type: SNMPManagerProxy
  •       relationships:
  •        - type: cloudify.relationships.depends_on
  •          target: snmpd_configuring_node # Assure that Diamond starts after snmpd is configured
  •        - type: cloudify.relationships.monitors
  •          target: bono_vm
  •          source_interfaces:
  •            cloudify.interfaces.relationship_lifecycle:
  •              preconfigure:
  •                inputs:
  •                  oids:
  •                    1.2.826.0.1.1578918.9.2.4.1.2: requests
  •  
  •  
  •  
  •     ellis_vm:
  •         type: cloudify.openstack.nodes.Server
  •         properties:
  •            server: { get_input: server }
  •         relationships:
  •             -   type: cloudify.openstack.server_connected_to_floating_ip
  •                 target: ellis_ip
  •             -   type: cloudify.relationships.depends_on
  •                 target: All_ports_open
  •         
  •     sprout_vm:
  •         type: cloudify.openstack.nodes.Server
  •         properties:
  •            server: { get_input: server }
  •         relationships:
  •             -   type: cloudify.relationships.depends_on
  •                 target: All_ports_open
  •  
  •         interfaces:
  •             cloudify.interfaces.monitoring_agent:
  •                install:
  •                   implementation: diamond.diamond_agent.tasks.install
  •                   inputs:
  •                      diamond_config:
  •                         interval: 5
...

Contact Support



Please check out our How-to Guide and FAQ first to see if your question is already answered! :)

If you have a feature request, please add it to this pad. Thanks!


Log in