Re: [Puppet Users] Puppet Master and Custom Facts

2017-02-28 Thread Rob Nelson
If you deploy the custom fact, the agent would need to perform a single run and then send the report to puppetdb. Afterward, it would be visible in the admin console (assuming you mean PE console here) in all the usual places, such as in the node details and filtering by fact valued. The runs

Re: [Puppet Users] build version tag?

2017-02-28 Thread Rob Nelson
If you're using a control repo, you can change the catalog version number from seconds since epoch to git commit hash, which should allow you to reconstitute all the modules in use at that time if you pin all external modules in your Puppetfile (included would already be part of that hash). --

Re: [Puppet Users] build version tag?

2017-02-28 Thread warron.french
This is an excellent question Jason, I don't know the answer myself, but it looks like I just submitted a similar question. -- Warron French On Tue, Feb 28, 2017 at 3:30 PM, Jason McMahan wrote: > Good day, > I was wondering if others could

[Puppet Users] Puppet Master and Custom Facts

2017-02-28 Thread warron.french
Can I write a custom fact and see its value returned in the Admin Console? Or does it only allow for the execution of Puppet Code based on conditionals and criteria meeting expectations? If the answer is yes to the first question, can I simply write the Custom Fact, without necessarily making any

[Puppet Users] build version tag?

2017-02-28 Thread Jason McMahan
Good day, I was wondering if others could offer their thoughts, advice? We would like to tag any new servers built with a build version, and tie that build version to all modules that were used for building it? For instance if i built server test1 and it was tagged with build.2_28_2017_1.0 we

[Puppet Users] Re: What's the best way to deal with multiple OS's

2017-02-28 Thread Joshua Schaeffer
You can build agnostic code in Puppet and pull operating system specifics from Hiera. For example: #ls -l hieradata/ total 4 -rw-r--r-- 1 root root 872 Feb 12 18:28 common.yaml drwxr-xr-x 1 root root 0 Feb 28 12:31 nodes drwxr-xr-x 1 root root 68 Feb 28 12:31 os #ls -lR hieradata/os

[Puppet Users] Re: [Puppet-dev] Re: Draft for new type and provider API

2017-02-28 Thread Erik Dalén
Overall I think this looks pretty good, but I have some questions and comments. For implementations that can't enumerate all existing resources (at least not in any fast way), like for example File, should they fine a get method that returns an empty hash, nil or just not define a get method? nil

[Puppet Users] Conflict between new docs and puppet

2017-02-28 Thread Joshua Schaeffer
The docs on lookup() . state that in order to upgrade to to hiera v5 you should follow the below list: >- Change any hiera/hiera_array/hiera_hash calls in your manifests to >use lookup instead. > > >- Set

[Puppet Users] Re: noob question about configuring modules via hiera's common.yaml instead of site.pp

2017-02-28 Thread Peter K
Thank you Bill. -peter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

[Puppet Users] search in a section a setting and execute a command

2017-02-28 Thread puppetstan
Hi, Actually my configuation permit to search in a section a parameter and give it a value. this it's ok ini_setting {'priority': ensure=> present, path => '/etc/file', section => 'main', key_val_separator => '=', setting

[Puppet Users] Re: optimize my configuration

2017-02-28 Thread puppetstan
thanks, i think the local repository is the best choice...i create it with createrepo regards Le mardi 14 février 2017 15:09:23 UTC+1, jcbollinger a écrit : > > > > On Monday, February 13, 2017 at 10:51:42 AM UTC-6, puppetstan wrote: >> >> thanks for your answer >> >> But with this conf, my

[Puppet Users] Re: [Puppet-dev] Re: Draft for new type and provider API

2017-02-28 Thread David Schmitt
On 27 February 2017 at 18:57, Shawn Ferry wrote: > > On Feb 27, 2017, at 9:59 AM, David Schmitt > wrote: > > Commands > > To use CLI commands in a safe and comfortable manner, the implementation > can use the commands method to access shell

[Puppet Users] Re: noob question about configuring modules via hiera's common.yaml instead of site.pp

2017-02-28 Thread Bill Sirinek
We run into that fairly regularly, and what you describe is pretty much what we have done in most cases... Create a ldap profile class that all nodes (or whichever) run, and from that it calls the openldap module with variables you get from hiera. Bill On Monday, February 27, 2017 at