Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Fabrice Bacchella
Thanks ! > Le 10 nov. 2016 à 23:47, Christopher Wood a > écrit : > > I reproduced this with 4.8.0 and filed a ticket. > > https://tickets.puppetlabs.com/browse/PUP-6914 > > Seems like it's a ruby thing? > > https://ruby-doc.org/core-2.1.8/File.html#method-c-expand_path > > https://github.co

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Christopher Wood
I reproduced this with 4.8.0 and filed a ticket. https://tickets.puppetlabs.com/browse/PUP-6914 Seems like it's a ruby thing? https://ruby-doc.org/core-2.1.8/File.html#method-c-expand_path https://github.com/puppetlabs/puppet/blob/master/lib/puppet/type/file.rb Usual disclaimer, not a programm

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Francois Lafont
Hi, I confirm the problem with the lastest version of Puppet (4.8.0) on my Ubuntu Trusty (ie puppet-agent 1.8.0) : --%<%<%<%<%<%<%<%<%<%<%<%<-- root@puppet ~ # puppet --version 4.8.0 root@puppet ~ # puppet apply -e "file {'/tmp/f': ensure => present,

Re: [Puppet Users] Puppet first run issue: Error 400 on SERVER: Failed when searching for node

2016-11-10 Thread Gavin Williams
What Rob said... This error is fairly typical if you're using something like Foreman as an ENC, and not creating the node in Foreman before the first Puppet run. Basically, whatever your ENC is needs to "know" about the node before it first dials in... HTH Gav On Thursday, 10 November 201

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread John Gelnaw
On Thursday, November 10, 2016 at 12:55:21 PM UTC-5, Fabrice Bacchella wrote: > > > > Le 10 nov. 2016 à 18:22, Rob Nelson > a > écrit : > > > > That said, who decided a tilde to start a file name was good for > anything but a temp file??? I understand you have no choice as a user, but > someo

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Fabrice Bacchella
> Le 10 nov. 2016 à 18:22, Rob Nelson a écrit : > > That said, who decided a tilde to start a file name was good for anything but > a temp file??? I understand you have no choice as a user, but someone > somewhere, somewhen, chose it :( because in the sort algorithm from glob, ~ is one of the

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Rob Nelson
Agreed, please sure the ticket link! That said, who decided a tilde to start a file name was good for anything but a temp file??? I understand you have no choice as a user, but someone somewhere, somewhen, chose it :( On Thursday, November 10, 2016, Christopher Wood wrote: > I can reproduce thi

Re: [Puppet Users] Puppet first run issue: Error 400 on SERVER: Failed when searching for node

2016-11-10 Thread Rob Nelson
This looks like your external node classifier /etc/puppet/node.rb is having some issues on first run. On Thursday, November 10, 2016, A.K. wrote: > Hi there, > > Puppet client version 3.8.7 > Every first puppet run I've got this error: > > Nov 10 12:01:30 myinstance-172 puppet-agent[935]: ( > /F

[Puppet Users] Puppet first run issue: Error 400 on SERVER: Failed when searching for node

2016-11-10 Thread A.K.
Hi there, Puppet client version 3.8.7 Every first puppet run I've got this error: Nov 10 12:01:30 myinstance-172 puppet-agent[935]: ( /File[/var/lib/puppet/lib/puppet/type/rabbitmq_vhost.rb]/ensure) defined content as '{md5}ff6fc35bb9c22b1c493b84adf6bb3167' Nov 10 12:01:31 myinstance-172 puppet-

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Christopher Wood
I can reproduce this using puppet 4.4.2 from puppet-agent 1.4.2, definitely seems like a bug. You can "cd ~user" in a bash shell so I wonder if somebody somewhere made something which works similarly. I'd be interested in watching the bug you file because I'm nosy. $ cat /tmp/x.pp file { '/tmp/

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Fabrice Bacchella
yes it works once removed. > Le 10 nov. 2016 à 16:13, Rob Nelson a écrit : > > I don't have an answer, but did you verify that when you remove the tilde, > the resource applies properly? If so, this does sound like a bug of some sort. > > > Rob Nelson > rnels...@gmail.com

Re: [Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Rob Nelson
I don't have an answer, but did you verify that when you remove the tilde, the resource applies properly? If so, this does sound like a bug of some sort. Rob Nelson rnels...@gmail.com On Thu, Nov 10, 2016 at 9:16 AM, Fabrice Bacchella < fabrice.bacche...@orange.fr> wrote: > I need a file called

Re: [Puppet Users] QUESTION: How can I iterate through the whole list of facters in an erb template?

2016-11-10 Thread Matt Zagrabelny
On Thu, Nov 10, 2016 at 6:25 AM, Victor Martinez wrote: > Hi there, > >I've been looking for a way of creating an erb file which contains all > the facter values. Any ideas how I can accomplish it? Reason: I'd like to > generate custom facters per module and populate those facter values as > J

[Puppet Users] QUESTION: How can I iterate through the whole list of facters in an erb template?

2016-11-10 Thread Victor Martinez
Hi there, I've been looking for a way of creating an erb file which contains all the facter values. Any ideas how I can accomplish it? Reason: I'd like to generate custom facters per module and populate those facter values as Jenkins Labels Thanks so much -- You received this message beca

[Puppet Users] puppet does not like ~ in file name

2016-11-10 Thread Fabrice Bacchella
I need a file called /etc/cron.hourly/~cronalive. I don't like the ~ but don't have real choice here. So I defined the following resource: file{'/etc/cron.hourly/~cronalive': } But if fails with: Error: Could not set 'file' on ensure: user cronalive20161110-32243-1wx31rr d