Git Product home page Git Product logo

Comments (6)

ytsarev avatar ytsarev commented on July 2, 2024

Right, it is a bit ambiguous at the moment, see my initial PR
#41
Currently I use it to deliver additional things we keep in our puppet repository(some shellmocking stuff we use for testing)
Actual replacement of puppet manifests under kitchen test with git ones is on my list.

from kitchen-puppet.

neillturner avatar neillturner commented on July 2, 2024

we can add a parameter install_git which defaults to false but when set to true we check if git is installed and if not install it. the git support was contributed and i have not used it personally but happy to discuss use cases and how we can make it more robust.

from kitchen-puppet.

EslamElHusseiny avatar EslamElHusseiny commented on July 2, 2024

@neillturner exactly the typical behavior should be as following using

  • install_git parameter to install git
  • puppet_git_init && puppet_git_pr to pull a certain pull request you wanna test against, and pull should be in /tmp/kitchen/modules/<module_name> instead of /etc/puppet
  • get the puppet module dependencies

so as to enable kitchen to work normally without any other hacks.

from kitchen-puppet.

grubernaut avatar grubernaut commented on July 2, 2024

I don't feel that being able to clone pull requests into a kitchen suite to test them is within the scope of this project. Unless I'm misunderstanding the reasoning, wouldn't it be easier to use a common CI tool to test pull requests?

from kitchen-puppet.

EslamElHusseiny avatar EslamElHusseiny commented on July 2, 2024

currently I'm using Jenkins to do the job as following :
1- executing either librarian-puppet or r10k to pull the puppet module and its dependencies in modules directory which its path is written in .kitchen.yml conf file for modules_path parameter, unfortunately neither librarian-puppet nor r10k can pull a certain pull request, so I'm pulling the master repository.
2- using Jenkins shell build step to switch the main puppet module from master to the pull request I'm gonna test
3- launch kitchen different commands "destroy, create, converge, and verify" to start testing using puppet module and its dependencies exists in modules directory which its path is written in .kitchen.yml conf file.

from kitchen-puppet.

neillturner avatar neillturner commented on July 2, 2024

closing this as out of scope.

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.