Giter Club home page Giter Club logo

Comments (5)

jhaals avatar jhaals commented on July 20, 2024

Better instructions is always good! I would happily merge readme updates if they improve usage.
I might be a bit blind to flaws since I created the module. You don't get that more then two facter facts from installing the module.

from jhaals-warranty.

spuder avatar spuder commented on July 20, 2024

I'd be happy to create a pull request, but so far haven't figured out how to implement this module myself. It seems like you should be able to clone it into the /ect/facter/facts.d and then run a facter -p, but I don't see any extra facts when I do that. I've also made sure the warranty.rb file is executable.

facter -p --debug |grep warranty
Fact file /etc/facter/facts.d/jhaals-warranty was parsed but returned an empty data set
Fact file /etc/facter/facts.d/jhaals-warranty was parsed but returned an empty data set
Fact file /etc/facter/facts.d/jhaals-warranty was parsed but returned an empty data set
Fact file /etc/facter/facts.d/jhaals-warranty was parsed but returned an empty data set

from jhaals-warranty.

jhaals avatar jhaals commented on July 20, 2024

That's not how you install modules
http://docs.puppetlabs.com/puppet/2.7/reference/modules_installing.html

from jhaals-warranty.

spuder avatar spuder commented on July 20, 2024

Yes, I am aware of how to install a module, however non of my attempts to actually use it have been successful.

git clone https://github.com/JHaals/jhaals-warranty.git /etc/puppet/modules

puppet module list
/etc/puppet/modules
├── jfryman-nginx (v0.0.5)
├── jhaals-warranty (???)



Could you paste a code snippet of how *you* use this module? 
I have done a handful of tests, creating classes that include this module, however none of them work. 

from jhaals-warranty.

jhaals avatar jhaals commented on July 20, 2024

What OS are you using?
It's just providing a facter fact. It's up to you how to use it.

if str2bool($::warranty) == false {
# do something
}

from jhaals-warranty.

Related Issues (5)

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.