Coder Social home page Coder Social logo

Comments (7)

snesbittsea avatar snesbittsea commented on August 14, 2024

Basic problem appears to be that profile::hosts::file expects to be set $::profile::settings::primary_ip and not be undef. But there is no guarantee that the profile::settings class is processed.

from psick.

alvagante avatar alvagante commented on August 14, 2024

Actually profile::settings should be included in manifest/site.pp as a prerequisite.

from psick.

snesbittsea avatar snesbittsea commented on August 14, 2024

Hmm...

Ok, a couple of issues here. First, the fixtures/manifests/site.pp is out-of-date and doesn't match the site/manifests/site.pp

Second, there is a bug (rodjek/rspec-puppet#322) in rspec-puppet that under puppet 4.x prevents site.pp from being processed. It does look like a fix has been merged in, but obviously my version of rspec-puppet doesn't contain the fix.

I modified the profile Gem file to pick up the latest rspec-puppet from github and if the existing fixtures/manifests/site.pp is replaced by the manifests/site.pp good things happen.

I'm thinking that the best solution to #2 is to symlink in the canonical site.pp into the fixtures/manifests directory using the .fixtures.yml. That way you don't have to maintain two identical copies of site.pp.

Also, part of what I am working on is updating the profile Gemfile to bring it more inline with what I understand are best practices/standards. I'll have a pull request for you - if you want it - in a week or so.

from psick.

snesbittsea avatar snesbittsea commented on August 14, 2024

Damn - didn't mean to close it :-)

from psick.

tuxmea avatar tuxmea commented on August 14, 2024

@snesbittsea we had a PR a couple of days ago bringing acceptance tests. There is now one PR open bringing host tests. Does this solve this issue?

from psick.

tuxmea avatar tuxmea commented on August 14, 2024

@snesbittsea can you please check whether this issue is still open when using latest development or production branch?

from psick.

alvagante avatar alvagante commented on August 14, 2024

All tests ok now

from psick.

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.