Giter VIP home page Giter VIP logo

Comments (3)

neillturner avatar neillturner commented on July 24, 2024

you can see an example facter file in a repo here:
https://github.com/neillturner/puppet_vagrant_repo/tree/master/facter

See also (try goggling puppet custom facts)
https://docs.puppet.com/facter/3.8/custom_facts.html
http://puppetlunch.com/puppet/custom-facts.html

you can specify facts in the .kitchen.yml
as an array

custom_facts:
  list_of_ips:
    - 10.0.0.1
    - 192.168.10.10

or a hash:

custom_facts:
  role_name1: base
  role_name2:  iis

or string

custom_facts: role_name1=base,role_name2=webserver

from kitchen-puppet.

cgetzen avatar cgetzen commented on July 24, 2024

The notes on facter_file say
facter_file: yaml file of custom facter_files to be provided to the puppet-apply command

but your example facter file is ruby. Can it be either?

from kitchen-puppet.

neillturner avatar neillturner commented on July 24, 2024

fair enough. i've corrected the docs. i think they can be yaml as well. certainly external facts can be yaml as per
https://stackoverflow.com/questions/45825601/puppet-facter-how-to-set-custom-facts-from-yaml-file.

I would have to read up on the exact difference between external facts and custom facts. Haven't written any puppet this year to be frank, Been working alot with HashiCorp products Terraform and Packer and AWS of course.

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.