[Puppet Users] How to execute multiple script in puppet using bashrc file sourced.

2015-07-02 Thread Ayyanar
1. I am executing two shell script in puppet agent. 2. In first shell script setting env variable in bashrc file. example export "JAVA_HOME=/opt/jdk1.8.0_45" >> bashrc file and i sourced bashrc file. 3.In second shell script changing permission for JAVA_HOME. The permission is not changed.

[Puppet Users] Leap second on puppet client

2015-07-02 Thread pdpinfo
Hi everybody, I am trying to guess if puppet clients, on Linux servers well behaving in respect of leap second, have been subject to a runinterval timer reset when the system clock was adjusted with the leap second (by ntp). This would have the effect of an unusual load on puppet server. Has a

Re: [Puppet Users] PuppetDB Sizing

2015-07-02 Thread Erik Dalén
We are running a PuppetDB instance with ~8000 clients using a 30 minute runinterval. We have hit some scaling issues in the past but the latest PuppetDB version (2.3.5) is running nicely for us. This is with stringify_facts=false, which does create some extra load compared with stringify_facts=true

Re: [Puppet Users] How to execute multiple script in puppet using bashrc file sourced.

2015-07-02 Thread Martin Alfke
Hi, On 02 Jul 2015, at 10:29, Ayyanar wrote: > 1. I am executing two shell script in puppet agent. > 2. In first shell script setting env variable in bashrc file. example export > "JAVA_HOME=/opt/jdk1.8.0_45" >> bashrc file and i sourced bashrc file. Do not do this via an exec. Have you tak

Re: [Puppet Users] PuppetDB Sizing

2015-07-02 Thread Miguel Di Ciurcio Filho
On Thu, Jul 2, 2015 at 6:39 AM, Erik Dalén wrote: > > We have separated the PuppetDB service hosts and the postgres databases to > different hosts. For postgres we have a write master with a hot standby and > four read-only slaves (one for each PuppetDB host). This was scaled up when > we actually

[Puppet Users] How to ensure puppet agent run if cron is used and service disabled?

2015-07-02 Thread staceytian4321
Hi, I have a question about how to manage puppet agent run. I am using cron for Puppet agent to run at a specific time. Since I use cron to run puppet agent, I disable the puppet daemon service (chkconfig puppet off; service puppet stop) It has been working fine. However, yesterday, I noticed

Re: [Puppet Users] How to ensure puppet agent run if cron is used and service disabled?

2015-07-02 Thread Christopher Wood
Get yourself a reporting dashboard which lists hosts not checking in (late catalogs or reports in puppetdb). This one is nice: https://github.com/spotify/puppetexplorer If they've also broken mcollective you'll actually have to ssh to the host, otherwise just kick off an agent run remotely (wit

Re: [Puppet Users] How to ensure puppet agent run if cron is used and service disabled?

2015-07-02 Thread Dan White
You can also check /var/lib/puppet/state on each agent for details of the last run. If you use reporting, /var/lib/puppet/reports on the puppet master will yield similar info > On Jul 2, 2015, at 10:12 AM, staceytian4...@gmail.com wrote: > > Hi, > > I have a question about how to manage puppe

[Puppet Users] yum disable/enable repo with wildcards

2015-07-02 Thread Vince Skahan
We've set up local mirrors of a number of upstream repos, and want to point our puppet-managed boxes at the local mirrors only. Assuming we named our mirror repos local-mirror-whatever, if I was using yum on the commandline, I could do it on the fly by disabling all repos and then enabling the

Re: [Puppet Users] How to ensure puppet agent run if cron is used and service disabled?

2015-07-02 Thread staceytian4321
Thank you Christopher! I will take a look. Stacey On Thursday, July 2, 2015 at 10:42:20 AM UTC-4, Christopher Wood wrote: > > Get yourself a reporting dashboard which lists hosts not checking in (late > catalogs or reports in puppetdb). This one is nice: > > https://github.com/spotify/puppetexp

Re: [Puppet Users] How to ensure puppet agent run if cron is used and service disabled?

2015-07-02 Thread staceytian4321
Thank you LinuxDan! I will take a look. Stacey On Thursday, July 2, 2015 at 10:51:55 AM UTC-4, LinuxDan wrote: > > You can also check /var/lib/puppet/state on each agent for details of the > last run. > > If you use reporting, /var/lib/puppet/reports on the puppet master will > yield similar in

[Puppet Users] Using Puppet 4 with external CA and single intermediate CA

2015-07-02 Thread Andreas Paul
Hello there, I'm trying to bootstrap my new Puppet 4 environment with an external CA as described here: https://docs.puppetlabs.com/puppet/latest/reference/config_ssl_external_ca.html#option-2-single-intermediate-ca Here is the important part of the config: webserver.conf: > ... > ssl-cert : /

Re: [Puppet Users] yum disable/enable repo with wildcards

2015-07-02 Thread Christopher Peterson
There may be a more Puppety way of doing this, but your disable/enable method can be done with Puppet too. You can pass those options in the install_options for your Package. https://docs.puppetlabs.com/references/latest/type.html#package-attribute-install_options Christopher Peterson On 07/02/2

[Puppet Users] Exposing master to the public internet

2015-07-02 Thread Nik Haldimann
Hi I have a fleet of headless devices to manage that are going to be deployed all over the place on various networks but connected to the public internet. I'm evaluating if it would make sense to manage them through puppet. I am able to run the puppet agent on the devices and I seem to be able

Re: [Puppet Users] How to ensure puppet agent run if cron is used and service disabled?

2015-07-02 Thread Angel L. Mateo
El 02/07/15 a las 16:12, staceytian4...@gmail.com escribió: Hi, I have a question about how to manage puppet agent run. I am using cron for Puppet agent to run at a specific time. Since I use cron to run puppet agent, I disable the puppet daemon service (chkconfig puppet off; service puppet sto

[Puppet Users] how to access fact with host specific name like zone_vm5809_iptype

2015-07-02 Thread Andreas Dvorak
Dear all, I would like to use the fact zone_vm5809_iptype, but vm5809 is specific to the host vm5809. If this fact on any host is excl do something Can somebody please help me? I have tried: if ( $::zone_${::hostname}_iptype == 'excl') Could not match ${::hostname}_iptype or $hostname = $::host