Git Product home page Git Product logo

Comments (7)

jarpy avatar jarpy commented on August 16, 2024 1

this kind of conflicts is where I find puppet very annoying

Absolutely. It really does get better with Hiera and include, though. So it's worth working towards, in my opinion. :)

This video changed my Puppet life, by the way:

https://www.youtube.com/watch?v=v9LB-NX4_KQ

It's old now, but I think it's mostly still relevant.

from puppet-elastic_stack.

hboetes avatar hboetes commented on August 16, 2024 1

Awesome, looking at it right now!

from puppet-elastic_stack.

smortex avatar smortex commented on August 16, 2024 1

Closing this old issue which got solved.

The roles & profile pattern says apt is declared in your profile::apt, elastic stuff is in profile::elasticsearch and the latest include the former one. If all nodes that use these modules do it the same way, no need for parameters / automatic parameter lookup.

from puppet-elastic_stack.

jarpy avatar jarpy commented on August 16, 2024

Does your environment configure apt with a resource-like declaration, like this?

class {'apt':
  setting => 'value',
}

The more modern approach is to include apt where you need it, and set the apt class parameters with Hiera data. Then, apt can be used by any number of modules with include, require, and contain, and they will all get the parameters from Hiera and not create resource conflicts.

CAUTION: Do not mix include-like and resource-like declarations for a given class. If you declare or assign a class using both styles, it can cause compilation failures.
-- https://puppet.com/docs/puppet/7.4/lang_classes.html#lang_class_declare

from puppet-elastic_stack.

hboetes avatar hboetes commented on August 16, 2024

Hello @jarpy
Thanks for the heads-up, I never got hiera working. Maybe I should give it another shot. Though, truth be told, this kind of conflicts is where I find puppet very annoying.

from puppet-elastic_stack.

jarpy avatar jarpy commented on August 16, 2024

If you're in a hurry, here's the super-relevant section:

https://youtu.be/v9LB-NX4_KQ?t=2696

from puppet-elastic_stack.

jarpy avatar jarpy commented on August 16, 2024

I also, personally, really like the "automatic parameter lookup" mentioned at 51:00, but that's a matter of taste.

from puppet-elastic_stack.

Related Issues (17)

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.