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

Global modulepath to the core unix puppet resources #766

Open
gerases opened this issue Oct 5, 2019 · 0 comments
Open

Global modulepath to the core unix puppet resources #766

gerases opened this issue Oct 5, 2019 · 0 comments

Comments

@gerases
Copy link

gerases commented Oct 5, 2019

Hi,

My team uses rspec puppet tests to maintain our internal puppet code. It's an awesome tool. We recently upgraded from puppet 3 to puppet 6. It seems that the puppet6 gem doesn't package the unix specific core resources (mount, cron, etc).

The configuration for all of our tests so far assumes that the core modules are always available. We only cared about the path to our modules when calling Rspec.configure.

The problem is where to put these core unix modules and how to instruct rspec-puppet to always include that path by default. I can't find a gem that packages both puppet and the unix core puppet resources.

So, I'm looking for an easy way out of this not to explicitly set modulepath in tens of rspec helpers.

  1. Is there a puppet gem that includes the core unix puppet resources so I don't have to worry about this at all? I.e., can I simulate the rspec-puppet behavior with the previous puppet versions (e.g.: v3)?

  2. If 1 is not possible, what's the best way to add a global module path to rspec-puppet so it's always included for all rspec puppet tests in our code tree? Is there a secret global config file under /etc we could use?

I was going to modify the ruby code or monkey patch it in some way originally, but thought that there must be an easier solution.

Thanks again for rspec-puppet.

@gerases gerases changed the title Global setting for rspec-puppet tests Specifying path to the core unix puppet resources globally Oct 5, 2019
@gerases gerases changed the title Specifying path to the core unix puppet resources globally Specifying modulepath to the core unix puppet resources globally Oct 5, 2019
@gerases gerases changed the title Specifying modulepath to the core unix puppet resources globally Global modulepath to the core unix puppet resources Oct 5, 2019
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

No branches or pull requests

1 participant