[Puppet Users] My custom puppet function changes values

2016-05-18 Thread p
Hi Everyone, My custom puppet code changes values randomly. Why? This code creates a random port for me based on the argument's hash. The idea is that this will create a TCP port for me based on the name of the argument I give it (for instance the FQDN) so that it is unique, above 1024 but bel

Re: [Puppet Users] My custom puppet function changes values

2016-05-18 Thread p
t; > Try it in two different IRB sessions and you'll see what I mean. It will > change between garbage collection runs and/or at every invocation of Puppet > if done in cron. > > Trevor > > > > On Tue, May 17, 2016 at 7:42 PM, p > wrote: > >> Hi Ever

Re: [Puppet Users] My custom puppet function changes values

2016-05-18 Thread p
s the hash of the Object ID, not a consistent > cryptographic hash of the string provided. > > Try it in two different IRB sessions and you'll see what I mean. It will > change between garbage collection runs and/or at every invocation of Puppet > if done in cron. > > Trevor

Re: [Puppet Users] My custom puppet function changes values

2016-05-18 Thread p
I'm doing this instead: module Puppet::Parser::Functions newfunction(:ip_port, :type => :rvalue) do |args| require 'zlib' Zlib.crc32(args[0]) % 64511 + 1024 end end On Wednesday, May 18, 2016 at 10:16:19 AM UTC-7, p wrote: > > Any suggestions on how I can ge

[Puppet Users] Manifest not applied unless touched

2011-04-28 Thread Bruce P
Hi all, I'm in the process of trying to set up a new puppet server. We have a few hundred servers that we manage and we're looking to migrate to puppet for a number of reasons I won't bother getting into. Given the number of hosts I've installed passenger to leverage Apache, so here's a quick ru

[Puppet Users] Version Controlling Puppet Configs with svn

2013-05-04 Thread P Cornellio
Hi, I an in the process of putting my Puppet Master configs into version control using SVN. I'm concerned about file permission and ownership changes as a result of this. SVN does not store permissions. How does one safely use SVN with puppet configs? Cheers, Pete -- You received this

[Puppet Users] Re: Version Controlling Puppet Configs with svn

2013-05-06 Thread P Cornellio
ource file. The best thing to do is run the svn co command as user > puppet but you'll need to set its password or a sudo set of commands. > > Em domingo, 5 de maio de 2013 00h58min18s UTC-3, P Cornellio escreveu: >> >> Hi, >> >> I an in the process of putting m

[Puppet Users] Re: puppet dashboard group and class

2014-03-13 Thread Suresh P
Hi Nicolas, I too have the same issue. Do you have doc to enable external_node feature. Thanks, Suresh On Wednesday, 15 December 2010 06:47:24 UTC+5:30, Nicolas Aizier wrote: > > Hi everyone, > > I'm actually kind of new in puppet but I'm doing good in progressing. > I have read lot of docs

[Puppet Users] exporting puppetdasboard group to foreman

2014-05-12 Thread Suresh P
Hi, Previously i have used puppetdasboard as ENC. I have created many groups in puppetdashboard. Now i installed and configured Foreman as ENC. Now i would like to import existing pupportdashboard grouping in foreman. Is it possible? Regards, Suresh -- You received this message because

[Puppet Users] puppet kick not working

2014-05-13 Thread Suresh P
Hi, I'm using puppet version 3.5. I'm getting following error while running ]# puppet kick 172.20.6.22 Warning: Puppet kick is deprecated. See http://links.puppetlabs.com/puppet-kick-deprecation Warning: Failed to load ruby LDAP library. LDAP functionality will not be available Triggering 1

[Puppet Users] puppet kick not working from foreman UI alone

2014-05-14 Thread Suresh P
>From foreman server also puppet kick working. curl -d 'nodes=puppetagent' https://puppetmaster:8443/puppet/run --insecure but in foreman UI only puppet kick not working. Please advise me. Regards, Suresh On Wednesday, 14 May 2014 14:38:50 UTC+5:30, Suresh P wrote: > > Hi,

[Puppet Users] issue in generating password hash via puppet

2014-06-30 Thread Suresh P
Hi, I have store password in variable called "passwd". earlier i used "openssl passwd -1 " . Now, it tried to generate sha-512 password hash. pass => generate('/bin/sh, '-c', "python -c 'import crypt;print crypt.crypt(\'$passwd\',\'\$6\$mpouwk\')'|tr -d '\n' "), But puppet run failed. Plea

[Puppet Users] issue in generating password sha-512 hash for centos

2014-07-01 Thread Suresh P
Hi, user_password="test123" pass => generate('/bin/sh, '-c', "python -c 'import crypt;print crypt.crypt('$user_password','\$6\$mpouwk')'|tr -d '\n' "), In above case i'm not able to generate sha-512 password hash. Regards, Suresh -- You received this message because you are subscribed to

[Puppet Users] puppet firewall redirection policy

2014-08-11 Thread Suresh P
Hi, I'm using puppetlabs/firewall. I need to create following iptable rules: iptables -A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8443 8 REDIRECT tcp -- 0.0.0.0/00.0.0.0/0 tcp dpt:443 redir ports 8443 My manifests is firewall {

[Puppet Users] Re: Announce: Puppet 3.7.1 Released!

2014-09-16 Thread p . krysztofiak
Hello, when can I expect .deb to be available? W dniu wtorek, 16 września 2014 01:11:32 UTC+2 użytkownik Andy Parker napisał: > > Puppet 3.7.1 is a backward-compatible bugfix release in the Puppet 3 > series. This release fixes several regressions and other issues. > > * PUP-3222: Window

[Puppet Users] many agents connecting at same time and 100+ nodes failed.

2014-11-05 Thread Suresh P
12:51 (34 minutes ago) Hi, In my puppet setup, i'm managing around 1700+ nodes via foreman. I have 3 puppet master ( one of the server is CA) under load-balancing and one foreman as ENC and report viewer. Around 900+ nodes connecting at same time, due to that 150 out of 900 getti

[Puppet Users] puppet agent restarting everyday?

2014-12-12 Thread Suresh P
Hi, Why puppet agent restarting everyday at 00:01 hours? [2014-11-29 00:01:02] INFO WEBrick::HTTPServer#start: pid=31285 port=8139 [2014-11-30 00:01:01] INFO WEBrick::HTTPServer#start done. [2014-11-30 00:01:02] INFO WEBrick::HTTPServer#start: pid=13866 port=8139 [2014-12-01 00:01:01] INFO

Re: [Puppet Users] puppet agent restarting everyday?

2014-12-16 Thread Suresh P
Hi, This is configured to run daily by puppet installation itself. Does this restart puppet agent? /var/log/puppet/*log { missingok notifempty create 0644 puppet puppet sharedscripts postrotate pkill -USR2 -u puppet -f 'puppet master' || true [ -e /etc/init.d/puppet ] && /etc/i

Re: [Puppet Users] puppet agent restarting everyday?

2014-12-18 Thread Suresh P
: > > Am 16.12.2014 um 15:26 schrieb Suresh P: > > This is configured to run daily by puppet installation itself. Does > this restart puppet agent? > > /var/log/puppet/*log { > missingok > notifempty > create 0644 puppet puppet > sharedscripts > pos

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2015-01-08 Thread Suresh P
Hi All, I have found one more issue. When we install puppet agent, it creates logrotate which will kill the puppet and restart it. We have configured logroate for all the nodes at 1st minute of everday(00:01). Because of that all the node's puppet agent get reloaded at 00:01 minutes so

[Puppet Users] --environment being over ridden by PE console's default environment group

2015-03-06 Thread Carl P
Hi, I'm using dynamic environments with PE 3.7. I have production and development sub-directories in /etc/puppetlabs/puppet/environments containing environment.conf, hiera.yaml, Puppetfile, manifests/site.pp and modules/ The nodes I'm trying to apply config to are members of the default produ

[Puppet Users] Re: --environment being over ridden by PE console's default environment group

2015-03-08 Thread Carl P
Thanks Nick. I'll try this first thing tomorrow. Regards Carl -- 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 vie

Re: [Puppet Users] --environment being over ridden by PE console's default environment group

2015-03-08 Thread Carl P
Excellent Johan. I'm using R10K so I'll look at your article in detail. Many thanks. -- 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...@

[Puppet Users] Re: --environment being over ridden by PE console's default environment group

2015-03-08 Thread Carl P
Couldn't wait until the morning. Tried it on my lapi and it works perfectly! I really appreciate your's and Johan's help with this. Regards Carl On Sunday, 8 March 2015 19:20:23 UTC, Carl P wrote: > > Thanks Nick. I'll try this first thing tomorrow. > > Rega

[Puppet Users] Re: nodes set to environment 'none'

2015-03-30 Thread Romain P
Hello Tim, Do you find a solution ? I have the same problem. Cheers Romain Le samedi 20 septembre 2014 19:56:43 UTC+2, bluethundr a écrit : > > Hey all, > > > For some reason my client nodes are being set to an environment called > 'none'. This causes an error in puppet runs becuase the pupet

[Puppet Users] inline_template not working after migrated to puppet5

2018-07-09 Thread Suresh P
d+" -m "+memory_per_instance+" -p "+port+" &"}.join("\n")+"\n" %>') file { "$destdir/startmemcached.sh": ensure => file, owner => $title, group => $title, mode => '0744', content =>

[Puppet Users] Circular RPM dependencies...

2011-08-25 Thread R P Herrold
On Thu, 25 Aug 2011, Mike Lococo wrote: 2) You must understand how the yum and rpm os commands work, and specifically how they each handle dependencies and circular deps (yum works to satisfy deps, rpm fails unless all deps are specified on a single command-line). The use of verb forms p

[Puppet Users] Need advice on managing large Centos environment

2010-09-22 Thread R P Herrold
an IT policy document will attend to getting the various mirrors properly recoverable in one's backup strategy. [there, the 'testing' mirrors are often NOT covered, as they are ephemeral as to their usefulness, and recoverable out of 'vault' (top down) or from a 'rt

[Puppet Users] updating kernel in centos shows failure

2010-11-05 Thread R P Herrold
On Fri, 5 Nov 2010, Trevor Hemsley wrote: Steve Hoffman wrote: .../Package[kernel]/ensure) change from 2.6.18-194.el5 to 2.6.18-194.17.4.el5 failed: Could not update: Failed to update to version 2.6.18-194.17.4.el5, got version 2.6.18-194.el5 instead at ... # rpm -qa | grep kernel kernel-2.6

[Puppet Users] MySQL Restart

2009-10-25 Thread R P Herrold
On Sun, 25 Oct 2009, Douglas Garstang wrote: > I'm using the RPM from the MySQL web site, and the packagers of this > RPM in their infinite wisdom decided that the mysql service should be > automatically started when the RPM was installed. MySQL installs and upgrades are hard to get right, and m

[Puppet Users] Re: MySQL Restart

2009-10-25 Thread R P Herrold
On Sun, 25 Oct 2009, Douglas Garstang wrote: > Actually, putting this in the service description seems to have fixed it. > > pattern=> "/usr/bin/mysqld_safe" It may have worked, but I guess I don't seen how going around the LSB conformant services control model and forcing a start outside

[Puppet Users] Comments on #3120 - chained CAs for issuing certs?

2010-01-28 Thread R P Herrold
On Wed, 27 Jan 2010, Scott Smith wrote: The only annoying part is that if I ever revoke something, I have to distribute the CRL to my puppetmasters. Oh well. openssl discusses this in the 'verify' man page Nothing says a certificate has to be of any particular duration. A certificate outsid

[Puppet Users] capacity planning with puppet.

2010-02-18 Thread R P Herrold
On Thu, 18 Feb 2010, Nigel Kersten wrote: How, if at all, do any of you do capacity planning with Puppet? somewhat orthogonal to the question, but after reading this piece: http://www.usenix.org/publications/login/2010-02/pdfs/bjorgeengen.pdf at http://www.usenix.org/publicat

[Puppet Users] install puppet modules behind a proxy

2013-11-30 Thread Arvind P R
Hi I installed puppet on centos for the first time yesterday. the default installation via YUM didnt install any modules i am using apache and mysql for the webserver and database. my question is there no way to install the modules if i am behind a proxy? [root@puppet ~]# puppet --version 3.3.2

[Puppet Users] Re: puppet module search using an HTTP proxy

2013-12-01 Thread Arvind P R
no Stephen this doesnt work is there any other way of installing puppet modules? through yum? On Sunday, December 1, 2013 9:10:15 AM UTC+5:30, Stephen Wallace wrote: > > Maybe something as simple as using httpS? The puppet module face requires > https when downloading I believe. > > Try 'export h

Re: [Puppet Users] Re: [windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers

2013-12-02 Thread Arvind P R
Hello, I am a new user. My pupet is running on CentOS and I am facing the same issue on my windows 2012 box. Can you please tell me where I should be running this? on the puppetmaster server or agent? I didnt make the changes to the windows.rb file but I still face the same issue. [root@puppe

Re: [Puppet Users] Re: [windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers

2013-12-02 Thread Arvind P R
fac ter:16:in `' Thanks, Arvind On Tuesday, December 3, 2013 1:17:29 AM UTC+5:30, Rob Reynolds wrote: > > > > > On Mon, Dec 2, 2013 at 12:31 PM, Arvind P R > > wrote: > >> Hello, >> >> I am a new user. >> My pupet is running on CentOS and I am fa

Re: [Puppet Users] Re: [windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers

2013-12-02 Thread Arvind P R
ly that will be at C:\Program Files (x86)\Puppet > Labs\Puppet\facter\lib\facter\util\ip\windows.rb (your path may be slightly > different). > > > On Mon, Dec 2, 2013 at 1:51 PM, Arvind P R > > wrote: > >> Thanks for your prompt answer. >> >> I ran this

[Puppet Users] puppet apply or puppet agent -t fails on razor installation. Need help on razor too.

2013-12-07 Thread Arvind P R
My puppet master server is working fine and i now installed razor module on the same server. i downloaded the tar.gz from https://forge.puppetlabs.com/puppetlabs/razor and did the installation using puppet module install --ignore-dependencies. i took care of all the dependencies too. *My pu

[Puppet Users] The error we caught said '407 "authenticationrequired"' during module install behind proxy

2013-12-07 Thread Arvind P R
I read at a number of places that if my puppet master is behind a proxy which requires authentication puppet module command does not work despite setting the global parameters http_proxy, https_proxy on bash the command throws an error [root@centos-razor ~]# puppet module install saz/dnsmasq

Re: [Puppet Users] puppet apply or puppet agent -t fails on razor installation. Need help on razor too.

2013-12-10 Thread Arvind P R
much more detailed information about what child process, exactly, is > blocking. > > Jeff > > > On Sat, Dec 7, 2013 at 2:03 PM, Arvind P R > > wrote: > >> My puppet master server is working fine and i now installed razor module >> on the same server. >>

[Puppet Users] Loading predefined docker image

2016-06-29 Thread Fuad P T
hi, I am using Puppet open source to configure my nodes. I want to configure my nodes as docker engines. I achieved this by this by using* 'garathe-docker'* module. But i am unable to load my predefined docker image to nodes. What i mean is, i am having* 'image.tar'* which was created by using '

RE: [Puppet Users] Unable to solve a require statement

2018-03-02 Thread P C Kroon
Hi Jochen, Try the following: require => [File[‘php-wpcli_latest_all.deb’], Package[‘mysql-client’]], HTH Peter From: Jochen Häberle Sent: 02 March 2018 04:56 To: puppet-users@googlegroups.com Subject: [Puppet Users] Unable to solve a require statement Hi, I am having a problem installing wp-c

RE: [Puppet Users] Unable to solve a require statement

2018-03-05 Thread P C Kroon
, line: 26) on node stretch.localdomain I tried to require my profile::mysql class, where it set up the mailserver using puppetlabs-mysql, but this does not help. Thanks, Jochen Am 02.03.2018 um 19:08 schrieb P C Kroon : Hi Jochen,   Try the following: require => [File[‘php-wpcli_latest_all.deb’]

RE: [Puppet Users] Unable to solve a require statement

2018-03-06 Thread P C Kroon
installation. Is there a better way to  describe the dependency? Jochen Am 05.03.2018 um 21:19 schrieb P C Kroon : Hi,   Make sure you have that module also install the MySQL client, and require mysql::client. I’m deliberately vague on the exact syntax since I’m not sure.   Peter   From: Jochen

[Puppet Users] PE 2015.2 puppet master cannot load custom facts

2015-08-05 Thread Maneesh M P
I am facing issues with path of customs facts and with forge modules in the latest PE 2015.2 version of puppet. Custom facts are located at : /var/opt/lib/pe-puppet/lib/facter/ Common forge modules are located at : /etc/puppetlabs/puppet/modules/production/modules But I keep getting below

[Puppet Users] Puppet Facter AWS

2016-02-23 Thread Gowtham P R
Hi All, I am not able to figure out how to replace "mac address value" with first mac address, appreciate your help. $aws_account = $::facts['ec2_metadata']['network']['interfaces']['macs'] ['02:df:8d:XX'][owner-id]'] ? { /123456789/ => 'account1', /123456789/ => 'account2'

Re: [Puppet Users] Windows-Agent is working but is doing nothing

2024-12-08 Thread Mijarena “Mijarena” P .
m Sonntag, 8. Dezember 2024 um 12:28:42 UTC+1: You must put the puppet environment code on the Linux Puppet server. /etc/puppetlabs/code/environments/production/manifests/*.pp Windows systems can only act as Puppet agent. hth, Martin > On 7. Dec 2024, at 21:48, Mijarena “Mijarena” P.

Re: [Puppet Users] Windows-Agent is working but is doing nothing

2024-12-09 Thread Mijarena “Mijarena” P .
that never should have happend So, again, thank you. Now I will dig myself deeper into puppet. Regards, mijarena dhei...@opentext.com schrieb am Montag, 9. Dezember 2024 um 08:02:56 UTC+1: > Am Sonntag, dem 08.12.2024 um 07:41 -0800 schrieb Mijarena “Mijarena” P.: > > Yes, there it is: >

Re: [Puppet Users] Windows-Agent is working but is doing nothing

2024-12-09 Thread Mijarena “Mijarena” P .
0 schrieb Mijarena “Mijarena” P.: > > Notice: Catalog compiled by s01.randomdomain.bayern > Info: Caching catalog for jancis > > > That's the problem. This doesn't match the node definition (from your > first mail): > > node 'jancis.randomdomain.bayern' { &g

[Puppet Users] Windows-Agent is working but is doing nothing

2024-12-07 Thread Mijarena “Mijarena” P .
Hello there. I do have strange Problem, at least for me and I do not find a solution. It seems, that all is running well. I do have almalinux 9 as server [root@s01 manifests]# rpm -qa | grep puppet puppet8-release-1.0.0-9.el9.noarch puppet-agent-8.10.0-1.el9.x86_64 puppetserver-8.7.0-1.el9.noarc

[Puppet Users] PuppetDB, change how long it keeps events

2015-05-25 Thread 'S P Arif Sahari Wibowo' via Puppet Users
Hi! When I make event request to PuppetDB, it seems that PuppetDB only keep 2 weeks worth of events. How can I change how long this 2 weeks to longer period? Will there be any consequences other than disk space if I do that? Thank you! -- (stephan paul) Arif Sahari

[Puppet Users]

2019-06-12 Thread 'S P Arif Sahari Wibowo' via Puppet Users
-- 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 https://groups.google.com/d/m