Re: [Puppet Users] puppetdb question !!!

2014-03-30 Thread Rakesh Kathpal
Hi , I am still struggling on the replace fact part, is there any way to force replace_facts for a node. I am actually adding new facts by coping them directly into the facter dir but unfortunately they are not getting replicated to puppetdb. Is there any way to force puppetdb to replace_facts.

Re: [Puppet Users] puppetdb question !!!

2014-03-30 Thread Christopher Wood
After copying these facts into /etc/facter/facts.d, are you kicking off another puppet agent run? Facts get sent to the master on each agent run, not before. http://docs.puppetlabs.com/guides/custom_facts.html#viewing-fact-values On Sun, Mar 30, 2014 at 07:35:54PM +0530, Rakesh Kathpal wrote: >

Re: [Puppet Users] puppetdb question !!!

2014-03-30 Thread Rakesh Kathpal
I am not copying the facts to the facts.d folder.. but i am creating the facts as .rb files and placing them into /usr/lib/ruby/site_ruby/ruby/1.8/facter/. On Sun, Mar 30, 2014 at 8:48 PM, Christopher Wood < christopher_w...@pobox.com> wrote: > After copying these facts into /etc/facter/facts.d

[Puppet Users] separate puppetmaster ca server

2014-03-30 Thread Chris
Hi, Apologies if this appears twice, I couldn't see it show up in the archives. I've been trying to set up a separate ca server for puppetmaster and failing. I'm sure I've missed something but I'm not sure where to look. server a is the puppetmaster: [main] ca_server = puppetmaster.puppe

Re: [Puppet Users] separate puppetmaster ca server

2014-03-30 Thread Spencer Krum
When you have a separate server providing the CA service, it is only contacted when a client first connects. After the client's cert is signed, the CA server does nothing. Does that make sense? On Sun, Mar 30, 2014 at 2:07 PM, Chris wrote: > Hi, > > Apologies if this appears twice, I couldn't s

Re: [Puppet Users] separate puppetmaster ca server

2014-03-30 Thread Chris
On 31/03/14 08:13, Spencer Krum wrote: When you have a separate server providing the CA service, it is only contacted when a client first connects. After the client's cert is signed, the CA server does nothing. Does that make sense? Yes and no. Yes - I'm not missing something :) No - I can't c

Re: [Puppet Users] separate puppetmaster ca server

2014-03-30 Thread Spencer Krum
The puppetmaster doing catalog compilation, puppetmaster-client in your case, does verify that the client cert is not in the CRL. However, you have to help it out a bit. For one, you need the puppetmaster-client to get the most recent CRL from the puppetmaster (the CA server) on a regular basis, of

[Puppet Users] Re: Puppet fails to run if ruby1.8 is not installed.

2014-03-30 Thread Jason Price
ok. So for anyone else digging for this issue: Amazon Linux just did an update to be closer to what RHEL7 will look like, which means they dropped a default install of ruby 1.8.x The Puppet RPM package is compiled against RHEL5/6 which has ruby 1.8.x. So it drops a ton of its dependencies into /

[Puppet Users] Help with puppet

2014-03-30 Thread Gayatri Swaminathan
Hi All, I am trying to learn puppet. I want to writte a script to determine the machine’s local IPV4 address,locate all files with the extension “cfg” in /home/mnt/, and replace all occurrences of “example.com” with that IP, and change the extension of each file to .conf. Is it do-able? Can a

[Puppet Users] Re: MySQL Replication

2014-03-30 Thread Gayatri Swaminathan
I have doubts in setting up the slave. In the slave mysql I need to do the following CHANGE MASTER TO > MASTER_HOST='masteripaddress', > MASTER_USER='repl', > MASTER_PASSWORD='password', > MASTER_LOG_FILE='mysql-bin.01', > MASTER_LOG_POS=98; start slave how will i get these values

Re: [Puppet Users] separate puppetmaster ca server

2014-03-30 Thread Chris
On 31/03/14 08:48, Spencer Krum wrote: The puppetmaster doing catalog compilation, puppetmaster-client in your case, does verify that the client cert is not in the CRL. However, you have to help it out a bit. For one, you need the puppetmaster-client to get the most recent CRL from the puppetmast

[Puppet Users] Is ensure_resource() evil?

2014-03-30 Thread Atom Powers
Over the years I've heard a lot of people declare one function/method/implementation of something to be "evil". I've found that, more often than not, the person declaring it to be bad has simply been burned by trying to use it for something the function was never intended to be used for. (Usually a