[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 below 65535. I don't want to have to worry about port numbers, it 
should just calculate the same every time.

module Puppet::Parser::Functions
  newfunction(:ip_port, :type => :rvalue) do |args|
args[0].hash % 64511 + 1024
  end
end


I use it in a manifest this way:
$ip_port = ip_port('www.example.com')

The puppet agent runs every 30 minutes by default. It's a master/slave v3.8 
setup. When I run it manually, the value always comes back the same. But 
when I leave it alone, at some point the value changes. I use this to 
create ports for haproxy. Thanks for your help.


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 
https://groups.google.com/d/msgid/puppet-users/d2551534-236d-4598-b288-1faa7d3c6bb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-05-18 Thread p
Thanks, Trevor. I did and as you had predicted they are different.

On Wednesday, May 18, 2016 at 7:35:55 AM UTC-7, Trevor Vaughan wrote:
>
> Hi Peter,
>
> Object.hash in Ruby provides 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
>
>
>
> On Tue, May 17, 2016 at 7:42 PM, p > wrote:
>
>> 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 below 65535. I don't want to have to worry about port numbers, it 
>> should just calculate the same every time.
>>
>> module Puppet::Parser::Functions
>>   newfunction(:ip_port, :type => :rvalue) do |args|
>> args[0].hash % 64511 + 1024
>>   end
>> end
>>
>>
>> I use it in a manifest this way:
>> $ip_port = ip_port('www.example.com')
>>
>> The puppet agent runs every 30 minutes by default. It's a master/slave 
>> v3.8 setup. When I run it manually, the value always comes back the same. 
>> But when I leave it alone, at some point the value changes. I use this to 
>> create ports for haproxy. Thanks for your help.
>>
>>
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/d2551534-236d-4598-b288-1faa7d3c6bb0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/puppet-users/d2551534-236d-4598-b288-1faa7d3c6bb0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Trevor Vaughan
> Vice President, Onyx Point, Inc
> (410) 541-6699 x788
>
> -- This account not approved for unencrypted proprietary information --
>

-- 
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/msgid/puppet-users/9dbee805-57c9-4098-ae08-d1d30947ae87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-05-18 Thread p
Any suggestions on how I can get the hash of the string content itself so I 
can get this function to work? I really just don't want to manage ports 
anymore.

On Wednesday, May 18, 2016 at 7:35:55 AM UTC-7, Trevor Vaughan wrote:
>
> Hi Peter,
>
> Object.hash in Ruby provides 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
>
>
>
> On Tue, May 17, 2016 at 7:42 PM, p > wrote:
>
>> 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 below 65535. I don't want to have to worry about port numbers, it 
>> should just calculate the same every time.
>>
>> module Puppet::Parser::Functions
>>   newfunction(:ip_port, :type => :rvalue) do |args|
>> args[0].hash % 64511 + 1024
>>   end
>> end
>>
>>
>> I use it in a manifest this way:
>> $ip_port = ip_port('www.example.com')
>>
>> The puppet agent runs every 30 minutes by default. It's a master/slave 
>> v3.8 setup. When I run it manually, the value always comes back the same. 
>> But when I leave it alone, at some point the value changes. I use this to 
>> create ports for haproxy. Thanks for your help.
>>
>>
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/d2551534-236d-4598-b288-1faa7d3c6bb0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/puppet-users/d2551534-236d-4598-b288-1faa7d3c6bb0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Trevor Vaughan
> Vice President, Onyx Point, Inc
> (410) 541-6699 x788
>
> -- This account not approved for unencrypted proprietary information --
>

-- 
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/msgid/puppet-users/73491170-ffce-4b82-ae0b-db5bce3d03fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 get the hash of the string content itself so 
> I can get this function to work? I really just don't want to manage ports 
> anymore.
>
> On Wednesday, May 18, 2016 at 7:35:55 AM UTC-7, Trevor Vaughan wrote:
>>
>> Hi Peter,
>>
>> Object.hash in Ruby provides 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
>>
>>
>>
>> On Tue, May 17, 2016 at 7:42 PM, p  wrote:
>>
>>> 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 below 65535. I don't want to have to worry about port numbers, it 
>>> should just calculate the same every time.
>>>
>>> module Puppet::Parser::Functions
>>>   newfunction(:ip_port, :type => :rvalue) do |args|
>>> args[0].hash % 64511 + 1024
>>>   end
>>> end
>>>
>>>
>>> I use it in a manifest this way:
>>> $ip_port = ip_port('www.example.com')
>>>
>>> The puppet agent runs every 30 minutes by default. It's a master/slave 
>>> v3.8 setup. When I run it manually, the value always comes back the same. 
>>> But when I leave it alone, at some point the value changes. I use this to 
>>> create ports for haproxy. Thanks for your help.
>>>
>>>
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/puppet-users/d2551534-236d-4598-b288-1faa7d3c6bb0%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/puppet-users/d2551534-236d-4598-b288-1faa7d3c6bb0%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Trevor Vaughan
>> Vice President, Onyx Point, Inc
>> (410) 541-6699 x788
>>
>> -- This account not approved for unencrypted proprietary information --
>>
>

-- 
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/msgid/puppet-users/92bf5ec3-5ad9-4289-9ee5-496dd8fe3239%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 rundown of my setup:

Red Hat linux 5.6 64-bit
puppet 2.6.7
passenger 3.0.7
rack 1.1.0
Apache httpd 2.2.3

I've got a painfully simple site.pp file:

  file { "/tmp/test1":
ensure => present
  }

The first time I ran "puppet agent --test" from a test host using the
above it created /tmp/test1 on the test host, but then I changed the
name to test2, re-ran it, and nothing happened.  After a bit of
troubleshooting I've discovered that no edits I make to site.pp are
applied unless I either restart Apache or manually touch site.pp
first.  Simply editing the file and saving it isn't enough.

I've verified that the clocks on both hosts are in sync - they're both
configured to use NTP & are fully synced.  I'm not sure what else to
check.  Any ideas why I'm seeing this behavior?

Thanks,

-Bruce

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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 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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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

2013-05-06 Thread P Cornellio
That's correct, my concern is permissions/ownership changes inside 
/etc/puppet on the master after doing commits/check-outs, especially when 
new manifests are added on clients, outside of the master, then committed 
to the repo and updated onto the master.  Our master currently has mixed 
ownership between both root and pe-puppet user.  I will go with the 
approach of using the pe-puppet user on the master.


On Monday, May 6, 2013 5:43:20 AM UTC-7, Bernardo Costa wrote:
>
> I suppose your concerns are about the check-outs of the svn repo on the 
> puppet root direcctory, not about permissions and ownership inside the 
> repo. Once you do svn co command as your user (not recommended), the new 
> files will be created having being owned by you. It might fail if you user 
> does not have permission tho create or modify these files inside the puppet 
> tree source 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 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 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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[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 and how to to understand the whole behaviour 
> of puppet. 
> Installed a puppet master server, deployed 15 clients to test it on 
> some of our testing servers. 
> Written modules to get exactly what we want, and then installed puppet 
> dashboard which work really fine. 
>
> My question might sound a bit noobish but I'm stuck on that point and 
> I really don't like to don't understand every part of a tool. 
> What is the use of adding "groups" and "class" in the dashboard ? 
> It seems that the dashboard don't see your class from the modules (saw 
> that it will be corrected soon), but what is the point to creating 
> class in the GUI ? Can you do anything with that ? and if yes will 
> that not spread the config through dashboard + puppet config files, 
> it'll be messy to maintain  
> Same question with the groups, I understand that you can assign class 
> to groups so it's easyer to add a server in a global behavior but it 
> only uses class from dashboard . And is there a way to create such 
> group in puppet config files (if yes I didn't manage to find it ...) ? 
>
> Thx a lot for your time and to all the 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/msgid/puppet-users/6648be15-2a83-46af-b3e1-692c139a8a3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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/msgid/puppet-users/222aad39-ab37-4516-96e7-758606a1a700%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 172.20.6.22
Error: Host 172.20.6.22 failed: Error 403 on SERVER: Forbidden request: 
172.20.6.207(172.20.6.207) access to /run/172.20.6.22 [save] authenticated 
 at :115

172.20.6.22 finished with exit code 2
Failed: 172.20.6.22


In puppet master auth.conf i added following entry:
path /run
method save
allow *

In puppet client puppet.conf  change listen=true.

Please advice me.

Regards,
Suresh

-- 
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/msgid/puppet-users/ff3298b3-a1bc-4209-b16f-138c9facb126%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 kick is working fine from my puppet master. 
>
> Triggering 
>> Getting status
>> status is success
>>  finished with exit code 0
>> Finished
>
>
> But getting following error in foreman UI. 
>
> Some or all hosts execution failed, Please check log files for more 
>> information
>
>
> In /etc/foreman-proxy/settings.yml i have changed :log_level: DEBUG/INFO 
> but there is no log detected when i run "puppet kick" from 
> puppetmaster/foreman.
>
> Please help me.
>
> Regards,
> Suresh
>

-- 
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/msgid/puppet-users/252fc30c-706e-492f-a09c-c6f64f5abea2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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.

Please advise me.

Regards,
Suresh

-- 
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/msgid/puppet-users/0127ffd7-a88d-46d4-82f5-a99a48edfca4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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/msgid/puppet-users/eb7f4236-559c-4f1c-9fc4-4173b409ea6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 { '001 default redirection policy' :
table => 'nat',
chain => 'PREROUTING',
proto => 'tcp',
dport => '443',
jump => 'REDIRECT',
toports => '8443'
    }

But, puppetlabs/firewall creates following iptable rules: 
iptables -A PREROUTING -p tcp *-m multiport --dports *443 -m comment 
--comment "001 default redirection policy" -j REDIRECT --to-ports 8443

1REDIRECT   tcp  --  0.0.0.0/00.0.0.0/0   multiport 
dports 443 /* 002 default redirection policy */ redir ports 8443

Kindly help me

Regards,
Suresh

-- 
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/msgid/puppet-users/02bac480-82c6-4420-bb42-0b4ba5dfeca1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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: Windows service provider references a non-existent 
> class 
> * PUP-3190: "each" no longer supported in Puppet 3.7.0
> * PUP-3191: Symlinks to missing targets cause a File Not Found 
> error instead of a warning
> * PUP-3177: Resource titles ending with square brackets fail
> * Several fixes for directory environments
>
> Read the release notes here: 
> https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html
> Installation instructions are here: 
> https://docs.puppetlabs.com/guides/install_puppet/pre_install.html
>
> To track issues related to this release, you can follow the following JIRA 
> queries:
> * List of all bugs fixed in 3.7.1: 
> https://tickets.puppetlabs.com/secure/ReleaseNote.jspa?projectId=10102&version=11854
> * New issues introduced in 3.7.1: 
> https://tickets.puppetlabs.com/issues/?filter=12673
>
> If there are bugs that you're tracking, remember we now have "nightly" 
> repositories available with packaged builds for our most-used operating 
> systems. To use them, follow the install guide here: 
> https://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#using-the-nightly-repos
>
> -- 
> Andrew Parker
> a...@puppetlabs.com 
> Freenode: zaphod42
> Twitter: @aparker42
> Software Developer
>
> *Join us at **PuppetConf 2014, **September 20-24 in San Francisco - *
> www.puppetconf.com 
>  

-- 
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/msgid/puppet-users/1c6b7331-ac0d-4083-a9dd-a2379a7f4053%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
getting following error.

"Could not retrieve catalog from remote server: execution expired"


To fix this,   I have stopped puppet agent in 900+ nodes.   And started 
each agent with some intervals so that it can be shared to all minutes.   
But it helped only for one day.  

Kindly refer the attached image.  And suggest me any solution. 

Thanks & Regards,
Suresh.P



-- 
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/msgid/puppet-users/f9e78c5b-ab50-4f76-a2ca-37429a557623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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  WEBrick::HTTPServer#start done.
[2014-12-01 00:01:02] INFO  WEBrick::HTTPServer#start: pid=28813 port=8139
[2014-12-02 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-02 00:01:02] INFO  WEBrick::HTTPServer#start: pid=11383 port=8139
[2014-12-03 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-03 00:01:02] INFO  WEBrick::HTTPServer#start: pid=26301 port=8139
[2014-12-04 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-04 00:01:02] INFO  WEBrick::HTTPServer#start: pid=8863 port=8139
[2014-12-05 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-05 00:01:02] INFO  WEBrick::HTTPServer#start: pid=23908 port=8139
[2014-12-06 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-06 00:01:02] INFO  WEBrick::HTTPServer#start: pid=6618 port=8139
[2014-12-07 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-07 00:01:02] INFO  WEBrick::HTTPServer#start: pid=21677 port=8139
[2014-12-08 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-08 00:01:02] INFO  WEBrick::HTTPServer#start: pid=4326 port=8139
[2014-12-09 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-09 00:01:02] INFO  WEBrick::HTTPServer#start: pid=19402 port=8139
[2014-12-10 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-10 00:01:02] INFO  WEBrick::HTTPServer#start: pid=2205 port=8139
[2014-12-11 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-11 00:01:03] INFO  WEBrick::HTTPServer#start: pid=17460 port=8139
[2014-12-12 00:01:01] INFO  WEBrick::HTTPServer#start done.
[2014-12-12 00:01:02] INFO  WEBrick::HTTPServer#start: pid=1594 port=8139

Regards,
Suresh

-- 
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/msgid/puppet-users/be924996-f099-4f2b-887c-710cc6f680fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/init.d/puppet reload > /dev/null 2>&1 
|| true
  endscript
}

-Suresh

On Monday, 15 December 2014 19:02:14 UTC+5:30, Felix.Frank wrote:
>
> On 12/12/2014 02:37 PM, Dirk Heinrichs wrote: 
> >> 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. 
> > 
> > That's not the agent, it's the master. Logrotate cronjob 
> (/etc/cron.daily)? 
>
> I'm not entirely convinced that an agent with the listen option would 
> not start a WEBrick server as well. 
>
> But yes, logrotation and friends are a likely suspect. 
>
> Cheers, 
> Felix 
>

-- 
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/msgid/puppet-users/c9de8d57-b60c-46c6-9bf4-29cb013f82c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet agent restarting everyday?

2014-12-18 Thread Suresh P
Becase of this restart.   My 1200 puppet agent runtime changed and so all 
1200 puppet agents try to connect puppetmasters at same time because of 
this most of the agent in out-of-sync or error stat. 

Regards,
Suresh. 

On Tuesday, 16 December 2014 20:10:21 UTC+5:30, Dirk Heinrichs wrote:
>
>  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
>   postrotate
>   pkill -USR2 -u puppet -f 'puppet master' || true
>   [ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload > /dev/null 2>&1 
> || true
>   endscript
> }
>
>
> Yes, it does, although it shouldn't. "/etc/init.d/puppet reload" sends a 
> SIGHUP signal to the puppet agent, which restarts it. However, according to 
> puppet-agent(8), this action should better be sending a SIGUSR2 ("Close 
> file descriptors for log files and reopen them. Used with logrotate."), 
> which wouldn't trigger an agent restart.
>
> Should this be considered a bug in /etc/init.d/puppet?
>
> Bye...
>
> Dirk
> -- 
>
> *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
> *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
> *Tel*: +49 2226 159 (Ansage) 1149
> *Email*: d...@recommind.com 
> *Skype*: dirk.heinrichs.recommind
> www.recommind.com
>  

-- 
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/msgid/puppet-users/06c18629-f482-4722-83c2-226ffabf11dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 all agents trying to connect the puppet 
masters at same polling interval. 

Regards,
Suresh.

On Tuesday, 11 November 2014 21:18:42 UTC+5:30, Christopher Wood wrote:
>
> Following up to myself since it turned out that running puppet agents via 
> cron was better for us due to one important feature... 
>
>
> [cwood@client ~]$ mcod puppet runonce --environment=puppetupgrades 
> --no-splay -F hostname=puppetmasterlab 
> running: mco puppet -c /home/cwood/.mcollective.dev runonce 
> --environment=puppetupgrades --no-splay -F hostname=puppetmasterlab 
>
>  * [ > ] 1 / 1 
>
>
> puppetmasterlab.domain.comRequest Aborted 
>Cannot specify any custom puppet options when the daemon is running 
>
>
> ...I can do agent runs using other environments with mcollective. 
>
> It's interesting how things work out over time. 
>
>
>
> On Thu, Nov 06, 2014 at 12:22:04PM -0500, Christopher Wood wrote: 
> > On Thu, Nov 06, 2014 at 09:28:32AM +0100, Felix Frank wrote: 
> > > On 11/06/2014 09:25 AM, james.e...@fasthosts.com  wrote: 
> > > > 
> > > > If that fails, you could try running the puppet agent from a cron 
> job 
> > > > instead with randomised start times as per the below link. 
> > > 
> > > +1 
> > > 
> > > I have yet to see a disadvantage of cron vs. the background agent. 
> > 
> > (Apparently I enjoy splitting tiny hairs in a thread branch. Possibly 
> rhubarbing on, but here goes.) 
> > 
> > Cultural... 
> > 
> > In my experience, it is easier to tell people that any host where an 
> agent is running is a puppetized host. I don't understand why it's more 
> difficult to read /etc/motd or grep root's crontab but that's probably my 
> view of things and not shared elsewhere. (This is more for the transition 
> period as everything goes under puppet management.) 
> > 
> > And then a manager might go and tell everybody that a host with an agent 
> running is a puppetized host and it's hard to go and change puppet methods 
> without requiring retraining. Your puzzlement at the difficulty level of 
> changing from agent to cron likely matches mine. 
> > 
> > Technological... 
> > 
> > The fqdn_rand() function doesn't necessarily spread things as evenly as 
> we might expect given randomness over large ranges. To illustrate, 
> fictional example: 
> > 
> > $ for x in `seq 1 1`; do echo "notice(fqdn_rand(60, 'host${x}.
> cwood.com'))"; done >/tmp/xx.pp 
> > $ puppet apply --color=false /tmp/xx.pp | grep Scope | awk '{print $3}' 
> | sort | uniq -c | sort -rn >/tmp/yy 
> > $ head -5 /tmp/yy 
> > 199 1 
> > 195 51 
> > 188 52 
> > 184 55 
> > 184 48 
> > $ tail -5 /tmp/yy 
> > 151 9 
> > 150 46 
> > 145 5 
> > 144 2 
> > 141 19 
> > 
> > Obviously using cron I might choose something different than 
> run-on-a-random-minute, but I will still be a bit suspicious about this. 
> > 
> > Also, cron isn't necessarily good at running things intermittently over 
> less clock-friendly periods. If I'd like something to run every 47 minutes, 
> just to pick, that's going to bit a bit harder to express with cron. 
> > 
> > 
> > 
> > > -- 
> > > 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...@googlegroups.com . 
> > > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/545B3130.90007%40alumni.tu-berlin.de.
>  
>
> > > For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/20141106172204.GA26122%40iniquitous.heresiarch.ca.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/msgid/puppet-users/3ae5eb7d-0ea4-4d4a-810c-f414fffd3b85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
production node group only. 

When I run 'puppet agent -tv' all gets configured correctly, but when I try 
to configure it with the code in the development directory using 'puppet 
agent -tv --environment=development' I see the message:

 Warning: Local environment: "development" doesn't match server 
specified node environment "production", switching agent to "production".

I've spent a lot of time trying to resolve this problem to no avail. I'd 
appreciate a little help.

Many thanks
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0d5bce83-aab4-42e5-aa0f-df8c334b4108%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/bc772ce4-afa9-48d9-b549-a5822eff9507%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7bba09c5-b8b1-40be-9a7f-5e23a168dfa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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. 
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e7f5f0ad-f915-4030-869e-f9d0374ef3fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 server 
> doesn't recognize an environment called 'none'. The environment I want them 
> to use is called 'Production'.
>
> This is the error that I'm getting on puppet runs
>
> Error: /Stage[main]/Php::Configure/File[/etc/php.ini]: Could not evaluate: 
> *Could 
> not retrieve information from environment none source(s) *
> puppet:///modules/php/php.ini
> Error: 
> /Stage[main]/Lumberjack::Config/File[/etc/logstash/lumberjack.conf]: *Could 
> not evaluate: Could not retrieve information from environment none *source(s) 
> puppet:///modules/lumberjack/lumberjack.conf
>
>  I'm on puppet 3.7 on client and server
>
> [root@ops:~] #puppet --version
> 3.7.0
>
> My puppet conf:
>
> [main]
> logdir = /var/log/puppet
> rundir = /var/run/puppet
> ssldir = $vardir/ssl
> privatekeydir = $ssldir/private_keys { group = service }
> hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
> autosign   = $confdir/autosign.conf { mode = 664 }
>
> [agent]
> classfile = $vardir/classes.txt
> localconfig = $vardir/localconfig
> default_schedules = false
> report= true
> pluginsync= false
> masterport= 8140
> environment   = production
> certname  = puppet.mydomain.com
> server= puppet.mydomain.com
> listen= false
> splay = false
> runinterval   = 1800
> noop  = false
> show_diff = false
> configtimeout = 120
>
> [master]
> autosign   = $confdir/autosign.conf { mode = 664 }
> reports= foreman
> external_nodes = /etc/puppet/node.rb
> node_terminus  = exec
> ca = true
> ssldir = /var/lib/puppet/ssl
> certname   = puppet.mydomain.com
> [development]
> modulepath = 
> /etc/puppet/environments/development/modules:/etc/puppet/environments/common:/usr/share/puppet/modules
> config_version =
> [production]
> modulepath = /etc/puppet/environments/production/modules
> config_version =
>
> Could some one please let me know how I can get the client nodes to 
> register under the correct environment? 
>
> Thanks
> Tim
>  

-- 
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/msgid/puppet-users/8246d7a2-1f9b-47a1-8b8f-5145369e4f52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] inline_template not working after migrated to puppet5

2018-07-09 Thread Suresh P
Hi,

I used following code in puppet3.8.x,  it worked well.  

After i migrated to Puppet5 it throws error. 

$header="LD_LIBRARY_PATH=$destdir:\$LD_LIBRARY_PATH\n\nexport 
LD_LIBRARY_PATH\n"
$content = inline_template('<%= header+"\n"+ports.map {|port| 
memcache_command+" -m "+memory_per_instance+" -p "+port+" 
&"}.join("\n")+"\n" %>')
file { "$destdir/startmemcached.sh":
ensure => file,
owner => $title,
group => $title,
mode => '0744',
content => inline_template($content),
}

Error:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: 
Server Error: Evaluation Error: Error while evaluating a Resource 
Statement, Evaluation Error: Error while evaluating a Function Call, Failed 
to parse inline template: undefined local variable or method `header' for 
# (file: 
/home/sas/in2_puppet/environments/production/modules/pkg/manifests/memcache/installmemcache.pp,
 
line: 45, column: 12) (file: 
/home/sas/in2_puppet/environments/production/modules/in2/manifests/memcache/common.pp,
 
line: 13) on node 


Can you help me on this.

Regards,
Suresh 

-- 
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/msgid/puppet-users/73deeec3-137f-4c05-9e8f-a63834f6e5ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 projecting overtones of virtues or 
deficiency is overstated here.  You might have well said:


yum will 'do what I mean, not what I said' even if it
would result in a useless installation and
recklessly add and remove whole swaths of packages to
satisfy deps; rpm will carefully limit itself to not
going beyond what is asked to protect your system until
the person seeking the transaction enumerates all deps
in a single command trasaction

Each program is just a mindless tool, with no capacity for for 
beneficence or malice.


Both tools use the RPM database, accessible through 'librpm', 
and of course Puppet might be extended to consult this 
database natively rather than resorting to the present rather 
ugly 'exec' command which ignores this source of information 
[thus forcing a need for knowledge of th4 package state and 
dependency trees of all potentially packages to manage, 
exterior to a specific machine into the equasion]


The program design for Yum is not enabled to proceed to 
perform a transaction without the general explicit 
confirmation with the '-y' command line option [applicable to 
both additions and removals, assuning it has been provided a 
set of 'repositories' with 'closure']


RPM (as shipped by Red Hat) is designed to not add or remove 
packages which have leaf node dependencies beneath it without 
being explicitly instructed to ignore such potential error 
conditions: the --nodeps and --force options.  The issue of 
automated package retrieval and dependency is partially out of 
scope for RPM in the for under which Red hat presently ships 
it, but can be done inder alternative vendor's approaches, 
with a so called 'rpmdb' database


-- Russ herrold

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Need advice on managing large Centos environment

2010-09-22 Thread R P Herrold

On Wed, 22 Sep 2010, Leslie Giles wrote:


We have an engineering environment of around 200 Centos servers, plus a
production environment of roughly the same size. Currently, when we roll out
a new server, we do a 'yum update' so the new server has the latest
packages; however this means that just about every server has a different
set of package versions - a system rolled out today will have different
versions from one rolled out last month, and that will have different
versions from one rolled out last year.


 ...


Has anybody else been faced with this problem, and if so, how did you
resolve it?


Let's consider just the problem of 'package version skew; and 
solve it


1. Set up a local mirror of the centos external mirrors, and 
call it 'incoming'


2. Optionally, set a sub-mirror of 'incoming' called 'vault', 
and mirror in a fashion that does NOT delete old content no 
longer present on 'incoming'


3. set a third mirror called 'testing', which 'picks and 
chooses' selected packages to test, and their dependencies 
(see the package: yum-utils for some tools to permit 
confirming that one has 'closure' of those dependencies)


4. Test on your pre-deployment 'bench' against 'testing' 
until you have a change-set you wish to deploy throughout the 
universe of your boxes under management.  Obviously, several 
'testing' mirrors can be set up, for differing classes of 
machines


5. FINALLY, have a master distribution mirror called 'rtm' 
that has a change-set from a 'testing' mirror deployed to it. 
Remove the stock repository specification files from

/etc/yum.repos.d/
and deploy local variants to taste, that point at 'rtm'. 
Again, several several 'rtm' mirrors can be set up, for 
differing classes of machines


Something like this to ensure coherency of a enterprise wide 
deployment is usually mandated by a Change Control Board 
(explicitly, or implicitly).  Obviously, other aspects of 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 'rtm' (bottom up)]


-- Russ herrold

end
==
 .-- -... ---.. ... -.- -.--
Copyright (C) 2010 R P Herrold
  herr...@owlriver.com
   My words are not deathless prose,
  but they are mine.

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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.18-194.el5
kernel-2.6.18-194.17.4.el5

This is a long standing bug that currently seems to have no action scheduled 
for it.


https://projects.puppetlabs.com/issues/1720


gee -- a two year old bug

This 'issue' is readily solveable by a person running their 
mirror locally of the desired content --


Upstreams retire content.  If you are counting on being able 
to access a specific version, run a mirror


-- Russ herrold
herrold at centos dot org

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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 may 
need to do version updateing, or DB recovery, and such -- it 
is not an atomic operation and frankly cannot ever be.  a 
PGSQL backend would be even harder  ;)

> This confuses
> puppet. The RPM is installed, and the service is started in quick
> succession. When puppet runs a 'service check mysql', since mysql
> hasn't fully completed it's startup yet, the service script returns
> that MySQL isn't running, and puppet goes ahead and starts a second
> copy.

seems to me like puppet needs to have a better retry mechanism 
to confirm a failure of a running database, rather than some 
hubris of 'infinite wisdom' on a condrestart decsion in a 
server package install.

Fixing the problem in puppet's check by adding a backoff and 
retry a time or two on an asserted non-presence of the DB 
comes to mind.

-- Russ herrold

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[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 of the protections of the initscript is a win.

-- Russ herrold

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[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 outside of its validity date whould 
not be trusted anyway [dunno that the code checks this, but 
...]


Why not issue them out just a month, and then let them expire?

If needed again, push a new one with a new expiration date 
out.  Let the passage of time and a system design handle the 
implicit 'no longer trusted' decision, to avoid needing to 
maintain a CRL list of more than a couple of entries tops


-- Russ herrold

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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/publications/login/2010-02/index.html

... doing capacity planning for puppet presently may represent 
a 'premature optimization'


The seeming speed and scaling differences between CFengine 
and puppet are dramatic, and one has to ask if puppet is the 
right tool to bet on, in its present form


-- Russ herrold

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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
[root@puppet conf.d]# cat /etc/*release*
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
cpe:/o:centos:linux:6:GA
[root@puppet conf.d]#


At a number of places (forums) I find that it is not supported.

I also installed and configured puppet dashboard which is running on port 
3000. I am curious to know what runs on port 8140? The document root 
specified on the file puppetmaster.conf
[root@puppet conf.d]# ll /usr/share/puppet/rack/puppetmasterd/public/
total 0

is empty. If I use *dashboard* do I still need the default puppet web page?

[root@puppet ~]# cd /etc/httpd/conf.d/
[root@puppet conf.d]# ll
total 36
-rw-r--r--. 1 root root 4129 Nov 29 15:18 dashboard-vhost.conf
-rw-r--r--. 1 root root 1932 Nov 29 20:36 puppetmaster.conf
-rw-r--r--. 1 root root  392 Aug 13 23:00 README
-rw-r--r--. 1 root root   21 Nov 29 15:01 sample.html
-rw-r--r--. 1 root root 9473 Aug  2 17:29 ssl.conf
-rw-r--r--. 1 root root  299 Aug  2 17:29 welcome.conf




-- 
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/msgid/puppet-users/0b0703ca-7fa3-4862-9e66-dd2fa19d5a7e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 https_proxy=my.proxy.com'
>
> I hope this helps.
>
> Stephen
>
>

-- 
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/msgid/puppet-users/5d640621-d1e3-40f2-a3ee-f40db3c7b27a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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@puppet-server-new ~]# find / -name windows.rb
/opt/puppet/libexec/mcollective/mcollective/util/puppet_agent_mgr/v3/windows.rb
/opt/puppet/libexec/mcollective/mcollective/util/puppet_agent_mgr/v2/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/file/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/service/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/exec/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/package/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/facter/util/ip/windows.rb
/opt/puppet/share/puppet/modules/reboot/lib/puppet/provider/reboot/windows.rb
/opt/puppet/share/puppet/modules/pe_common/lib/facter/windows.rb
/opt/puppet/share/puppet/modules/pe_mcollective/files/plugins/util/puppet_agent_mgr/v3/windows.rb
/opt/puppet/share/puppet/modules/pe_mcollective/files/plugins/util/puppet_agent_mgr/v2/windows.rb
/opt/puppet/share/vendor/ruby/1.9.1/gems/sass-3.2.9/vendor/listen/lib/listen/adapters/windows.rb
/root/facter-1.7.3/lib/facter/util/ip/windows.rb
/var/opt/lib/pe-puppet/lib/puppet/provider/reboot/windows.rb
/var/opt/lib/pe-puppet/lib/facter/windows.rb
/usr/lib/ruby/site_ruby/1.8/facter/util/ip/windows.rb

I see a bunch of windows.rb files.

I made the changes to the below one on puppetmaster box.
[root@puppet-server-new ~]# vi 
/usr/lib/ruby/site_ruby/1.8/facter/util/ip/windows.rb


Still the same issue on Windows 2012 Hyper-V box running MSCS
C:\Users\administrator.A1000>puppet agent -t
Info: Retrieving plugin
Error: Could not retrieve local facts: undefined method `gsub' for 
nil:NilClass
Error: Failed to apply catalog: Could not retrieve local facts: undefined 
method
 `gsub' for nil:NilClass


On Friday, October 4, 2013 12:17:38 AM UTC+5:30, Rob Reynolds wrote:
>
> This verifies for us that this is a gating issue. 
>
> Would you feel comfortable helping us verify that we've fixed this issue 
> for you?
>
>
> https://github.com/ferventcoder/facter/blob/874a5a96ac5fa778c50f1e93424850022b1756cf/lib/facter/util/ip/windows.rb#L46-L47
>
>
>
>
> On Thu, Oct 3, 2013 at 1:42 PM, Christian Koep 
> > wrote:
>
>> Yes, thats all i got from *facter --trace --debug*
>>
>>
>> On Thu, Oct 3, 2013 at 8:41 PM, Rob Reynolds 
>> 
>> > wrote:
>>
>>> Was this the entire log (minus anything you feel sensitive)?
>>>
>>>
>>> On Thu, Oct 3, 2013 at 1:15 PM, cko >wrote:
>>>
 https://gist.github.com/anonymous/6814400


 On Thursday, October 3, 2013 5:23:05 PM UTC+2, Rob Reynolds wrote:

> You should be able to run 
>
> facter --trace --debug
>
>
> On Wed, Oct 2, 2013 at 5:18 PM, cko  wrote:
>
>> Hi Ethan,
>>
>> what's the exact command that i would have to use? 
>>
>>
>> On Wednesday, October 2, 2013 11:35:29 PM UTC+2, Ethan Brown wrote:
>>
>>> Christian - 
>>>
>>> I'm doing the final verification of our fix, and was hoping that I 
>>> could get the output from Facter run by itself?
>>>
>>>
>>>
>>> On Fri, Sep 20, 2013 at 1:36 PM, Rob Reynolds 
>>> wrote:
>>>
  I would say with all of this in mind we move forward with a fix 
 where we look to see that the network adapter itself is also enabled. 
 This 
 is laid out in the ticket that I noted earlier.
  

 On Fri, Sep 20, 2013 at 7:44 AM, Rich Siegel wrote:

>  Exchange DAG is essentially a cluster and the adapter in question 
> the dag ip.
>
> My guess is the logic for adapters should be modded for when 
> netconnectionid is not null.
>
> In general don't try to mess with hidden adapters on dags unless 
> you understand ramifications.
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to puppet...@googlegroups.com.
>
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>



 -- 
 Rob Reynolds
 Developer, Puppet Labs

 Join us at PuppetConf 2014, September 23-24 in San Francisco
  
 -- 
 You received this message because you are subscribed to the Google 
 Groups "Puppet Users" group.
 To unsubscribe from this group and stop receiving emails fr

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
Thanks for your prompt answer.

I ran this on the windows (Hyper-V) node which  is running MSCS cluster.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\administrator.A1000>facter --trace --debug
←[0;32mNot an EC2 host←[0m
C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/facter/util/ip.r
b:39:in `alphafy': undefined method `gsub' for nil:NilClass (NoMethodError)
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/interfaces.rb:35:in `block (2 levels) in '
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/interfaces.rb:34:in `each'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/interfaces.rb:34:in `block in '
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/interfaces.rb:29:in `each'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/interfaces.rb:29:in `'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/loader.rb:95:in `load'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/loader.rb:95:in `load_file'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/loader.rb:46:in `block (2 levels) in load_all'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/loader.rb:41:in `each'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/loader.rb:41:in `block in load_all'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/loader.rb:38:in `each'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/loader.rb:38:in `load_all'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/util/collection.rb:114:in `load_all'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter.rb:118:in `block (2 levels) in singletonclass'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/lib/fac
ter/application.rb:45:in `run'
from C:/Program Files (x86)/Puppet Labs/Puppet 
Enterprise/facter/bin/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 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@puppet-server-new ~]# find / -name windows.rb
>>
>> /opt/puppet/libexec/mcollective/mcollective/util/puppet_agent_mgr/v3/windows.rb
>>
>> /opt/puppet/libexec/mcollective/mcollective/util/puppet_agent_mgr/v2/windows.rb
>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/windows.rb
>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/file/windows.rb
>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/service/windows.rb
>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/exec/windows.rb
>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/package/windows.rb
>> /opt/puppet/lib/ruby/site_ruby/1.9.1/facter/util/ip/windows.rb
>>
>> /opt/puppet/share/puppet/modules/reboot/lib/puppet/provider/reboot/windows.rb
>> /opt/puppet/share/puppet/modules/pe_common/lib/facter/windows.rb
>>
>> /opt/puppet/share/puppet/modules/pe_mcollective/files/plugins/util/puppet_agent_mgr/v3/windows.rb
>>
>> /opt/puppet/share/puppet/modules/pe_mcollective/files/plugins/util/puppet_agent_mgr/v2/windows.rb
>>
>> /opt/puppet/share/vendor/ruby/1.9.1/gems/sass-3.2.9/vendor/listen/lib/listen/adapters/windows.rb
>> /root/facter-1.7.3/lib/facter/util/ip/windows.rb
>> /var/opt/lib/pe-puppet/lib/puppet/provider/reboot/windows.rb
>> /var/opt/lib/pe-puppet/lib/facter/windows.rb
>> /usr/lib/ruby/site_ruby/1.8/facter/util/ip/windows.rb
>>
>> I see a bunch of windows.rb files.
>>
>> I made the changes to the below one on puppetmaster box.
>> [root@puppet-server-new ~]# vi 
>> /usr/lib/ruby/site_ruby/1.8/facter/util/ip/windows.rb
>>
>>
>> Still the same issue on Windows 2012 Hyper-V box running MSCS
>> C:\Users\administrator.A1000>puppet agent -t
>> Info: Retrieving plugin
>> Error: Could not retrieve local facts: undefined method `gsub' for 
>> nil:NilClass
>> Error

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
That worked. Thank you :)

On Tuesday, December 3, 2013 1:57:52 AM UTC+5:30, Rob Reynolds wrote:
>
> This change would need to get applied to the node (the agent box). 
> Apologies I missed where you said you made the change to the puppet master 
> and not the node.
>
> Most likely 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 on the windows (Hyper-V) node which  is running MSCS cluster.
>> Microsoft Windows [Version 6.3.9600]
>> (c) 2013 Microsoft Corporation. All rights reserved.
>>
>> C:\Users\administrator.A1000>facter --trace --debug
>> ←[0;32mNot an EC2 host←[0m
>> C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/facter/util/ip.r
>> b:39:in `alphafy': undefined method `gsub' for nil:NilClass 
>> (NoMethodError)
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/interfaces.rb:35:in `block (2 levels) in '
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/interfaces.rb:34:in `each'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/interfaces.rb:34:in `block in '
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/interfaces.rb:29:in `each'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/interfaces.rb:29:in `'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/loader.rb:95:in `load'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/loader.rb:95:in `load_file'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/loader.rb:46:in `block (2 levels) in load_all'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/loader.rb:41:in `each'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/loader.rb:41:in `block in load_all'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/loader.rb:38:in `each'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/loader.rb:38:in `load_all'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/util/collection.rb:114:in `load_all'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter.rb:118:in `block (2 levels) in singletonclass'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/lib/fac
>> ter/application.rb:45:in `run'
>> from C:/Program Files (x86)/Puppet Labs/Puppet 
>> Enterprise/facter/bin/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 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@puppet-server-new ~]# find / -name windows.rb
>>>> /opt/puppet/libexec/mcollective/mcollective/util/
>>>> puppet_agent_mgr/v3/windows.rb
>>>> /opt/puppet/libexec/mcollective/mcollective/util/
>>>> puppet_agent_mgr/v2/windows.rb
>>>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/windows.rb
>>>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/file/windows.rb
>>>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/service/windows.rb
>>>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/exec/windows.rb
>>>> /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/package/windows.rb
>>>> /opt/pupp

[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 puppet server is behind a corporate authenticated proxy which prevents 
me from using "puppet module install". puppet bug!!*

post razor installation, I included the following lines in 

/etc/puppetlabs/puppet/manifests/site.pp

node puppet_master {
  include razor
}

now if i try to run the following commands:

puppet apply /etc/puppetlabs/puppet/manifests/site.pp
OR
puppet agent -t

on the same server, the commands hang

puppet apply hangs without any message while the following is shown on 
puppet agent -t

[root@centos-razor ~]# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/postgresql/lib/facter/postgres_default_version.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/concat/lib/facter/concat_basedir.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/pe_common/lib/facter/windows.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/pe_puppetdb/lib/facter/puppetdb_server_status.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/auth_conf/lib/facter/custom_auth_conf.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/firewall/lib/facter/ip6tables_version.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb
Info: Loading facts in 
/opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_version.rb
Info: Loading facts in 
/var/opt/lib/pe-puppet/lib/facter/puppetdb_server_status.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/windows.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
Info: Loading facts in 
/var/opt/lib/pe-puppet/lib/facter/postgres_default_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb
Info: Loading facts in 
/var/opt/lib/pe-puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in 
/var/opt/lib/pe-puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb
Info: Caching catalog for centos-razor.a100.lab
Info: Applying configuration version '1386442284'

the command does not complete!!

further i am looking for a simple installation guide with centos. i cant 
find one anywhere. most of the blogs and guides are for ubuntu.

what I need to know is the bunch of files and config files I have to keep 
on the tftp server for puppet/razor to work. if anyone can point me to 
that, it would be helpful.

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9e7b9931-cd55-40d8-9212-77444b5f96e2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 --force
Notice: Preparing to install into /etc/puppetlabs/puppet/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Error: Could not connect to https://forge.puppetlabs.com
  There was a network communications problem
The error we caught said '407 "authenticationrequired"'
Check your network connection and try again


setting the values http_proxy_host and http_proxy_port inside puppet.conf 
doesnt help either, as there is a no way I can set username and password 
there.


Is there a workaround for this?

-- 
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/msgid/puppet-users/9b5d67f5-42d2-4a45-88be-cb4c0f49821e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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
All,

Thanks for your responses. I managed to get beyond this point. It was an 
issue with some dependencies.

Thanks

On Tuesday, December 10, 2013 9:48:22 PM UTC+5:30, Jeff Bachtel wrote:
>
> What is the output of "puppet agent -t -d" ? The -d debug flag should give 
> you 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.
>>
>> 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 puppet server is behind a corporate authenticated proxy which 
>> prevents me from using "puppet module install". puppet bug!!*
>>
>> post razor installation, I included the following lines in 
>>
>> /etc/puppetlabs/puppet/manifests/site.pp
>>
>> node puppet_master {
>>   include razor
>> }
>>
>> now if i try to run the following commands:
>>
>> puppet apply /etc/puppetlabs/puppet/manifests/site.pp
>> OR
>> puppet agent -t
>>
>> on the same server, the commands hang
>>
>> puppet apply hangs without any message while the following is shown on 
>> puppet agent -t
>>
>> [root@centos-razor ~]# puppet agent -t
>> Info: Retrieving plugin
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/stdlib/lib/facter/root_home.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/stdlib/lib/facter/pe_version.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/postgresql/lib/facter/postgres_default_version.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/concat/lib/facter/concat_basedir.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/pe_common/lib/facter/windows.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/pe_puppetdb/lib/facter/puppetdb_server_status.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/auth_conf/lib/facter/custom_auth_conf.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/firewall/lib/facter/ip6tables_version.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb
>> Info: Loading facts in 
>> /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_version.rb
>> Info: Loading facts in 
>> /var/opt/lib/pe-puppet/lib/facter/puppetdb_server_status.rb
>> Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
>> Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
>> Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/windows.rb
>> Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
>> Info: Loading facts in 
>> /var/opt/lib/pe-puppet/lib/facter/postgres_default_version.rb
>> Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb
>> Info: Loading facts in 
>> /var/opt/lib/pe-puppet/lib/facter/ip6tables_version.rb
>> Info: Loading facts in 
>> /var/opt/lib/pe-puppet/lib/facter/iptables_persistent_version.rb
>> Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb
>> Info: Loading facts in 
>> /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb
>> Info: Loading facts in 
>> /var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb
>> Info: Caching catalog for centos-razor.a100.lab
>> Info: Applying configuration version '1386442284'
>>
>> the command does not complete!!
>>
>> further i am looking for a simple installation guide with centos. i cant 
>> find one anywhere. most of the blogs and guides are for ubuntu.
>>
>> what I need to know is the bunch of files and config files I have to keep 
>> on the tftp server for puppet/razor to work. if anyone can point me to 
>> that, it would be helpful.
>>
>> 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...@googlegroups.com .
>> To view 

[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 'docker save' 
command from another machine and copied to puppet master. I want to load* 
'image.tar'* as my docker image. I tried to to extract the tar file. But 
not working. Please help. 

Thanks in advance...

-- 
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/msgid/puppet-users/5866416e-a31e-4b58-89ed-28445a81fe59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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-cli alongside MySQL on Debian 9.3 using 
latest Puppet 5.4

I am using rotes and Profiles and in my wordpress.pp I have:

 # WP-CLI
 # TODO install latest wp-cli
 file { 'php-wpcli_latest_all.deb':
   path => '/tmp/php-wpcli_latest_all.deb',
   ensure => 'file',
   source => 'puppet:///modules/profile/wordpress/php-wpcli_1.5.0_all.deb',
 }

 package { 'wpcli':
   provider => dpkg,
   ensure   => installed,
   source   => '/tmp/php-wpcli_latest_all.deb',
#   require  => File['php-wpcli_latest_all.deb'],
#   require  => Service['mysql'],
#   require  => Service['mysql'],
 }

You see some of the require Statements I already tried ;-)

To install MySQL (or MariaDB) I am using puppetlabs/mysql module from the 
Forge. I am setting this up in a mysql Profile which I require in the former 
mentioned wordpress.pp.

In my node definition, I include mysql.pp before wordpress.pp

The error I get is the following (among similar ones):

Error: Execution of '/usr/bin/dpkg --force-confold -i 
/tmp/php-wpcli_latest_all.deb' returned 1: Selecting previously unselected 
package php-wpcli.
(Reading database ... 62113 files and directories currently installed.)
Preparing to unpack /tmp/php-wpcli_latest_all.deb ...
Unpacking php-wpcli (1.5.0) ...
dpkg: dependency problems prevent configuration of php-wpcli:
 php-wpcli depends on mysql-client | mariadb-client; however:
  Package mysql-client is not installed.
  Package mariadb-client is not installed.

dpkg: error processing package php-wpcli (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 php-wpcli
Error: /Stage[main]/Profile::Software::Wordpress/Package[wpcli]/ensure: change 
from 'purged' to 'present' failed: Execution of '/usr/bin/dpkg --force-confold 
-i /tmp/php-wpcli_latest_all.deb' returned 1: Selecting previously unselected 
package php-wpcli.
(Reading database ... 62113 files and directories currently installed.)
Preparing to unpack /tmp/php-wpcli_latest_all.deb ...
Unpacking php-wpcli (1.5.0) ...
dpkg: dependency problems prevent configuration of php-wpcli:
 php-wpcli depends on mysql-client | mariadb-client; however:
  Package mysql-client is not installed.
  Package mariadb-client is not installed.

dpkg: error processing package php-wpcli (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 php-wpcli


as I can install wp-cli using puppet when MySQL is already installed through 
puppet, this is clearly an issue of sequence. But I cannot find a way to solve 
this and to have MySQL installied before wp-cli.

Can anyone help me out, please?

Thanks, erhards

Jochen



  

-- 
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/msgid/puppet-users/19ADAF36-F85F-445E-AF5C-B59E47237BB8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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/msgid/puppet-users/5a99930e.46d3620a.a69c6.203e%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-03-05 Thread 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 Haeberle
Sent: 03 March 2018 13:43
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Unable to solve a require statement

Hi Peter,

Thanks for the tip. I tried that already, but it results in a

Error: Could not find resource 'Package[mysql-client]' in parameter 'require' 
(file: 
/etc/puppetlabs/code/environments/production/modules/profile/manifests/software/wordpress.pp,
 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’], 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-cli alongside MySQL on Debian 9.3 using 
latest Puppet 5.4
 
I am using rotes and Profiles and in my wordpress.pp I have:
 
# WP-CLI
# TODO install latest wp-cli
file { 'php-wpcli_latest_all.deb':
   path => '/tmp/php-wpcli_latest_all.deb',
   ensure => 'file',
   source => 'puppet:///modules/profile/wordpress/php-wpcli_1.5.0_all.deb',
}
 
package { 'wpcli':
   provider => dpkg,
   ensure   => installed,
   source   => '/tmp/php-wpcli_latest_all.deb',
#   require  => File['php-wpcli_latest_all.deb'],
#   require  => Service['mysql'],
#   require  => Service['mysql'],
}
 
You see some of the require Statements I already tried ;-)
 
To install MySQL (or MariaDB) I am using puppetlabs/mysql module from the 
Forge. I am setting this up in a mysql Profile which I require in the former 
mentioned wordpress.pp.
 
In my node definition, I include mysql.pp before wordpress.pp
 
The error I get is the following (among similar ones):
 
Error: Execution of '/usr/bin/dpkg --force-confold -i 
/tmp/php-wpcli_latest_all.deb' returned 1: Selecting previously unselected 
package php-wpcli.
(Reading database ... 62113 files and directories currently installed.)
Preparing to unpack /tmp/php-wpcli_latest_all.deb ...
Unpacking php-wpcli (1.5.0) ...
dpkg: dependency problems prevent configuration of php-wpcli:
php-wpcli depends on mysql-client | mariadb-client; however:
  Package mysql-client is not installed.
  Package mariadb-client is not installed.
 
dpkg: error processing package php-wpcli (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
php-wpcli
Error: /Stage[main]/Profile::Software::Wordpress/Package[wpcli]/ensure: change 
from 'purged' to 'present' failed: Execution of '/usr/bin/dpkg --force-confold 
-i /tmp/php-wpcli_latest_all.deb' returned 1: Selecting previously unselected 
package php-wpcli.
(Reading database ... 62113 files and directories currently installed.)
Preparing to unpack /tmp/php-wpcli_latest_all.deb ...
Unpacking php-wpcli (1.5.0) ...
dpkg: dependency problems prevent configuration of php-wpcli:
php-wpcli depends on mysql-client | mariadb-client; however:
  Package mysql-client is not installed.
  Package mariadb-client is not installed.
 
dpkg: error processing package php-wpcli (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
php-wpcli
 
 
as I can install wp-cli using puppet when MySQL is already installed through 
puppet, this is clearly an issue of sequence. But I cannot find a way to solve 
this and to have MySQL installied before wp-cli.
 
Can anyone help me out, please?
 
Thanks, erhards
 
Jochen
 
 
 
  
 
-- 
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/msgid/puppet-users/19ADAF36-F85F-445E-AF5C-B59E47237BB8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
 

-- 
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/msgid/puppet-users/5a99930e.46d3620a.a69c6.203e%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Grou

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

2018-03-06 Thread P C Kroon
Hi Jochen,

I’m going to give this back to the rest of the list since I’m out of my depth, 
and I don’t have the time to figure out the details at the moment. Good luck 
though 😊

Peter

From: Jochen Haeberle
Sent: 06 March 2018 00:48
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Unable to solve a require statement

Hi Peter,

The MySQL profile does indeed install the MySQL-client. But I can’t require it 
in the other profile class.

In class profile::software::wordpress I put  require profile::software::mysql, 
where I call the puppetlabs-mysql module to do the actual 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 Haeberle
Sent: 03 March 2018 13:43
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Unable to solve a require statement
 
Hi Peter,
 
Thanks for the tip. I tried that already, but it results in a
 
Error: Could not find resource 'Package[mysql-client]' in parameter 'require' 
(file: 
/etc/puppetlabs/code/environments/production/modules/profile/manifests/software/wordpress.pp,
 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’], 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-cli alongside MySQL on Debian 9.3 using 
latest Puppet 5.4
 
I am using rotes and Profiles and in my wordpress.pp I have:
 
# WP-CLI
# TODO install latest wp-cli
file { 'php-wpcli_latest_all.deb':
   path => '/tmp/php-wpcli_latest_all.deb',
   ensure => 'file',
   source => 'puppet:///modules/profile/wordpress/php-wpcli_1.5.0_all.deb',
}
 
package { 'wpcli':
   provider => dpkg,
   ensure   => installed,
   source   => '/tmp/php-wpcli_latest_all.deb',
#   require  => File['php-wpcli_latest_all.deb'],
#   require  => Service['mysql'],
#   require  => Service['mysql'],
}
 
You see some of the require Statements I already tried ;-)
 
To install MySQL (or MariaDB) I am using puppetlabs/mysql module from the 
Forge. I am setting this up in a mysql Profile which I require in the former 
mentioned wordpress.pp.
 
In my node definition, I include mysql.pp before wordpress.pp
 
The error I get is the following (among similar ones):
 
Error: Execution of '/usr/bin/dpkg --force-confold -i 
/tmp/php-wpcli_latest_all.deb' returned 1: Selecting previously unselected 
package php-wpcli.
(Reading database ... 62113 files and directories currently installed.)
Preparing to unpack /tmp/php-wpcli_latest_all.deb ...
Unpacking php-wpcli (1.5.0) ...
dpkg: dependency problems prevent configuration of php-wpcli:
php-wpcli depends on mysql-client | mariadb-client; however:
  Package mysql-client is not installed.
  Package mariadb-client is not installed.
 
dpkg: error processing package php-wpcli (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
php-wpcli
Error: /Stage[main]/Profile::Software::Wordpress/Package[wpcli]/ensure: change 
from 'purged' to 'present' failed: Execution of '/usr/bin/dpkg --force-confold 
-i /tmp/php-wpcli_latest_all.deb' returned 1: Selecting previously unselected 
package php-wpcli.
(Reading database ... 62113 files and directories currently installed.)
Preparing to unpack /tmp/php-wpcli_latest_all.deb ...
Unpacking php-wpcli (1.5.0) ...
dpkg: dependency problems prevent configuration of php-wpcli:
php-wpcli depends on mysql-client | mariadb-client; however:
  Package mysql-client is not installed.
  Package mariadb-client is not installed.
 
dpkg: error processing package php-wpcli (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
php-wpcli
 
 
as I can install wp-cli using puppet when MySQL is already installed through 
puppet, this is clearly an issue of sequence. But I cannot find a way to solve 
this and to have MySQL installied before wp-cli.
 
Can anyone help me out, please?
 
Thanks, erhards
 
Jochen
 
 
 
  
 
-- 
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.

[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 errors while executing the puppet agent on puppet 
master. 

Error: Facter: error while resolving custom facts in 
/var/opt/lib/pe-puppet/lib/facter/nodejs_stable_version.rb: Version is not 
a class
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Invalid parameter: 'sources' on Class[R10k] at 
/etc/puppetlabs/puppet/environments/integration/modules/master/manifests/setup.pp:15
 
on node master.abc.com

Snippet of my puppet.conf

[main]
certname = master.abc.com
vardir = /var/opt/lib/pe-puppet
logdir = /var/log/pe-puppet
rundir = /var/run/pe-puppet
basemodulepath = 
/opt/puppetlabs/puppet/modules:/etc/puppetlabs/puppet/modules/production/modules
environmentpath = /etc/puppetlabs/puppet/environments

.

Any help will be appreciated.

Thanks,
En

-- 
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/msgid/puppet-users/1dd3ec7b-a7ac-4c8b-83f2-51e8cf8a2db2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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',
  /123456789/ => 'account3',   
  /123456789/ => 'account4',   
  /123456789/ => 'account5',   
}
notify { " ${aws_account} " : }

-- 
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/msgid/puppet-users/e13e2084-50f7-436f-acc8-38f79a0282fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2024-12-08 Thread Mijarena “Mijarena” P .
Yes, there it is:

--- shell on s01 -
[root@s01 manifests]# pwd
/etc/puppetlabs/code/environments/production/manifests
[root@s01 manifests]# ls
default.pp  jancis.pp  s01.pp
[root@s01 manifests]#
[root@s01 manifests]# systemctl status puppetserver
● puppetserver.service - puppetserver Service
 Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; enabled; 
preset: disabled)
 Active: active (running) since Sat 2024-12-07 16:12:03 CET; 24h ago
Process: 7710 
ExecStart=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver start 
(code=exited, status=0/SUCCESS)
   Main PID: 7770 (java)
  Tasks: 65 (limit: 4915)
 Memory: 2.1G
CPU: 4min 45.274s
 CGroup: /system.slice/puppetserver.service
 └─7770 /usr/bin/java --add-opens 
java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED 
-Xms2g -Xmx2g 
-Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger 
-Dlogappender=F1 -XX:+CrashOnOutOfMemoryError 
-XX:ErrorFile=/var/log/puppetlabs/puppetserver/puppetserver_err_pid%p.log 
-cp 
"/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/server/data/puppetserver/jars/*"
 
clojure.main -m puppetlabs.trapperkeeper.main --config 
/etc/puppetlabs/puppetserver/conf.d --bootstrap-config 
/etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/
 
--restart-file /opt/puppetlabs/server/data/puppetserver/restartcounter

Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,099 
|-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6daae415 - The 
date pattern is '-MM-dd' from file name pattern 
'/var/log/puppetlabs/puppetserver/puppetserver-access-%d{-MM-dd}.%i.log.gz'.
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,099 
|-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6daae415 - 
Roll-over at midnight.
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,100 
|-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6daae415 - 
Setting initial period to 2024-12-07T15:09:58.215Z
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,101 
|-INFO in ch.qos.logback.core.model.processor.ImplicitModelHandler - 
Assuming default type [ch.qos.logback.access.PatternLayoutEncoder] for 
[encoder] property
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,115 
|-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active 
log file name: /var/log/puppetlabs/puppetserver/puppetserver-access.log
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,115 
|-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File 
property is set to 
[/var/log/puppetlabs/puppetserver/puppetserver-access.log]
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,115 
|-INFO in ch.qos.logback.core.model.processor.AppenderRefModelHandler - 
Attaching appender named [FILE] to null
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,115 
|-INFO in ch.qos.logback.core.model.processor.DefaultProcessor@4a8608b3 - 
End of configuration.
Dez 07 16:12:02 s01.randomdomain.bayern puppetserver[7770]: 16:12:02,115 
|-INFO in ch.qos.logback.access.joran.JoranConfigurator@518853e7 - 
Registering current configuration as safe fallback point
Dez 07 16:12:03 s01.randomdomain.bayern systemd[1]: Started puppetserver 
Service.
[root@s01 manifests]#
-- /shell on s01-

Martin Alfke schrieb am 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.  
wrote: 
> 

> [root@s01 manifests]# cat *pp

 


> node default { 
> notify { 'this node did not match any of the listed definitions': } 
> } 
> node 'jancis.randomdomain.bayern' { 
> file { 'C:/tmp/jancis.txt': 
> ensure => 'present', 
> content => 'This file is created by Puppet for the client jancis.', 
> } 
> } 
> node 'ronald' { 
> file { 'C:/tmp/ronald.txt': 
> ensure => 'present', 
> content => 'This file is created by Puppet for the client ronald.', 
> } 
> } 
> node 's01.randomdomain.bayern' { 
> file { '/tmp/s01.txt': 
> ensure => 'present', 
> content => 'This file is created by Puppet for the client s01.', 
> } 
> }[root@s01 manifests]# 
> 

-- 
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 visit 
https://groups.google.com/d/msgid/puppet-users/90fa31fa-6ddb-4084-8b8b-e216737c8af2n%40googlegroups.com.


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

2024-12-09 Thread Mijarena “Mijarena” P .
Ah thanks, that was something I was looking for (absolute new to puppet and 
didn't found this switch somehow)

PS C:\ProgramData\PuppetLabs\code\environments\production\manifests> puppet 
agent --test
Info: Refreshing CA certificate
Info: Refreshed CA certificate: xxx
Info: Refreshing CRL
Info: Refreshed CRL: XXX
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Notice: Requesting catalog from s01.randomdomain.bayern:8140 (192.168.0.107)
Notice: Catalog compiled by s01.randomdomain.bayern
Info: Caching catalog for jancis
Info: Applying configuration version '1733744720'
Notice: this node did not match any of the listed definitions
Notice: /Stage[main]/Main/Node[default]/Notify[this node did not match any 
of the listed definitions]/message: defined 'message' as 'this node did not 
match any of the listed definitions'
Notice: Applied catalog in 0.04 seconds

Ok, now the question:
My certificate listens to the name "jancis"
I did tried to use both:
--- snip --
node 'jancis.randomdomain.bayern' {
node 'jancis' {
--- /snip 

[... some testing ...}

Ok, I do thank for the help, because of the hint with the test i did again 
edit jancis.pp to begin with
node 'jancis' {

... 

What should I say, now it worked 
It looks even more weired to me now, but in my Sysadmin life I had a lot of 
weird things 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:
>
> --- shell on s01 -
> [root@s01 manifests]# pwd
> /etc/puppetlabs/code/environments/production/manifests
> [root@s01 manifests]# ls
> default.pp  jancis.pp  s01.pp
>
>
> Anything in the report, that could give a hint? What happens if you run 
> "puppet agent --test" on the Windows node? Do you get any errors?
>
> Bye...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
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 visit 
https://groups.google.com/d/msgid/puppet-users/53c4e6ee-e243-4902-b9df-199a3227d359n%40googlegroups.com.


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

2024-12-09 Thread Mijarena “Mijarena” P .
Well, I did had only "jancis" at first and it didn't worked, then I added 
the domainname. 
I just removed it again after your last post as another test.

dhei...@opentext.com schrieb am Montag, 9. Dezember 2024 um 14:14:57 UTC+1:

> Am Montag, dem 09.12.2024 um 03:59 -0800 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' {
>
>
> HTH...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
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 visit 
https://groups.google.com/d/msgid/puppet-users/f171bea1-f0e4-401b-a5ac-72885a17ca87n%40googlegroups.com.


[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.noarch
[root@s01 manifests]#

On Windows I do have
PS C:\ProgramData\PuppetLabs\code\environments\production\manifests> puppet 
--version
8.10.0

PS C:\ProgramData\PuppetLabs\puppet\etc> puppet resource service puppet
service { 'puppet':
  ensure   => 'running',
  enable   => 'true',
  logonaccount => 'LocalSystem',
  provider => 'windows',
}


This is the log on the server
[root@s01 manifests]# journalctl 2>&1 | tail -n 50 | grep puppet 
Dez 07 21:24:46 s01.randondomain.bayern puppet-agent[16868]: Requesting 
catalog from s01.randondomain.bayern:8140 (192.168.0.107)
Dez 07 21:24:46 s01.randondomain.bayern puppet-agent[16868]: Catalog 
compiled by s01.randondomain.bayern
Dez 07 21:24:46 s01.randondomain.bayern puppet-agent[16868]: Applied 
catalog in 0.01 seconds

I did this
PS C:\ProgramData\PuppetLabs\puppet\var> sc stop puppet && sc start puppet 
--debug --trace
but there re no Errors in the eventlog:
-- eventlog 
- System 
- Provider 
[ Name] Puppet
- EventID 1 
[ Qualifiers] 0
Version 0 Level 4 Task 0 Opcode 0 Keywords 0x80 - TimeCreated 
[ SystemTime] 2024-12-07T19:11:01.4894555Z
EventRecordID 4274 Correlation - Execution 
[ ProcessID] 38580 [ ThreadID] 0
Channel Application Computer jancis Security
- EventData 
Executing agent with arguments: - -
- /eventlog 

This are the manifest files
[root@s01 manifests]# cat *pp 
node default {
  notify { 'this node did not match any of the listed definitions': }
}
node 'jancis.randomdomain.bayern' {
  file { 'C:/tmp/jancis.txt':
ensure  => 'present',
content => 'This file is created by Puppet for the client jancis.',
  }
}
node 'ronald' {
  file { 'C:/tmp/ronald.txt':
ensure  => 'present',
content => 'This file is created by Puppet for the client ronald.',
  }
}
node 's01.randomdomain.bayern' {
  file { '/tmp/s01.txt':
ensure  => 'present',
content => 'This file is created by Puppet for the client s01.',
  }
}[root@s01 manifests]#


ronald is just a fake, because I wanted to test that this is not executed 
on Windows. I deleted that for another test but no different outcome
jancis should be executet, I tested it with jancis ony and with its fqdn
s01 is the server just to test functionality... and it is working

Linux/s01
[root@s01 manifests]# ls /tmp/s01.txt
/tmp/s01.txt

Windows/jancis
PS C:\ProgramData\PuppetLabs\code\environments\production\manifests> ls 
c:/tmp
PS C:\ProgramData\PuppetLabs\code\environments\production\manifests>


Well, it just is not happening!

I do not know where to look and what to do. No errors, puppetserver ca list 
--all lists all my certificates.
All is working nicely, except, that on the Windows client nothing is 
happening.

Any ideas?
Thanks for reading.

-- 
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 visit 
https://groups.google.com/d/msgid/puppet-users/0290a305-656e-45c5-b48c-8f5a718e56f0n%40googlegroups.com.


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

2015-05-25 Thread &#x27;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 Wibowo
  /___  /___/ /___/ /___  http://www.arifsaha.com/
 / / /   / /

--
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/msgid/puppet-users/alpine.OSX.2.20.1505251108400.1586%40macmini2014.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users]

2019-06-12 Thread &#x27;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/msgid/puppet-users/alpine.OSX.2.21.1906121336011.969%40macmini2014.local.
For more options, visit https://groups.google.com/d/optout.