Git Product home page Git Product logo

Comments (12)

neillturner avatar neillturner commented on July 21, 2024 1

This is now implemented and released in version 1.38.1.
You can specify in modules_path parameter multiple directories
modules_path: 'directory_a:directory_b:directory_c'
and we now just merge all the contents of the directories into one modules folder.
we assume all the modules in all the directories have different name.

closed.

from kitchen-puppet.

grubernaut avatar grubernaut commented on July 21, 2024

This should be fairly straightforward to accomplish.

Here we set the directory for the modules that need to be copied into the puppet sandbox. https://github.com/neillturner/kitchen-puppet/blob/master/lib/kitchen/provisioner/puppet_apply.rb#L571

Shouldn't be a problem to turn this into a list of modules that are copied into the sandbox modules directory.

from kitchen-puppet.

nvtkaszpir avatar nvtkaszpir commented on July 21, 2024

I'm sorry that I can't help, because my knowledge of the ruby is quite limited, slowly learning how it works, and the syntax is a bit different to the things I'm used to :)

from kitchen-puppet.

grubernaut avatar grubernaut commented on July 21, 2024

Ah not a problem at all!! :)

Was merely documenting for my own knowledge when I get back to triage this issue. Sorry for implying that you would be responsible for a fix

from kitchen-puppet.

nvtkaszpir avatar nvtkaszpir commented on July 21, 2024

Actually recently I feel the increasing urge to learn ruby to be able to commit more to the project, mainly because of the puppet/chef and other tools that are ruby-based. Unfortnately right now I don't have time to focus on this, but maybe around Christmas there will be some spare time :)

from kitchen-puppet.

grubernaut avatar grubernaut commented on July 21, 2024

haha I know the feeling. I have next week off on vacation and am hoping to spend some time triaging a few of these issues in kitchen-puppet. :)

from kitchen-puppet.

nvtkaszpir avatar nvtkaszpir commented on July 21, 2024

Hah, don't. Go for vacation somwhere without access to the computers. I know that feeling, it's contagious! :D

from kitchen-puppet.

chrw avatar chrw commented on July 21, 2024

@grubernaut Did you have the chance to look at this feature? I tried to implement it myself without luck. My ruby skills are not very sophisticated. ;)

from kitchen-puppet.

neillturner avatar neillturner commented on July 21, 2024

ok i will try and find some time to implement.

from kitchen-puppet.

chrw avatar chrw commented on July 21, 2024

Thanks Neill. Please let me know if I can help in any way. I'm curious to see the code to learn where I failed.

from kitchen-puppet.

neillturner avatar neillturner commented on July 21, 2024

a question if you have multiple modules directories say A B and C
is it ok to just merge all the contents into one modules folder as that is effectively what librarian-puppet does. This assumes all the modules are unique over all the module folders. This would be a very straightforward implementation.
otherwise i need to create a multiple multiple folders:
modules_A
modules_B
modules_C

from kitchen-puppet.

chrw avatar chrw commented on July 21, 2024

For me the separation is just a kind of abstraction. I have a directory called legacy to hold old and unsupported modules. The main modules directory managed by r10k. And a site directory with the roles and profiles "modules". So I wouldn't mind if the content is in one modules directory.

from kitchen-puppet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.