Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/openstack: LoadBalancer Security Groups #11074

Merged
merged 2 commits into from
Jan 12, 2017

Conversation

jtopjian
Copy link
Contributor

@jtopjian jtopjian commented Jan 6, 2017

This commit adds the ability to specify security groups on a loadbalancer
resource.

Fixes #11066

This commit adds the ability to specify security groups on a loadbalancer
resource.
@@ -126,6 +134,25 @@ func resourceLoadBalancerV2Create(d *schema.ResourceData, meta interface{}) erro
return err
}

// Once the loadbalancer has been created, apply any requested security groups
// to the port that was created behind the scenes.
if lb.VipPortID != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth letting the Create func call the Update func here? That way you wouldn't need to duplicate the code too much

Will that introduce any more risk?

P.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an interesting idea! I'll try it out.

Moving common security group code into a dedicated function.
@jtopjian
Copy link
Contributor Author

@stack72 I wasn't able to successfully call the Update function, but I was able to break the logic out into a dedicated function.

@stack72
Copy link
Contributor

stack72 commented Jan 12, 2017

LGTM! :)

@stack72 stack72 merged commit 91147fe into hashicorp:master Jan 12, 2017
@ghost
Copy link

ghost commented Apr 18, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform Openstack attach LB to a port or security group to a LB
2 participants