Re: [Puppet Users] Re: Problem with stored configs / Invalid unicode escaping

2012-03-21 Thread Dennis Hoppe
Hello John, Am 19.03.2012 14:57, schrieb jcbollinger: > On Mar 18, 9:53 am, Dennis Hoppe > wrote: > >> i did some debugging and found out that with PostgreSQL 8.4 everything >> works as expected. >> >> If i use PostgreSQL 9.1, the following lines are responsible for the >> error message. >> >>

[Puppet Users] Removing lines from a file

2012-03-21 Thread John Kennedy
Hello all, I am fairly new to Puppet but learning. I know what I want to do can be done I just can not get things to go right... We want to start using the capability of sudo to look in /etc/sudoers.d to get user specific sudo permissions. Before we add a User_Alias file, the corresponding configu

Re: [Puppet Users] Removing lines from a file

2012-03-21 Thread Craig Dunn
On 21/03/2012 11:48, John Kennedy wrote: Hello all, I am fairly new to Puppet but learning. I know what I want to do can be done I just can not get things to go right... We want to start using the capability of sudo to look in /etc/sudoers.d to get user specific sudo permissions. Before we ad

[Puppet Users] Templates has_variable scoping etc

2012-03-21 Thread ollies...@googlemail.com
Hello, Trying to write out a file with some facter variable handling i.e. if has_variable?("@lsbdistdescription") then my_OS = @lsbdistdescription else my_OS = @operatingsystem + " " + @operatingsystemrelease end Therefore if the facter variable @lsbdistdescription doesn't exist (i.e. Solar

[Puppet Users] Re: import manifest inside subdirectory

2012-03-21 Thread jcbollinger
On Mar 20, 11:47 am, Pablo Fernandez wrote: > Hi, > > I am trying to import some manifests manually (outside the modules tree) and > it does not seem to work fine. Would you care to talk about why you want to do this? I know exactly one good use case for the 'import' statement, and it's not y

[Puppet Users] Puppet 2.7.12 on Windows

2012-03-21 Thread Jay Ze
Hi, I posted an other problem with puppet and windows weeks ago. With the new Version 2.7.12 those problems were fixed. But now I don't get puppet to work. I installed puppet as explained here: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows It worked so far. But when I start pup

Re: [Puppet Users] Re: import manifest inside subdirectory

2012-03-21 Thread Pablo Fernandez
Hi, > > I am trying to import some manifests manually (outside the modules tree) > > and it does not seem to work fine. > Would you care to talk about why you want to do this? I know exactly > one good use case for the 'import' statement, and it's not your case. > There is probably a better way t

Re: [Puppet Users] Puppet 2.7.12 on Windows

2012-03-21 Thread Brendan O'Bra
Looks like it's having issues resolving the name of the Puppet master. Can you ping the hostname (that is set in puppet.conf) of the Puppet master? On Wed, Mar 21, 2012 at 7:02 AM, Jay Ze wrote: > Hi, > > I posted an other problem with puppet and windows weeks ago. > With the new Version 2.7.12

[Puppet Users] Re: import manifest inside subdirectory

2012-03-21 Thread jcbollinger
On Mar 21, 9:25 am, Pablo Fernandez wrote: > Hi, > > > > I am trying to import some manifests manually (outside the modules tree) > > > and it does not seem to work fine. > > Would you care to talk about why you want to do this?  I know exactly > > one good use case for the 'import' statement, a

Re: [Puppet Users] Re: import manifest inside subdirectory

2012-03-21 Thread Pablo Fernandez
Hi, > I confess that I find it a bit strange, however, that you want to > separate module data so completely from the rest of the module while > using Hiera's Puppet backend. It runs rather against the idea of > modules as self-contained entities. Even with the YAML backend I > might expect modu

[Puppet Users] Relative Symlinks

2012-03-21 Thread Douglas Garstang
Is there any way to get relative symlinks in puppet? This: file { "tomcat-current": #"/opt/foo/apache-tomcat-current": ensure => link, target => "/opt/foo/apache-tomcat-${tomcat_version}"; } yields: Wed Mar 21 09:58:05 -0700 2012 Puppet (err): Fai

Re: [Puppet Users] Relative Symlinks

2012-03-21 Thread Christopher Wood
$ cat /tmp/symlink.pp file { '/tmp/link_to_zz': ensure => link, target => 'zz', } $ puppet /tmp/symlink.pp notice: /Stage[main]//File[/tmp/link_to_zz]/ensure: created $ ls -l /tmp/link_to_zz lrwxrwxrwx 1 cwood cwood 2 Mar 21 13:03 /tmp/link_to_zz -> zz (ln target linkname) On Wed, Mar 21,

Re: [Puppet Users] Relative Symlinks

2012-03-21 Thread Douglas Garstang
Thanks. On Wed, Mar 21, 2012 at 10:04 AM, Christopher Wood wrote: > $ cat /tmp/symlink.pp > file { '/tmp/link_to_zz': >  ensure => link, >  target => 'zz', > } > $ puppet /tmp/symlink.pp > notice: /Stage[main]//File[/tmp/link_to_zz]/ensure: created > $ ls -l /tmp/link_to_zz > lrwxrwxrwx 1 cwood c

Re: [Puppet Users] Puppet 2.7.12 on Windows

2012-03-21 Thread Josh Cooper
Hi Jay, On Wed, Mar 21, 2012 at 7:02 AM, Jay Ze wrote: > Hi, > > I posted an other problem with puppet and windows weeks ago. > With the new Version 2.7.12 those problems were fixed. > > But now I don't get puppet to work. > > I installed puppet as explained here: > http://projects.puppetlabs.com

Re: [Puppet Users] Removing lines from a file

2012-03-21 Thread John Kennedy
On Wed, Mar 21, 2012 at 12:02, Craig Dunn wrote: > On 21/03/2012 11:48, John Kennedy wrote: > > Hello all, > I am fairly new to Puppet but learning. > I know what I want to do can be done I just can not get things to go > right... > > We want to start using the capability of sudo to look in /etc

[Puppet Users] PE - installation error

2012-03-21 Thread Surendra Singhi
Hi, I am trying to install puppet enterprise on a fresh Debian Squeeze machine, but I am getting an error midway with no information on what went wrong. How do I troubleshoot or look for more debugging information? This is what the screen output for installation is: thanks for your help in advan

[Puppet Users] Puppet Agent Cert request issues

2012-03-21 Thread MrT
I am a newbie to Puppet, so be gentle Running puppet master on the learning VM in a test environment testing connectivity of agents of various clients also VMs running into issues on the master accepting cert requests from agents confirm network connectivity from agent to master confirmed not

Re: [Puppet Users] Puppet Agent Cert request issues

2012-03-21 Thread Denmat
Hi mrT Can you provide the error you receive? Another easy way to test what's going on is to run the master and agent in --no-daemonize mode (stop existing master and agent and add that to the command line with verbose and debug). Also, what version and OS are you running? So a quick run down

[Puppet Users] Developing new modules using Puppet Sandbox

2012-03-21 Thread Aaron Schaefer
Hey everyone, I just wanted to share a simple project I created called Puppet Sandbox [1]. It's a multi-VM Vagrant-based Puppet development environment used for creating and testing new modules outside of your production environment. I also made a screencast that provides a brief overview of the p

[Puppet Users] Re: Puppet Agent Cert request issues

2012-03-21 Thread MrT
what EXACTLY is the syntax for running agent and server in no- daemonize mode master is on centOS 5.7 running Puppet 2.7.6 agent is Debian6 running running 2.7.10 any issues in running an earlier version of pupet on master than client is there an EASY way to upgrade the master to 2.7.10 On Mar

Re: [Puppet Users] Re: Puppet Agent Cert request issues

2012-03-21 Thread Denmat
Okay, sorry might have lead you down the wrong path a bit. --test on agent is equivalent to --no-daemonize and a few other options. Agent: sudo puppet agent --test --server --verbose <--debug --noop> Master: sudo puppetd --no-daemonize --verbose <--debug> Generally speaking, your client can ne

[Puppet Users] Help importing public key to verify Puppet release

2012-03-21 Thread weloki
I'm running Ubuntu server 10.04 LTS and the public repo housing Puppet is currently at 0.25.4-2ubuntu6.6. I want to run Puppet 2.7.12 but I'm experiencing the following issues: apt-get update throws this message... W: GPG error: http://apt.puppetlabs.com lucid Release: The following signatures cou

Re: [Puppet Users] Developing new modules using Puppet Sandbox

2012-03-21 Thread Jonathan Proulx
Screen cast looks cool, can't wait to dig into the code. I'm at the beginning (3rd day?) of a similar project using cucumber to drive module tests on virtual boxes using vagrant. I've been focusing on puppet "apply"ing single tasks (a module and its dependencies) to a variety of operating systems

Re: [Puppet Users] Help importing public key to verify Puppet release

2012-03-21 Thread Nan Liu
On Wed, Mar 21, 2012 at 2:55 PM, weloki wrote: > I'm running Ubuntu server 10.04 LTS and the public repo housing Puppet > is currently at 0.25.4-2ubuntu6.6. I want to run Puppet 2.7.12 but I'm > experiencing the following issues: > > apt-get update throws this message... > W: GPG error: http://apt

Re: [Puppet Users] Developing new modules using Puppet Sandbox

2012-03-21 Thread elasticdog
On Wednesday, March 21, 2012 3:11:52 PM UTC-7, Jonathan Proulx wrote: > > Screen cast looks cool, can't wait to dig into the code. > > I'm at the beginning (3rd day?) of a similar project using cucumber to > drive module tests on virtual boxes using vagrant. I've been focusing > on puppet "apply"

[Puppet Users] Re: Puppet Agent Cert request issues

2012-03-21 Thread MrT
I should have clarified I am running the 10 user version of PE 2.0 if that makes a difference On Mar 21, 2:33 pm, Denmat wrote: > Okay, sorry might have lead you down the wrong path a bit. --test on agent is > equivalent to --no-daemonize and a few other options. > > Agent: > sudo puppet agent -

Re: [Puppet Users] Re: Puppet Agent Cert request issues

2012-03-21 Thread Denmat
That does complicate it for me a bit, I haven't had much of a go on PE. Essentially they are the same tools but PE runs behind passenger. -- I don't have a working copy of PE to point you in the right directions for config locations but there will be ssl_x_header directives in the puppet.conf on

[Puppet Users] Re: Puppet Agent Cert request issues

2012-03-21 Thread MrT
my thought in running the limited version of PE 2.0 Learning VM is that out of the box I could have a fully working Pupet master on a VM I could demo out with 10 clients. didn't realize getting the certs working for the agents would be such an undocumented nightmare . . .oh the joys of open source

Re: [Puppet Users] Developing new modules using Puppet Sandbox

2012-03-21 Thread Dan Bode
on a related note. I am a little over a week into starting to write a tool to streamline my module development efforts. It is intended to model multi-node deployments and to support running integration tests. It is all ec2 based (I had to abandon my vagrant + rake workflow b/c it just did not sca

[Puppet Users] Re: 32bit and 64bit version of a package

2012-03-21 Thread bg
I may not understand your problem fully, but I do something similar in one of my base classes as I had a similar HP software dependency: case $operatingsystem { centos: { case $operatingsystemrelease { 5.0,5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9: { include rhel

[Puppet Users] Re: Puppet 2.7.12 on Windows

2012-03-21 Thread Jay Ze
On 21 Mrz., 19:22, Josh Cooper wrote: > Hi Jay, > > On Wed, Mar 21, 2012 at 7:02 AM, Jay Ze > wrote: > > > > > > > > > > > Hi, > > > I posted an other problem with puppet and windows weeks ago. > > With the new Version 2.7.12 those problems were fixed. > > > But now I don't get puppet to work. >