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

Use node group apply #28

Merged
merged 3 commits into from Dec 4, 2019
Merged

Use node group apply #28

merged 3 commits into from Dec 4, 2019

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Nov 12, 2019

Switch from doing hacky module downloading on the master and running puppet apply to using an apply() block in the plan.

This commit is a WIP on the way to accomplishing the one-line commit
message goal.
@abuxton
Copy link
Contributor

abuxton commented Nov 13, 2019

@reidmv still not sure why this uses node_group and downloads the module instead of pe_node_group which is built in to pe?

@reidmv
Copy link
Contributor Author

reidmv commented Nov 13, 2019

@abuxton it's a little tricky, but the main reason is beause for an apply() block it doesn't really matter what Puppet code is installed on the target... The place the code is needed is whatever host you're running Bolt on.

Because the pe_node_group type comes from an internal-only PE module, it's very difficult to get access to unless you're running on a PE master or compiler. In the case of the pe_xl and installation, it's actually guaranteed that the module won't be available when you start installation.

Using a Forge module means that the end experience we'll have is the user checking out a Bolt project, running bolt puppetfile install to download and populate all module dependencies, and then running the plan.

@abuxton
Copy link
Contributor

abuxton commented Nov 13, 2019

yeah I came back to say that after I figured it out running the code and prodding about! kind of annoying as only other workaround is getting customers to commit the pe_modules to their codebase (some do this anyway, but far from ideal)

It took awhile to figure out how to do this, but I think this latest
iteration actually works.
See comment in diff for details.
@reidmv reidmv marked this pull request as ready for review December 4, 2019 23:43
@reidmv reidmv merged commit 136ae26 into master Dec 4, 2019
@reidmv reidmv deleted the use-node_group-apply branch March 18, 2020 22:44
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.

None yet

2 participants