Advertisement
Guest User

Untitled

a guest
May 14th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1.  
  2. nic:
  3. type: cloudify.nodes.aws.ec2.Interface
  4. properties:
  5. client_config: *client_config
  6. resource_config:
  7. kwargs:
  8. Description: est
  9. SubnetId: { get_attribute: [ public_subnet, aws_resource_id] }
  10. Groups:
  11. - { get_attribute: [ security_group, aws_resource_id ] }
  12. relationships:
  13. - type: cloudify.relationships.depends_on
  14. target: public_subnet
  15. - type: cloudify.relationships.depends_on
  16. target: security_group
  17. - type: cloudify.relationships.depends_on
  18. target: security_group_rules
  19. interfaces:
  20. cloudify.interfaces.lifecycle:
  21. configure:
  22. inputs:
  23. resource_config: { get_property: [ SELF, resource_config, kwargs] }
  24.  
  25. cloudify_host:
  26. type: cloudify.nodes.aws.ec2.Instances
  27. properties:
  28. agent_config:
  29. install_method: none
  30. resource_config:
  31. kwargs:
  32. MinCount: 1
  33. MaxCount: 1
  34. ImageId: { get_input: ami }
  35. InstanceType: { get_input: instance_type }
  36. KeyName: { get_input: key_name }
  37. BlockDeviceMappings:
  38. - DeviceName: '/dev/sda1'
  39. Ebs:
  40. DeleteOnTermination: True
  41. Placement:
  42. AvailabilityZone: { get_input: availability_zone }
  43. UserData: { get_attribute: [ cloudify_host_cloud_config, cloud_config ] }
  44. relationships:
  45. - type: cloudify.relationships.depends_on
  46. target: cloudify_host_cloud_config
  47. - type: cloudify.relationships.depends_on
  48. target: nic
  49.  
  50.  
  51. vm_config:
  52. type: cloudify.terminal.raw
  53. interfaces:
  54. cloudify.interfaces.lifecycle:
  55. create:
  56. inputs:
  57. terminal_auth: &terminal_auth
  58. user: { get_input: test_user }
  59. password: { get_attribute: [ instanceId, aws_resource_id ] }
  60. ip: { get_attribute: [ ip, aws_resource_id ] }
  61. promt_check:
  62. - '#'
  63. calls:
  64. - action: exit
  65. start:
  66. inputs:
  67. terminal_auth: *terminal_auth
  68. calls:
  69. - template: text1.txt
  70. relationships:
  71. - type: cloudify.relationships.depends_on
  72. target: cloudify_host
  73. - type: cloudify.relationships.depends_on
  74. target: ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement