[Puppet Users] puppet repos on ubuntu 14.04

2014-04-21 Thread Matt McMahand
Hello, I was trying out ubuntu trusty over the weekend and am having some trouble installing puppet 3.5.1 from the puppetlabs repo. I've tried adding the repo and searching for the package, but no luck: cd /tmp wget -N https://apt.puppetlabs.com/puppetlabs-release-trusty.deb sudo dpkg -i

[Puppet Users] Re: Announcing our new quest based Learning VM

2014-04-21 Thread Jason Oakley
I'm trying this out today. Seems quite useful, however even when I perform the required tasks, it doesn't always mark them as complete. Eg. Conditions and Ordering quests. On Friday, 18 April 2014 09:45:17 UTC+10, Ben Ford wrote: Hi, We just rolled out the new and improved Learning VM — now

[Puppet Users] mco for linux is ok,but for windows display ‘unsubscribe’

2014-04-21 Thread KissPuppet
mco-client(RHEL6.4): [root@webui ~]# mco rpc puppet runonce operate=true environment=sgmprd tags=puppet_env -F hostname=node4 \ [ === ] 7 / 9debug 2014/04/21 15:10:05: rabbitmq.rb:149:in `receive' Waiting for a message from RabbitMQ

[Puppet Users] Re: Received certificate does not match private key.

2014-04-21 Thread Ulysses Tinajero
In the agent puppet.conf: server=FQDN does the FQDN in the agents puppet.conf match the private key FQDN in the puppet master in /var/lib/puppet/ssl/private_keys/? On Saturday, April 19, 2014 9:50:43 AM UTC-7, Chris Johnson wrote: I know this has been asked about before, I've searched it.

[Puppet Users] puppet apply stops with message Killed

2014-04-21 Thread Ádám Sándor
Hi, I'm having a problem with my puppet script hanging for a while then dying with the message Killed printed to the console. There is no further explanation of what happened but I'm suspecting some event propagation might get stuck and puppet may have some mechanism to kill the process if it

Re: [Puppet Users] puppetlabs/ntp failing to find operatingsystem fact...

2014-04-21 Thread Kyle Anderson
Is this not just a mixup between $::operatingsystem and $::osfamily? On Fri, Apr 18, 2014 at 3:41 PM, R. Tyler Croy ty...@monkeypox.org wrote: On 04/18/2014 10:24, Dennis Kirkpatrick wrote: I have run into a problem in using the puppetlabs/ntp module that I was not expecting. In calling on

[Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Dan Pasacrita
Hi everyone, I'm pretty new to puppet, and I was wondering if you guys to help me with something pretty basic. I'm attempting to write a module that will check a text file for a certain line of text, and if it doesn't find it, to add a that content in a new line. I'm pretty sure I can add the

[Puppet Users] Re: Hiera Performance Testing

2014-04-21 Thread David Danzilio
Thank you for your input Daniele! We're currently working to move to Puppet 3 but we've got such a large code base, so many people committing to the repo, and so much refactoring to do that it's a very complex and long term project. But I like a challenge! ;-) On Wednesday, April 16, 2014

Re: [Puppet Users] Re: Hiera Performance Testing

2014-04-21 Thread David Danzilio
Thank you Nan! On Wednesday, April 16, 2014 10:31:13 AM UTC-6, Nan Liu wrote: On Mon, Apr 14, 2014 at 12:35 PM, David Danzilio david.d...@gmail.comjavascript: wrote: Unfortunately, and I probably should've mentioned this in the OP, we're currently stuck on the 2.7 series. You should

[Puppet Users] Configure puppetdb to allow cross domain requests?

2014-04-21 Thread Bruce
Hi, I'm trying to do some interesting javascript integration between grafana and puppetdb. I'd like a grafana scripted dashboard to to make a puppetdb API call, to then create a list of hosts for a dashboard. However, this is a cross-domain request, so browsers don't allow it. With Apache,

Re: [Puppet Users] Debian jessie, puppetlabs dist-upgrade problem

2014-04-21 Thread Matthaus Owens
This is probably because the default ruby used to provide libxmlrpc-ruby and libopenssl-ruby*/ruby-openssl, but the rubies available in jessie do not. Because puppet depends on both of those packages, the upgrade does not succeed because apt can't find the needed dependencies. This has been fixed

Re: [Puppet Users] puppet repos on ubuntu 14.04

2014-04-21 Thread Matthaus Owens
Puppet hasn't been released for Ubuntu 14.04 yet. There were some dependency updates for the puppet package that are needed for Trusty that haven't been released yet. The commit with the fix (https://github.com/puppetlabs/puppet/commit/b6514b8dfe92a1e66c086fe1f45e5e7261bd45fb) should be released

[Puppet Users] Duplicate declaration problem

2014-04-21 Thread Sean Korten
So, I am trying to do something with a list (array) of users from hieara. Here is the yaml: profile::sysconfig::sftp_users: [ joe, bill, nancy ] In my profile I have a defined class debugUsers that I am calling with the array I got from hiera: class profile::sysconfig::sftpserver {

Re: [Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Steven Kurylo
On Mon, Apr 21, 2014 at 8:18 AM, Dan Pasacrita whitewind...@gmail.comwrote: Hi everyone, I'm pretty new to puppet, and I was wondering if you guys to help me with something pretty basic. I'm attempting to write a module that will check a text file for a certain line of text, and if it doesn't

[Puppet Users] puppet module permissions - librarian-puppet

2014-04-21 Thread treydock
I have noticed lately that on my development system (OS X) and my production Puppet master (CentOS 6.5) that when installing puppet modules using librarian-puppet the permissions of some modules and files is very restrictive to the point where the puppetmaster can't read the files. Some

Re: [Puppet Users] puppet module permissions - librarian-puppet

2014-04-21 Thread Robin Bowes
What umask are you using? R. On 21 Apr 2014 19:18, treydock treyd...@gmail.com wrote: I have noticed lately that on my development system (OS X) and my production Puppet master (CentOS 6.5) that when installing puppet modules using librarian-puppet the permissions of some modules and files is

[Puppet Users] Re: Duplicate declaration problem

2014-04-21 Thread Sean Korten
Found the problem. When passing an array to a define the default variable name for the elements of the array is $name. This works: define debugUsers { validate_string($name) notify { username: \${name}\: } } On Monday, April 21, 2014 11:31:52 AM UTC-6, Sean Korten wrote: So,

Re: [Puppet Users] Announcing our new quest based Learning VM

2014-04-21 Thread Jeff Bachtel
Is there by chance a torrent available of these files? For whatever reason, downloads.puppetlabs.com is being especially slow with the ovf file for me. Jeff On 04/17/2014 07:45 PM, Ben Ford wrote: Hi, We just rolled out the new and improved Learning VM — now with fun quests to learn Puppet

[Puppet Users] Installing multiple packages (via apt) on one command line...

2014-04-21 Thread Matt W
Hey we have a problem that I think we need to solve with a custom Puppet provider, but I could use a bit of help getting started. Overall the issue of being able to install multiple packages at-once has been discussed a ton of times (issue #2128 for example). We ultimately need to be able to

Re: [Puppet Users] puppet repos on ubuntu 14.04

2014-04-21 Thread Matt McMahand
Great, thanks for letting us know On Monday, April 21, 2014 1:09:31 PM UTC-4, Matthaus Litteken wrote: Puppet hasn't been released for Ubuntu 14.04 yet. There were some dependency updates for the puppet package that are needed for Trusty that haven't been released yet. The commit with the

Re: [Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Joachim Schrod
On 04/21/14 19:42, Kenton Brede wrote: Look into using file_line, it's part of stdlib. https://forge.puppetlabs.com/puppetlabs/stdlib Hmm, I don't detect any documentation of file_line at that URL. Could you post another link with documentation? Thanks, Joachim --

[Puppet Users] Augeas lens to change an arbitrary line in a file?

2014-04-21 Thread Joachim Schrod
Hi, I'm new to Puppet, and also new to Augeas. I want to change a line in a file. In particular, the file is /usr/share/ghostscript/${gs_version}/Resource/Init/gs_init.ps and the line is % /DEFAULTPAPERSIZE (a4) def that I want to change into /DEFAULTPAPERSIZE (a4) def Is Augeas the right

[Puppet Users] Re: Announcing our new quest based Learning VM

2014-04-21 Thread Jason Oakley
Turns out the Quest system only marks progress as completed if you use the full path to the files you are applying. I was already in the right directory so wasn't using the full path. On Monday, 21 April 2014 19:48:48 UTC+10, Jason Oakley wrote: I'm trying this out today. Seems quite useful,

Re: [Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Andreas Ntaflos
On 2014-04-22 00:10, Joachim Schrod wrote: On 04/21/14 19:42, Kenton Brede wrote: Look into using file_line, it's part of stdlib. https://forge.puppetlabs.com/puppetlabs/stdlib Hmm, I don't detect any documentation of file_line at that URL. Could you post another link with documentation?

[Puppet Users] A couple of problems with the Learning Puppet VM

2014-04-21 Thread Jason Oakley
Hey! I've been learning Puppet from the VM I downloaded yesterday. Two things I've noticed: 1. If you do not use the full path to a file you are applying, the quest doesn't mark it as complete. Eg. puppet apply modules1-ntp2.pp Doesn't get marked as completed. puppet apply

[Puppet Users] bucketing all changed files

2014-04-21 Thread Robert Reilly
Hi All, I want to be able to bucket any file that is being changed including the /etc/passwd and shadow for user changes, I see this is not the default behavior .It would be awesome to use something like git or svn to keep track of changed files. thanks for any help Robert -- You received

[Puppet Users] Facts in ERB Template not working

2014-04-21 Thread zjherner
Having an odd issue with the facts inside an ERB template. I'm using the facts to build a somewhat dynamic MOTD. I made some changes to init.pp for the module and deployed to my Dev environment and it started breaking things. It started off with not being able to find a value for

[Puppet Users] bucketing all changed files

2014-04-21 Thread Robert Reilly
Hey all, Is there a existing way to bucket all changes ? This works great for the file type, but would be great when modifying the passwd or shadow file with the user type. I have searched on this topic but not found anything, maybe my search terms are wrong... It would be even better if i

Re: [Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Kenton Brede
Click on the types tab on that page and you'll see the documentation for file_line. Kent On Mon, Apr 21, 2014 at 5:53 PM, Andreas Ntaflos d...@pseudoterminal.orgwrote: On 2014-04-22 00:10, Joachim Schrod wrote: On 04/21/14 19:42, Kenton Brede wrote: Look into using file_line, it's part of

[Puppet Users] using custom array based fact with defined type

2014-04-21 Thread Ritesh Nanda
Hello , I have a custom facts which returns the block devices based on some condition in an array. facter | grep arraydev arraydev = [sdb, sdc] Now i want to use this array in defined type so that a exec resource can run as no. of times elements in the array. vi

Re: [Puppet Users] puppet module permissions - librarian-puppet

2014-04-21 Thread Trey Dockendorf
I'm using 0022 on no both desktop and puppet master. - Trey On Apr 21, 2014 2:02 PM, Robin Bowes robin.bo...@yo61.com wrote: What umask are you using? R. On 21 Apr 2014 19:18, treydock treyd...@gmail.com wrote: I have noticed lately that on my development system (OS X) and my production