Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nic:
- type: cloudify.nodes.aws.ec2.Interface
- properties:
- client_config: *client_config
- resource_config:
- kwargs:
- Description: est
- SubnetId: { get_attribute: [ public_subnet, aws_resource_id] }
- Groups:
- - { get_attribute: [ security_group, aws_resource_id ] }
- relationships:
- - type: cloudify.relationships.depends_on
- target: public_subnet
- - type: cloudify.relationships.depends_on
- target: security_group
- - type: cloudify.relationships.depends_on
- target: security_group_rules
- interfaces:
- cloudify.interfaces.lifecycle:
- configure:
- inputs:
- resource_config: { get_property: [ SELF, resource_config, kwargs] }
- cloudify_host:
- type: cloudify.nodes.aws.ec2.Instances
- properties:
- agent_config:
- install_method: none
- resource_config:
- kwargs:
- MinCount: 1
- MaxCount: 1
- ImageId: { get_input: ami }
- InstanceType: { get_input: instance_type }
- KeyName: { get_input: key_name }
- BlockDeviceMappings:
- - DeviceName: '/dev/sda1'
- Ebs:
- DeleteOnTermination: True
- Placement:
- AvailabilityZone: { get_input: availability_zone }
- UserData: { get_attribute: [ cloudify_host_cloud_config, cloud_config ] }
- relationships:
- - type: cloudify.relationships.depends_on
- target: cloudify_host_cloud_config
- - type: cloudify.relationships.depends_on
- target: nic
- vm_config:
- type: cloudify.terminal.raw
- interfaces:
- cloudify.interfaces.lifecycle:
- create:
- inputs:
- terminal_auth: &terminal_auth
- user: { get_input: test_user }
- password: { get_attribute: [ instanceId, aws_resource_id ] }
- ip: { get_attribute: [ ip, aws_resource_id ] }
- promt_check:
- - '#'
- calls:
- - action: exit
- start:
- inputs:
- terminal_auth: *terminal_auth
- calls:
- - template: text1.txt
- relationships:
- - type: cloudify.relationships.depends_on
- target: cloudify_host
- - type: cloudify.relationships.depends_on
- target: ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement