Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 15.40 KB | None | 0 0
  1. description: |-
  2.   Fusion
  3.  
  4.  
  5. topology_template:
  6.   node_templates:
  7.     controller_box_impl_1_control_port:
  8.       properties:
  9.         ip_address: |-
  10.           10.0.0.254
  11.         order: 0
  12.       requirements:
  13.         - binding: |-
  14.             controller_box_impl_1_controller_node
  15.         - link: |-
  16.             openstack_box_impl_1_control_network
  17.         - securing: |-
  18.             openstack_box_impl_1_security_group
  19.       type: |-
  20.         orbits.nodes.network.Port
  21.  
  22.     controller_box_impl_1_controller_image:
  23.       properties:
  24.         image_format: |-
  25.           qcow2
  26.         name: |-
  27.           CentOS-Controller
  28.         path: |-
  29.           2c3f59e9-1bd1-488c-aaa6-5407e4ad096if
  30.       type: |-
  31.         orbits.nodes.SystemImage
  32.  
  33.     controller_box_impl_1_controller_node:
  34.       interfaces:
  35.         Standard:
  36.           create:
  37.       properties:
  38.         cloud_username: |-
  39.           centos
  40.         compute_stage: |-
  41.           Start
  42.         instance_type: |-
  43.           m1.xlarge
  44.         name: |-
  45.           Controller
  46.         public_key: |-
  47.           alex
  48.       requirements:
  49.         - image: |-
  50.             controller_box_impl_1_controller_image
  51.         - dependency: |-
  52.             openstack_box_impl_1_router_interface
  53.       type: |-
  54.         orbits.nodes.Compute
  55.  
  56.     controller_box_impl_1_floating_ip:
  57.       properties:
  58.         network_name: |-
  59.           ext-net
  60.       requirements:
  61.         - floatable: |-
  62.             controller_box_impl_1_control_port
  63.         - dependency: |-
  64.             openstack_box_impl_1_router_interface
  65.       type: |-
  66.         orbits.nodes.network.FloatingIP
  67.  
  68.     controller_box_impl_1_internal_port:
  69.       properties:
  70.         ip_address: |-
  71.           10.1.1.200
  72.         order: 1
  73.       requirements:
  74.         - binding: |-
  75.             controller_box_impl_1_controller_node
  76.         - link: |-
  77.             openstack_box_impl_1_internal_network
  78.         - securing: |-
  79.             openstack_box_impl_1_security_group
  80.       type: |-
  81.         orbits.nodes.network.Port
  82.  
  83.     controller_start_1_bundle:
  84.       requirements:
  85.         - host: |-
  86.             controller_box_impl_1_controller_node
  87.       type: |-
  88.         orbits.nodes.software.Bundle
  89.  
  90.     controller_start_1_software:
  91.       artifacts:
  92.         bash_functions:
  93.           type: |-
  94.             orbits.artifacts.Bash
  95.           properties:
  96.             input_path: |-
  97.               new_demo/artifacts/utils/bash_functions.sh
  98.         cloud_init:
  99.           type: |-
  100.             orbits.artifacts.Bash
  101.           properties:
  102.             input_path: |-
  103.               new_demo/artifacts/utils/cloud_init_yum.sh
  104.         configuration:
  105.           type: |-
  106.             orbits.artifacts.Bash
  107.           properties:
  108.             input_path: |-
  109.               new_demo/artifacts/controller/02-configure.sh
  110.         start:
  111.           type: |-
  112.             orbits.artifacts.Bash
  113.           properties:
  114.             input_path: |-
  115.               new_demo/artifacts/controller/03-start.sh
  116.       interfaces:
  117.         Standard:
  118.           create:
  119.             implementation:
  120.              - |-
  121.                 bash_functions
  122.               - |-
  123.                 configuration
  124.               - |-
  125.                 start
  126.               - |-
  127.                 cloud_init
  128.             inputs:
  129.               $controller_ip: |-
  130.                 10.1.1.200
  131.               $cloud_username: |-
  132.                 centos
  133.               $version: |-
  134.                 mitaka
  135.               $password: |-
  136.                 admin
  137.               $ntp_servers: ""
  138.               $floating_ip_address:
  139.                 get_attribute:
  140.                  - |-
  141.                     controller_box_impl_1_floating_ip
  142.                   - |-
  143.                     floating_ip_address
  144.               $master_ip: |-
  145.                 zk://192.168.10.122:2181,192.168.10.121:2181,192.168.10.123:2181/mesos
  146.               $provider: |-
  147.                 1
  148.               $az: |-
  149.                 1
  150.       requirements:
  151.         - bundle: |-
  152.             controller_start_1_bundle
  153.       type: |-
  154.         orbits.nodes.software.Service
  155.  
  156.     generic_box_impl_1_compute_image:
  157.       properties:
  158.         image_format: |-
  159.           qcow2
  160.         path: |-
  161.           2c3f59e9-1bd1-488c-aaa6-5407e4ad096if
  162.       type: |-
  163.         orbits.nodes.SystemImage
  164.  
  165.     generic_box_impl_1_control_port:
  166.       properties:
  167.         order: 0
  168.       requirements:
  169.         - binding: |-
  170.             kvm_node_1_compute_node
  171.         - link: |-
  172.             openstack_box_impl_1_control_network
  173.         - securing: |-
  174.             openstack_box_impl_1_security_group
  175.       type: |-
  176.         orbits.nodes.network.Port
  177.  
  178.     generic_box_impl_1_internal_port:
  179.       properties:
  180.         order: 1
  181.       requirements:
  182.         - binding: |-
  183.             kvm_node_1_compute_node
  184.         - link: |-
  185.             openstack_box_impl_1_internal_network
  186.         - securing: |-
  187.             openstack_box_impl_1_security_group
  188.       type: |-
  189.         orbits.nodes.network.Port
  190.  
  191.     generic_box_impl_2_compute_image:
  192.       properties:
  193.         image_format: |-
  194.           qcow2
  195.         path: |-
  196.           2c3f59e9-1bd1-488c-aaa6-5407e4ad096if
  197.       type: |-
  198.         orbits.nodes.SystemImage
  199.  
  200.     generic_box_impl_2_control_port:
  201.       properties:
  202.         order: 0
  203.       requirements:
  204.         - binding: |-
  205.             lxc_node_1_compute_node
  206.         - link: |-
  207.             openstack_box_impl_1_control_network
  208.         - securing: |-
  209.             openstack_box_impl_1_security_group
  210.       type: |-
  211.         orbits.nodes.network.Port
  212.  
  213.     generic_box_impl_2_internal_port:
  214.       properties:
  215.         order: 1
  216.       requirements:
  217.         - binding: |-
  218.             lxc_node_1_compute_node
  219.         - link: |-
  220.             openstack_box_impl_1_internal_network
  221.         - securing: |-
  222.             openstack_box_impl_1_security_group
  223.       type: |-
  224.         orbits.nodes.network.Port
  225.  
  226.     generic_box_impl_3_compute_image:
  227.       properties:
  228.         image_format: |-
  229.           qcow2
  230.         path: |-
  231.           2c3f59e9-1bd1-488c-aaa6-5407e4ad096if
  232.       type: |-
  233.         orbits.nodes.SystemImage
  234.  
  235.     generic_box_impl_3_control_port:
  236.       properties:
  237.         order: 0
  238.       requirements:
  239.         - binding: |-
  240.             xen_node_1_compute_node
  241.         - link: |-
  242.             openstack_box_impl_1_control_network
  243.         - securing: |-
  244.             openstack_box_impl_1_security_group
  245.       type: |-
  246.         orbits.nodes.network.Port
  247.  
  248.     generic_box_impl_3_internal_port:
  249.       properties:
  250.         order: 1
  251.       requirements:
  252.         - binding: |-
  253.             xen_node_1_compute_node
  254.         - link: |-
  255.             openstack_box_impl_1_internal_network
  256.         - securing: |-
  257.             openstack_box_impl_1_security_group
  258.       type: |-
  259.         orbits.nodes.network.Port
  260.  
  261.     kvm_install_1_bundle:
  262.       interfaces:
  263.         Standard:
  264.           create:
  265.       requirements:
  266.         - host: |-
  267.             kvm_node_1_compute_node
  268.       type: |-
  269.         orbits.nodes.software.Bundle
  270.  
  271.     kvm_install_1_software:
  272.       artifacts:
  273.         bash_functions:
  274.           type: |-
  275.             orbits.artifacts.Bash
  276.           properties:
  277.             input_path: |-
  278.               new_demo/artifacts/utils/bash_functions.sh
  279.         creation:
  280.           type: |-
  281.             orbits.artifacts.Bash
  282.           properties:
  283.             input_path: |-
  284.               new_demo/artifacts/kvm/01-install.sh
  285.         preinstall:
  286.           type: |-
  287.             orbits.artifacts.Bash
  288.           properties:
  289.             input_path: |-
  290.               new_demo/artifacts/kvm/00-preinstall.sh
  291.       interfaces:
  292.         Standard:
  293.           create:
  294.             implementation:
  295.              - |-
  296.                 bash_functions
  297.               - |-
  298.                 preinstall
  299.               - |-
  300.                 creation
  301.             inputs:
  302.               $controller_ip: |-
  303.                 10.1.1.200
  304.               $cloud_username: |-
  305.                 ubuntu
  306.               $version: |-
  307.                 mitaka
  308.               $password: |-
  309.                 admin
  310.       requirements:
  311.         - bundle: |-
  312.             kvm_install_1_bundle
  313.       type: |-
  314.         orbits.nodes.software.Service
  315.  
  316.     kvm_node_1_compute_node:
  317.       interfaces:
  318.         Standard:
  319.           create:
  320.       properties:
  321.         cloud_username: |-
  322.           ubuntu
  323.         instance_type: |-
  324.           m1.large
  325.         name: |-
  326.           KVM
  327.         public_key: |-
  328.           alex
  329.       requirements:
  330.         - image: |-
  331.             generic_box_impl_1_compute_image
  332.       type: |-
  333.         orbits.nodes.Compute
  334.  
  335.     lxc_install_1_bundle:
  336.       interfaces:
  337.         Standard:
  338.           create:
  339.       requirements:
  340.         - host: |-
  341.             lxc_node_1_compute_node
  342.       type: |-
  343.         orbits.nodes.software.Bundle
  344.  
  345.     lxc_install_1_software:
  346.       artifacts:
  347.         bash_functions:
  348.           type: |-
  349.             orbits.artifacts.Bash
  350.           properties:
  351.             input_path: |-
  352.               new_demo/artifacts/utils/bash_functions.sh
  353.         creation:
  354.           type: |-
  355.             orbits.artifacts.Bash
  356.           properties:
  357.             input_path: |-
  358.               new_demo/artifacts/lxc/01-install.sh
  359.         preinstall:
  360.           type: |-
  361.             orbits.artifacts.Bash
  362.           properties:
  363.             input_path: |-
  364.               new_demo/artifacts/lxc/00-preinstall.sh
  365.       interfaces:
  366.         Standard:
  367.           create:
  368.             implementation:
  369.              - |-
  370.                 bash_functions
  371.               - |-
  372.                 preinstall
  373.               - |-
  374.                 creation
  375.             inputs:
  376.               $controller_ip: |-
  377.                 10.1.1.200
  378.               $cloud_username: |-
  379.                 ubuntu
  380.               $version: |-
  381.                 mitaka
  382.               $password: |-
  383.                 admin
  384.       requirements:
  385.         - bundle: |-
  386.             lxc_install_1_bundle
  387.       type: |-
  388.         orbits.nodes.software.Service
  389.  
  390.     lxc_node_1_compute_node:
  391.       interfaces:
  392.         Standard:
  393.           create:
  394.       properties:
  395.         cloud_username: |-
  396.           ubuntu
  397.         compute_stage: |-
  398.           Install
  399.         instance_type: |-
  400.           m1.large
  401.         name: |-
  402.           LXC
  403.         public_key: |-
  404.           alex
  405.       requirements:
  406.         - image: |-
  407.             generic_box_impl_2_compute_image
  408.       type: |-
  409.         orbits.nodes.Compute
  410.  
  411.     openstack_box_impl_1_control_network:
  412.       properties:
  413.         cidr: |-
  414.           10.0.0.0/16
  415.         dhcp_enabled: true
  416.         dns:
  417.          - |-
  418.             172.30.1.3
  419.         end_ip: |-
  420.           10.0.0.253
  421.         gateway_ip: |-
  422.           10.0.0.1
  423.         network_name: |-
  424.           control
  425.         start_ip: |-
  426.           10.0.0.10
  427.       type: |-
  428.         orbits.nodes.network.Network
  429.  
  430.     openstack_box_impl_1_internal_network:
  431.       properties:
  432.         cidr: |-
  433.           10.1.0.0/16
  434.         dhcp_enabled: true
  435.         dns:
  436.          - |-
  437.             172.30.1.3
  438.         end_ip: |-
  439.           10.1.1.253
  440.         gateway_ip: ""
  441.         network_name: |-
  442.           internal
  443.         start_ip: |-
  444.           10.1.1.10
  445.       type: |-
  446.         orbits.nodes.network.Network
  447.  
  448.     openstack_box_impl_1_router:
  449.       properties:
  450.         external_network_name: |-
  451.           ext-net
  452.       type: |-
  453.         orbits.nodes.network.Router
  454.  
  455.     openstack_box_impl_1_router_interface:
  456.       requirements:
  457.         - router: |-
  458.             openstack_box_impl_1_router
  459.         - routable: |-
  460.             openstack_box_impl_1_control_network
  461.       type: |-
  462.         orbits.nodes.network.RouterInterface
  463.  
  464.     openstack_box_impl_1_security_group:
  465.       properties:
  466.         name: |-
  467.           secu
  468.         rules:
  469.           - remote_ip_prefix: |-
  470.               0.0.0.0/0
  471.             direction: |-
  472.               egress
  473.             protocol: |-
  474.               icmp
  475.             port_range:
  476.              - 0
  477.               - 0
  478.           - remote_ip_prefix: |-
  479.               0.0.0.0/0
  480.             direction: |-
  481.               egress
  482.             protocol: |-
  483.               47
  484.             port_range:
  485.              - 0
  486.               - 0
  487.           - remote_ip_prefix: |-
  488.               0.0.0.0/0
  489.             direction: |-
  490.               ingress
  491.             protocol: |-
  492.               47
  493.             port_range:
  494.              - 0
  495.               - 0
  496.           - remote_ip_prefix: |-
  497.               0.0.0.0/0
  498.             direction: |-
  499.               ingress
  500.             protocol: |-
  501.               icmp
  502.             port_range:
  503.              - 0
  504.               - 255
  505.           - remote_ip_prefix: |-
  506.               0.0.0.0/0
  507.             direction: |-
  508.               ingress
  509.             protocol: |-
  510.               tcp
  511.             port_range:
  512.              - 1
  513.               - 65535
  514.           - remote_ip_prefix: |-
  515.               0.0.0.0/0
  516.             direction: |-
  517.               ingress
  518.             protocol: |-
  519.               udp
  520.             port_range:
  521.              - 1
  522.               - 65535
  523.           - remote_ip_prefix: |-
  524.               0.0.0.0/0
  525.             direction: |-
  526.               egress
  527.             protocol: |-
  528.               tcp
  529.             port_range:
  530.              - 1
  531.               - 65535
  532.           - remote_ip_prefix: |-
  533.               0.0.0.0/0
  534.             direction: |-
  535.               egress
  536.             protocol: |-
  537.               udp
  538.             port_range:
  539.              - 1
  540.               - 65535
  541.       type: |-
  542.         orbits.nodes.security.SecurityGroup
  543.  
  544.     xen_install_1_bundle:
  545.       interfaces:
  546.         Standard:
  547.           create:
  548.       requirements:
  549.         - host: |-
  550.             xen_node_1_compute_node
  551.       type: |-
  552.         orbits.nodes.software.Bundle
  553.  
  554.     xen_install_1_software:
  555.       artifacts:
  556.         bash_functions:
  557.           type: |-
  558.             orbits.artifacts.Bash
  559.           properties:
  560.             input_path: |-
  561.               new_demo/artifacts/utils/bash_functions.sh
  562.         creation:
  563.           type: |-
  564.             orbits.artifacts.Bash
  565.           properties:
  566.             input_path: |-
  567.               new_demo/artifacts/xen/01-install.sh
  568.         preinstall:
  569.           type: |-
  570.             orbits.artifacts.Bash
  571.           properties:
  572.             input_path: |-
  573.               new_demo/artifacts/xen/00-preinstall.sh
  574.       interfaces:
  575.         Standard:
  576.           create:
  577.             implementation:
  578.              - |-
  579.                 bash_functions
  580.               - |-
  581.                 preinstall
  582.               - |-
  583.                 creation
  584.             inputs:
  585.               $controller_ip: |-
  586.                 10.1.1.200
  587.               $cloud_username: |-
  588.                 ubuntu
  589.               $version: |-
  590.                 mitaka
  591.               $password: |-
  592.                 admin
  593.       requirements:
  594.         - bundle: |-
  595.             xen_install_1_bundle
  596.       type: |-
  597.         orbits.nodes.software.Service
  598.  
  599.     xen_node_1_compute_node:
  600.       interfaces:
  601.         Standard:
  602.           create:
  603.       properties:
  604.         cloud_username: |-
  605.           ubuntu
  606.         compute_stage: |-
  607.           Install
  608.         instance_type: |-
  609.           m1.large
  610.         name: |-
  611.           Xen
  612.         public_key: |-
  613.           alex
  614.       requirements:
  615.         - image: |-
  616.             generic_box_impl_3_compute_image
  617.       type: |-
  618.         orbits.nodes.Compute
  619.  
  620.   outputs: {}
  621.  
  622.  
  623. tosca_definitions_version: |-
  624.   tosca_simple_yaml_1_0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement