Comments (7)
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.
Awesome, looking at it right now!
from puppet-elastic_stack.
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.
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.
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.
If you're in a hurry, here's the super-relevant section:
https://youtu.be/v9LB-NX4_KQ?t=2696
from puppet-elastic_stack.
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)
- update Project URL on Puppet Forge and changelog HOT 1
- kibana packages not found in oss repository HOT 2
- release consistency HOT 1
- Allow $version to set an specific release HOT 5
- Support stdlib 5
- Can't install elasticsearch, Error autoloading yumrepo Type HOT 1
- r10k continuously updating elastic_stack HOT 7
- Do not use cross module variables
- Current release tarball 6.2.4 erroneously contains local `.git` directory
- Make key_source and key_id configurable
- Drop yum dependency
- Module doesn't install and bugs puppet. HOT 1
- apt::update ordering creates dependency cycles HOT 4
- Priority parameter should be undef by default HOT 1
- apt weak_ssl paramerer --- workaround for apt key error: "certificate verify failed (unable to get local issuer certificate)"?
- repo_url parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-elastic_stack.