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

feat: add hostset resource #26

Merged
merged 4 commits into from
Sep 2, 2020
Merged

feat: add hostset resource #26

merged 4 commits into from
Sep 2, 2020

Conversation

malnick
Copy link
Contributor

@malnick malnick commented Aug 29, 2020

Adds resource for hostset.

// convertResourceDataToHostset returns a localy built Host using the values provided in the ResourceData.
func convertResourceDataToHostset(d *schema.ResourceData) *hostsets.HostSet {
// if you're manually defining the hostset in TF, it's always going
// to be of type "static"
Copy link
Member

Choose a reason for hiding this comment

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

Not true! Only if it's in a static host catalog.

In future catalogs, you might define a host set minaly via attributes, e.g. you're defining the predicate used to filter hosts coming from a cloud. It's still going to depend on the host catalog type though.

Copy link
Member

Choose a reason for hiding this comment

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

To be clear I don't think we need to change anything as a result but might be good to get rid of that comment

@malnick malnick merged commit 48c7f02 into master Sep 2, 2020
@malnick malnick deleted the hostsets branch September 2, 2020 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants