Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. heat_template_version: 2013-05-23
  2.  
  3. description: >
  4. Created 4/20/17 by aa@gmail.com. For Cloud admin@MSS Adaptive Security
  5.  
  6. parameters:
  7. flavor:
  8. type: string
  9. description: 'Flavor to be used for compute instance'
  10. key_name:
  11. type: string
  12. description: 'For most clouds, the name of the key-pair to be used for the compute instance; for VMware clouds, the contents of the public SSH key for the compute instance'
  13. availability_zone1:
  14. type: string
  15. description: 'Name of availability zone in which to create the instance'
  16. default: 'nova'
  17. network-id__for__Itaas_testing:
  18. type: string
  19. description: 'Generated to reference ''Itaas_testing'' network.'
  20. default: 'vpc-f3f24490'
  21. subnet_id_subnet-faf1b19a:
  22. type: string
  23. description: 'Generated to reference subnet ''itaas_Private subnet''.'
  24. default: 'subnet-faf1b19a'
  25. parameter_groups:
  26. - { label: 'Image Parameters', parameters: [flavor, key_name] }
  27. - { label: 'Network Parameters', parameters: [availability_zone1, network-id__for__Itaas_testing, subnet_id_subnet-faf1b19a] }
  28. resources:
  29. ## REFERENCE {"Itaas_testing":{"type": "OS::Neutron::Net", "properties": {"network_id": "vpc-f3f24490", "external":"false", "subnets": [{"cidr":"10.0.0.0/24","availability_zone":"us-west-1a","name":"itaas_Public subnet","id":"subnet-4af4b42a"},{"cidr":"10.0.4.0/28","availability_zone":"us-west-1a","name":"itaas_Private subnet","id":"subnet-faf1b19b"}] }}}
  30.  
  31. RHEL-7_0_HVM_GA-20141017-x86_64-1-Hourly2-GP2:
  32. type: OS::Nova::Server
  33. properties:
  34. networks:
  35. - port: { get_resource: RHEL-7_0_HVM_GA-20141017-x86_64-1-Hourly2-GP2__to__Itaas_testing__port }
  36. name: "RHEL-7_0_HVM_GA-20141017-x86_64-1-Hourly2-GP2"
  37. image: "ami-33cdd876" # RHEL-7.0_HVM_GA-20141017-x86_64-1-Hourly2-GP2
  38. flavor: { get_param: flavor }
  39. key_name: { get_param: key_name }
  40. availability_zone: { get_param: availability_zone1 }
  41. metadata:
  42. "__os_type__" : "Linux"
  43. user_data: https://raw.githubusercontent.com/AnishAnil/Learn-git/master/test.sh
  44.  
  45. RHEL-7_0_HVM_GA-20141017-x86_64-1-Hourly2-GP2__to__Itaas_testing__port:
  46. type: OS::Neutron::Port
  47. properties:
  48. security_groups:
  49. - sg-1869137f # sg-1869137f(itaas_testing_security_group_any_any_any)
  50. network_id: { get_param: network-id__for__Itaas_testing }
  51. replacement_policy: AUTO #TODO remove this if using HEAT version Icehouse!
  52. fixed_ips:
  53. - subnet: { get_param: subnet_id_subnet-faf1b19e }
  54.  
  55. outputs:
  56. blueprint_url:
  57. description: Blueprint Origin URL
  58. value: https://ABCD:8443/landscaper/view/projects?open=a%40gmail.com_8caf420f_f24a_4c4d_83f8_cb9835d7b734-OrionContent/default/Adaptive_Security/ITSAAS_Baston.yml
  59.  
  60. #!/bin/sh
  61. sudo mkdir /tmp/A1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement