You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)?
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.
The text was updated successfully, but these errors were encountered:
gerases
changed the title
Global setting for rspec-puppet tests
Specifying path to the core unix puppet resources globally
Oct 5, 2019
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
changed the title
Specifying modulepath to the core unix puppet resources globally
Global modulepath to the core unix puppet resources
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.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)?
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.
The text was updated successfully, but these errors were encountered: