Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 44edd15

Browse files
author
earthmant
committed
Merge branch '2.7.1-build'
2 parents 3058b1e + bc84f27 commit 44edd15

File tree

6 files changed

+24
-8
lines changed

6 files changed

+24
-8
lines changed

CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.7.1:
2+
- Remove tagging for EIP as it is not supported.
3+
- Add use_ipv6_ip property to compute.
14
2.7.0: Add Tag property/runtime property/operation input for EC2 resource node templates (without the previously only available Tagging node type): Customer Gateway, Volumes, Elastic IPs, Elastic Network Interfaces, Instances, Internet Gateways, Keypairs, NAT Gateways, Network ACLs, Route Tables, Security Groups, Subnets, VPCs, VPC Peerings, and VPN Gateways.
25
2.6.0:
36
- Add Modify VPC Attribute

cloudify_awssdk/ec2/resources/elasticip.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def prepare(ctx, resource_config, **_):
105105

106106

107107
@decorators.aws_resource(EC2ElasticIP, RESOURCE_TYPE)
108-
@decorators.tag_resources
109108
def create(ctx, iface, resource_config, **_):
110109
"""Creates an AWS EC2 ElasticIP"""
111110

@@ -126,7 +125,6 @@ def create(ctx, iface, resource_config, **_):
126125

127126
@decorators.aws_resource(EC2ElasticIP, RESOURCE_TYPE,
128127
ignore_properties=True)
129-
@decorators.untag_resources
130128
def delete(ctx, iface, resource_config, **_):
131129
"""Deletes an AWS EC2 ElasticIP"""
132130

cloudify_awssdk/ec2/resources/instances.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ def assign_ip_properties(_ctx, current_properties):
288288
ipv6_addresses.append(_nic_ipv6)
289289

290290
_ctx.instance.runtime_properties['ipv4_addresses'] = ipv4_addresses
291-
_ctx.instance.runtime_properties['ipv6_addresses'] = ipv6_addresses
291+
ipv6_addr_list = []
292+
for ipv6_addr in ipv6_addresses:
293+
if isinstance(ipv6_addr, dict) and ipv6_addr.get('Ipv6Address'):
294+
ipv6_addr_list.append(ipv6_addr['Ipv6Address'])
295+
_ctx.instance.runtime_properties['ipv6_addresses'] = ipv6_addr_list
292296

293297
if len(ipv4_addresses) > 0 and \
294298
not _ctx.instance.runtime_properties.get('ipv4_address'):
@@ -304,6 +308,9 @@ def assign_ip_properties(_ctx, current_properties):
304308
if ctx.node.properties['use_public_ip']:
305309
_ctx.instance.runtime_properties['ip'] = pip
306310
_ctx.instance.runtime_properties['public_ip_address'] = pip
311+
elif ctx.node.properties.get('use_ipv6_ip', False) and ipv6_addresses:
312+
_ctx.instance.runtime_properties['ip'] = ipv6_addresses[0]
313+
_ctx.instance.runtime_properties['public_ip_address'] = pip
307314
else:
308315
_ctx.instance.runtime_properties['ip'] = ip
309316
_ctx.instance.runtime_properties['public_ip_address'] = pip

plugin.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ plugins:
22

33
awssdk:
44
executor: central_deployment_agent
5-
source: https://github.com/cloudify-incubator/cloudify-awssdk-plugin/archive/2.7.0.zip
5+
source: https://github.com/cloudify-incubator/cloudify-awssdk-plugin/archive/2.7.1.zip
66
package_name: cloudify-awssdk-plugin
7-
package_version: '2.7.0'
7+
package_version: '2.7.1'
88

99
data_types:
1010

@@ -1860,6 +1860,11 @@ node_types:
18601860
Boto3 method. Key names must match the case that Boto3 requires.
18611861
type: cloudify.datatypes.aws.ec2.Instances.config
18621862
required: false
1863+
use_ipv6_ip:
1864+
type: boolean
1865+
description: >
1866+
Tells us to use the IPv6 IP if one exists for agent installation. If use_public_ip is provided, this is overridden.
1867+
default: false
18631868
use_public_ip:
18641869
type: boolean
18651870
description: >
@@ -1933,8 +1938,11 @@ node_types:
19331938
inputs: *operation_inputs
19341939

19351940
cloudify.nodes.aws.ec2.ElasticIP:
1936-
derived_from: cloudify.nodes.aws.ec2.BaseType
1941+
derived_from: cloudify.nodes.Root
19371942
properties:
1943+
<<: *external_resource
1944+
<<: *client_config
1945+
<<: *resource_id
19381946
resource_config:
19391947
description: >
19401948
Configuration key-value data to be passed as-is to the corresponding

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
setup(
2222
name='cloudify-awssdk-plugin',
23-
version='2.7.0',
23+
version='2.7.1',
2424
license='LICENSE',
2525
packages=find_packages(exclude=['tests*']),
2626
description='A Cloudify plugin for AWS',

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
flake8
1+
flake8==3.5.0
22
mock>=1.0
33
nose-testconfig>=0.9
44
nose>=1.3

0 commit comments

Comments
 (0)