[Puppet Users] Push Puppet custom Facts to agent

2019-01-31 Thread Nikhil Patil
Hi All, I have created the custom fact in ruby and placed in facterlib path on master. when i run facter -p on master i see the facter value in response. Now i want this to be pushed on all my agent from puppet master. how this can be achieved. Thanks & Regards Nikhil -- You received this m

Re: [Puppet Users] Replacing extlookup to look up external things!

2019-01-31 Thread Henrik Lindberg
On 2019-01-30 01:16, Ben Ford wrote: Your simplest and most straightforward upgrade path would be to port the CSV file to a common.yaml file and then switch to using lookup() with hieradata. Later on, you can start differentiating and build a sane data hierarchy. Check out the docs at https:/

RE: [Puppet Users] Push Puppet custom Facts to agent

2019-01-31 Thread Bart-Jan Vrielink
Hello, Normally you would place custom facts in the directory lib/facter of a module (any module). When the setting pluginsync is true (and this is the default value for quite a long time), on the next puppet run this fact will be synced to the agent. https://puppet.com/blog/introduction-p

Re: [Puppet Users] Re: ensure_packets not working

2019-01-31 Thread Jochen Haeberle
Hi, you are probably right. Here we go: as I am using puppet apply, I have in my site.pp: include role::fips_tool in fips_tool there is, among other code: ... class { profile::software::apache: php_version => '7.3', default_redirect_to => 'http://my.host.name', maindir

[Puppet Users] Re: ensure_packets not working

2019-01-31 Thread jcbollinger
On Monday, January 28, 2019 at 5:02:42 PM UTC-6, Jochen Haeberle wrote: > > Hi, > > I am using serverless puppet apply on some nodes. I prepared a set of > manifests using forge plugins. I developed everything using Vagrant quite > fine. > > Now I put my code via git on a debian 9.7 VM with p

[Puppet Users] Re: ensure_packets not working

2019-01-31 Thread jcbollinger
On Thursday, January 31, 2019 at 8:00:05 AM UTC-6, jcbollinger wrote: As long as I'm standing on this soapbox, though, I'd like to remark that > ensure_packages() is a jerry-rig, not an actual solution to any Puppet > problem. It and its brethren, ensure_package(), ensure_resources(), and >

Re: [Puppet Users] Re: ensure_packets not working

2019-01-31 Thread Jochen Haeberle
Hi John, thanks for your support! I see your point, especially with the different use of notify. It’s disapointing to hear one should still keep away from ensure_packages, as it greatly helps me to install packages only when needed. This goes mostly for apache modules and php extensions in my

[Puppet Users] add fact of command out

2019-01-31 Thread Abhishek singh
Hello Group, My code was working in 2.7.X puppetserver version but it is not running on puppetmaster 3.8.7. Facter version : facter -v 1.7.5 my code is : require 'facter' Facter.add(:xyz_version) do confine :kernel => "Linux" setcode do Facter::Core::Execution.execute('/bin/cat /var/xy

Re: [Puppet Users] Push Puppet custom Facts to agent

2019-01-31 Thread Abhishek singh
Hello Nikil, Can you help me out in writing facts in ruby.? Actually i want to run a command which is not working . my code is : require 'facter' Facter.add(:xyz_version) do confine :kernel => "Linux" setcode do Facter::Core::Execution.execute('/bin/cat /var/xyz/installation.log | /bin/g

Re: [Puppet Users] Push Puppet custom Facts to agent

2019-01-31 Thread Ben Ford
Put your facts in a module and they'll be synced everywhere they're needed automatically. https://puppet.com/docs/puppet/5.3/plugins_in_modules.html#auto-download-of-agent-side-plug-ins-pluginsync On Thu, Jan 31, 2019 at 4:48 AM Nikhil Patil wrote: > Hi All, > > I have created the custom fact in

Re: [Puppet Users] add fact of command out

2019-01-31 Thread Abhishek singh
Hello Group, Please help me out. Its really wierd, i have done every thing possible but the command is still not working. Any simple facts like passing strings are working. Regards, Abhiahek Singh On Thu, 31 Jan 2019, 22:28 Abhishek singh Hello Group, > > My code was working in 2.7.X puppetse

Re: [Puppet Users] add fact of command out

2019-01-31 Thread Abhishek singh
Hello group, Where can i find documentation for facter version 1.7.5 ? Please address as the puppet official documents are not reachable. Regards, Abhishek Singh On Fri, 1 Feb 2019, 01:42 Abhishek singh Hello Group, > > Please help me out. > Its really wierd, i have done every thing possible b

[Puppet Users] Re: Puppet 6 client lookup secret from Hashicorp Vault

2019-01-31 Thread comport3
We've made some more progress integrating Puppet 6+ Deferred lookups with Vault for secrets storage. The basic principle we've used for the isolation is to upload and sync a Puppet TLS certificate per host, and lookup the relevant keys under there for the secret storage. ``` vault write secret

[Puppet Users] Re: Puppet 6 client lookup secret from Hashicorp Vault

2019-01-31 Thread comport3
We've made some more progress integrating Puppet 6+ Deferred lookups with Vault for secrets storage. The basic principle we've used for the isolation is to upload and sync a Puppet TLS certificate per host, and lookup the relevant keys under there for the secret storage. ``` vault write secret