Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Dirk Heinrichs
Am 21.01.2014 08:25, schrieb Jose Luis Ledesma: > I think this could be accomplished with exported resources, on every node > export a file with his IP, and collect the other ones. Then with a custom > script you could verify if the entry is on the hosts file. But still, how do you cope with n

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Jose Luis Ledesma
In fact, I think that is easier, with host exported resources. See:https://groups.google.com/forum/m/#!topic/puppet-users/uAxbiIYH6Q4 -- 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

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Jose Luis Ledesma
I think this could be accomplished with exported resources, on every node export a file with his IP, and collect the other ones. Then with a custom script you could verify if the entry is on the hosts file. About the offtopic dhcp vs hosts file, most clusters like to have the ips defined on t

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Peter Romfeld
well in the end i would have to add dns healthchecks too to the node spawning. The puppet /etc/hosts approach just looked nice and easy. I am on Amazon AWS, but i should be able to to it with nagios and some scripts On Tue, Jan 21, 2014 at 2:41 PM, Dirk Heinrichs wrote: > Am 21.01.2014 03:37,

Re: [Puppet Users] seeing too many change messages.

2014-01-20 Thread Muhammad Yousuf Khan
On Monday, January 20, 2014 8:01:13 PM UTC+5, Felix.Frank wrote: > > Hi, > > On 01/20/2014 03:25 PM, Muhammad Yousuf Khan wrote: > > hello guys, > > > > i am new to puppet and few days back have installed motd module for > > testing this is my first module working great however i just see t

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Dirk Heinrichs
Am 21.01.2014 03:37, schrieb Peter Romfeld: > I have a cluster where all nodes must use hostnames, so we use > /etc/hosts. I want to configure autoscaling for this cluster, but my > biggest problem is the hosts file, so when a new node comes up all > other nodes need to be notify that the hosts fi

[Puppet Users] Re: seeing too many change messages.

2014-01-20 Thread Muhammad Yousuf Khan
On Monday, January 20, 2014 7:25:18 PM UTC+5, Muhammad Yousuf Khan wrote: > > hello guys, > > i am new to puppet and few days back have installed motd module for > testing this is my first module working great however i just see too many > change messages since the day motd module has install

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Peter Romfeld
yes. I have a cluster where all nodes must use hostnames, so we use /etc/hosts. I want to configure autoscaling for this cluster, but my biggest problem is the hosts file, so when a new node comes up all other nodes need to be notify that the hosts file changed, so the make pull the new file. Tha

[Puppet Users] Re: Collector, Overriding Params and undef vars

2014-01-20 Thread William Leese
Created a function that generates a collector. Will use a different function to remove all undef-ed values from a hash and feed that to the fuction: https://github.com/wleese/puppet-create_collector -- You received this message because you are subscribed to the Google Groups "Puppet Users" gr

Re: [Puppet Users] How to manage SugarCRM config.php with Puppet?

2014-01-20 Thread Jose Luis Ledesma
Disclaimer: i dont know if this is posible at all. Augeas is able to parse XML, perhaps you can modify the php to load a xml, and use augeas to modify it. I don't have experience with augeas+XML, so this may be just a nonsense :) -- You received this message because you are subscribed to the G

Re: [Puppet Users] Augeas: Duplicate declaration

2014-01-20 Thread Reinaldo Lima
Almost there! =) My only change was '"host_entry_${name}" :' like you suggested, everything else in the code is like my first post, and the error now is: *"Could not evaluate: uninitialized constant Augeas::NO_MODL_AUTOLOAD"* *By the way, thank you so much for the help, this topic made me lear

[Puppet Users] Re: "You need rubygems to use Hiera"

2014-01-20 Thread Jonathan Gazeley
I fixed my own problem. Seems that when I installed dhoppe/postfix, and it automatically included a dependency dhoppe/puppet which seems to have overwritten some components of puppet. I immediately removed dhoppe/postfix but didn't notice that dhoppe/puppet was still in situ. Removing this and

[Puppet Users] Re: Subquery, regular query difference?

2014-01-20 Thread ak0ska
Forgot to mention that it's a PuppetDB issue. ;) On Monday, January 20, 2014 4:17:39 PM UTC+1, ak0ska wrote: > > Hello, > > We wanted to created a query, which would check the hostgroup fact of > machines that apply a certain type of resource declared in a certain > manifest file. We wanted to u

[Puppet Users] Subquery, regular query difference?

2014-01-20 Thread ak0ska
Hello, We wanted to created a query, which would check the hostgroup fact of machines that apply a certain type of resource declared in a certain manifest file. We wanted to use the 'select-resources' subquery as follows: curl -G -H "Accept: application/json" localhost:8080/v3/facts --data-url

Re: [Puppet Users] seeing too many change messages.

2014-01-20 Thread Felix Frank
Hi, On 01/20/2014 03:25 PM, Muhammad Yousuf Khan wrote: > hello guys, > > i am new to puppet and few days back have installed motd module for > testing this is my first module working great however i just see too > many change messages since the day motd module has installed. > this is what i se

[Puppet Users] Spacing in attributes

2014-01-20 Thread zerozerounouno
Hi, as far as I understand, spacing should usually not be an issue in manifests between the attribute name and the "arrow", right? For example, for a "host" type resource: ip => "192.168.1.1" …should be the same as: ip => "192.168.1.1" Is that right? It's useful to make manifests ea

Re: [Puppet Users] How to manage SugarCRM config.php with Puppet?

2014-01-20 Thread Erwin Bogaard
Hi Pete, thanks for your reply. I thought I replied to you last night, but Google doesn't show it. So here it is again: The difficulty with using a template, is that there are just too many exceptions between the instances. Some keys or arrays are exclusive to one or several, but not all, inst

[Puppet Users] seeing too many change messages.

2014-01-20 Thread Muhammad Yousuf Khan
hello guys, i am new to puppet and few days back have installed motd module for testing this is my first module working great however i just see too many change messages since the day motd module has installed. this is what i see in all the messages this message showed up as CHANGE in every a

Re: [Puppet Users] puppet ERROR 400

2014-01-20 Thread Felix Frank
Hi, On 01/15/2014 10:15 PM, Vassiliy Vins wrote: > Any ideas, why? where to look at? thnx honestly - no. But I do recommend to put all your manifests and files into modules and serve them from there. Refrain from using 'import'. I suppose that will work better for you. HTH, Felix -- You recei

Re: [Puppet Users] filebucket --local should have default bucket matching "apply"

2014-01-20 Thread Felix Frank
Hi, fwiw, I still use quite a lot of 2.7, when there was a standalone filebucket (not puppet filebucket). This defaulted to clientbucket just fine. I suspect you can solve this by adding a [filebucket] section to puppet.conf. Although I'm not sure whether this should be considered a workaround ra

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Felix Frank
Hi, On 01/20/2014 07:57 AM, Dirk Heinrichs wrote: >> I am using the puppet example42/hosts module to have a dynamic >> /etc/hosts file. >> Its working fine so far but i have one more requirement, i need to >> force update on all other nodes if one node changes or get added. > > This is what it is

Re: [Puppet Users] Problems with "onlyif" in Exec

2014-01-20 Thread Andrey Kozichev
Onliif looks at exit code, not at echo value. If you are piping - it will be exit code of the last command. Use grep -q or something to get a non-zero code On 20 Jan 2014 13:02, "Jan-Frederic Markert" < jan-frederic.mark...@codecentric.de> wrote: > Hey, > > we want to check a condition before ex

Re: [Puppet Users] dynamic /etc/hosts

2014-01-20 Thread Dirk Heinrichs
Am 20.01.2014 07:52, schrieb Peter Romfeld: > I am using the puppet example42/hosts module to have a dynamic > /etc/hosts file. > Its working fine so far but i have one more requirement, i need to > force update on all other nodes if one node changes or get added. This is what it is: an example.

[Puppet Users] Installed pupet , node_aws not showing up

2014-01-20 Thread Nathan Paul
Hi All, Newbie Starting with Puppet on ubuntu Installed puppet, puppetlabs/cloud_provisioner, gems guid and fog Puppet help not showing node_Aws command. What else i need to install Thanks in advance. NP -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] Problems with "onlyif" in Exec

2014-01-20 Thread Jan-Frederic Markert
Hey, we want to check a condition before executing some commands. If a line is existing in a list of architectures, the command should not run - and vice versa. So we use grep and count the words (wc -l). The expected behaviour: if the onlyif-command returns 0, execute. If not, don't. (accordin

[Puppet Users] Puppet open source node_aws

2014-01-20 Thread Nathan Paul
Hi All, I am just starting to setup Puppet on Ubuntu. Puppet node_aws commnad is not seen when I run puppet. Do I need to install any other packages, If I need to run puppet with AWS ec2. Thanks in advance for the help, NP -- You received this message because you are subscribed to the Google

[Puppet Users] "You need rubygems to use Hiera"

2014-01-20 Thread Jonathan Gazeley
Hi chaps, This morning I started running into an error. All my nodes started failing with: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: You need rubygems to use Hiera at /home/ispms/PUPPETROOT/environments/common/modules/uob_ntp/manifests/init.pp:5 on node dhcp

Re: [Puppet Users] puppet user context

2014-01-20 Thread Robert Turk
Am 17.01.14 11:43, schrieb Andrey Kozichev: You can get list of directories under /Users from facter and then build an array out of it and use this in your manifest. Thanks for your help. I will try this... Robert -- You received this message because you are subscribed to the Google Groups "P