Git Product home page Git Product logo

Comments (3)

neillturner avatar neillturner commented on July 21, 2024

well it is just a plugin to test kitchen (it only was 3 days work to
write!) so test kitchen is doing copying of files to the server etc, so
don't have much control over those things. i don't really understand what
you mean by the module. the code is pretty simple so you can try and
implement your requirement. if you explain it to me i maybe able to tell
you if it is possible from my understanding of test kitchen.

On 15 May 2014 16:56, Edmund Haselwanter [email protected] wrote:

Hi,

First of all: Thank you @neillturner https://github.com/neillturner for
running ahead with this very valuable plugin. We (
http://telekomlabs.github.io) started to use it and definitely want to
give it some love, or help push it into test-kitchen core.

To get parity I would love to see something like

puppet
self_as_module: true

which puts the repo itself as a module on the target node and just copies
the specified manifest to run to the target manifest folder.

What do you think? Is there another option to accomplish this?


Reply to this email directly or view it on GitHubhttps://github.com//issues/10
.

from kitchen-puppet.

ehaselwanter avatar ehaselwanter commented on July 21, 2024

well. lets look at an example

https://github.com/TelekomLabs/puppet-os-hardening

this repo IS a puppet module. to test it I would like to puppet-apply the provided class with a manifest file again IN this puppet module.

https://github.com/TelekomLabs/puppet-os-hardening/blob/master/manifests/site.pp

provisioner:
  name: puppet_apply
  manifests_path: manifests
  modules_path: modules
  hiera_data_path: hieradata
  manifest: site.pp

running kitchen converge or other converge including kitchen command will then tell me:

Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class os_hardening at /tmp/kitchen/manifests/site.pp:1 on node default-ubuntu-1204

because it wants to use puppet-os-hardening as a module but does not find it on the node in the modules folder.

so my question was: how do you deal with this

a) I just run manifests that use modules defined by the Puppetfile
b) I develop a module and what to test it in the same repo with kitchen

if I publish the module and include it in b) it works but that is not the intended test/verify cycle ;-)

  • Edmund

from kitchen-puppet.

ehaselwanter avatar ehaselwanter commented on July 21, 2024

closed by #11

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.