[Puppet Users] Cannot use relative URL's

2013-03-21 Thread Dragos R
Hi, I am running into this error: Running Puppet agent on demand ... Info: Retrieving plugin Info: Caching catalog for test-pc Error: Failed to

[Puppet Users] Re: Custom type and provider development

2013-03-21 Thread Klavs Klavsen
Did you get any further with the installutil provider? It sounds really interesting - I myself is trying to automate install of PerfTab (a .net application).. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and

[Puppet Users] Re: Cannot use relative URL's

2013-03-21 Thread Ellison Marks
The source parameter takes URIs. You can't just give it a system path. Make sure the file lives in a "files" directory in a module and is properly readable by puppet and use puppet://modules/(modulename)/(filename) in source. On Thursday, March 21, 2013 12:38:32 AM UTC-7, Dragos R wrote: > > Hi

Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory

2013-03-21 Thread Felix Frank
Gee, thanks for being this guy (http://thedailywtf.com/Articles/A-Misleading-Memory.aspx) Have you made sure that $1 $2 and $3 are available in the scope you are using them? That code is not very robust, you may want to wrap the ssh_authorized_key into a defined type with sane default parameters,

Re: [Puppet Users] Re: PuppetDB queue problem

2013-03-21 Thread Ken Barber
Hi ak0ska, How are things going? Anything to report? ken. On Fri, Mar 15, 2013 at 5:00 AM, Ken Barber wrote: > Hi ak0ska, > > FWIW - with the help of some of my colleagues we've managed to > replicate your constraint issue in a lab style environment now: > > https://gist.github.com/kbarber/5157

Re: [Puppet Users] Puppet 3.1.1 failing to generate Private Key Certificate: Permission denied - /etc/puppet/ssl/ca/ca_key.pem

2013-03-21 Thread Felix Frank
Hi, what are the permissions on each directory (and file) in that path? Is SELinux enabled? Cheers, Felix On 03/13/2013 08:42 PM, Mike Canty wrote: > Successfully installed Puppet 3.1.1 under Centos 6. When trying to > start puppet as the root user, puppet generates the following message: > >

Re: [Puppet Users] exec resource not refreshed when subscribed resource changes

2013-03-21 Thread Felix Frank
Hi, On 03/14/2013 09:25 AM, Keith Burdis wrote: > 2) Adding refreshonly => true to the exec. > > 3) Remove the creates and subscribe from the exec. > The subscribe is actually fine, but yes - the 'creates' needs to go in order to allow repeated execution. Note that this can be considered uncl

[Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-21 Thread Jithin Xavier
Hello All, I wanted to create two two MySQL database with same user credential using Puppet-MySQL. How can I achieve this? Please find my script below. class mysql::vsdatabase { include mysql mysql::db { 'vidispine': user => 'user', password => 'user123', host => 'db..com', } } How can I a

Re: [Puppet Users] Windows Reboot

2013-03-21 Thread jim
Hi Guys The way I get around it now, is by using a powershell script that creates a text file and delete puppetlockd if exists and then reboots, and then puppet checks if text file exists upon next run and ignores e.g. Powershell Add-Content "c:\Installs\Puppet_Confirmation\Joined_AD_domain.t

Re: [Puppet Users] Re: Redmine upgrade beginning

2013-03-21 Thread Felix Frank
Right. Was that by design? On 03/18/2013 09:32 PM, Hunter Haugen wrote: > Looks like the upvote/downvote buttons are missing. (/red(dit|mine)/ > anyone?) > > > > -Hunter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from thi

[Puppet Users] Re: Cannot use relative URL's

2013-03-21 Thread Dragos R
Thanks, It worked. Though it would of been great to make source work without creating all that structure. If you don't mind can you please tell me where I can put my logic now if I want to deploy certain files depending on the OS: in the init.pp or the site.pp ? tree -a --charset=ASCII /etc/pu

Re: [Puppet Users] Puppet 3.1.1 failing to generate Private Key Certificate: Permission denied - /etc/puppet/ssl/ca/ca_key.pem

2013-03-21 Thread Keith Burdis
The Puppet master runs as the puppet user so try: # chown -R puppet:puppet /etc/puppet - Keith On 13 March 2013 19:42, Mike Canty wrote: > Successfully installed Puppet 3.1.1 under Centos 6. When trying to start > puppet as the root user, puppet generates the following message: > > "Coul

Re: [Puppet Users] exec resource not refreshed when subscribed resource changes

2013-03-21 Thread Keith Burdis
The subscribe isn't needed if notify is used which is in point 1. There are multiple ways to solve the problem - I prefer pushing these events using notify rather than pulling via subscribe :-) On 21 March 2013 10:37, Felix Frank wrote: > Hi, > > On 03/14/2013 09:25 AM, Keith Burdis wrote: > >

[Puppet Users] Processing custom function response from calling custom function?

2013-03-21 Thread Gavin Williams
Morning all I'm trying to write a custom function that calls the foreman search function (https://github.com/ohadlevy/puppet-foreman/blob/master/foreman/lib/puppet/parser/functions/foreman.rb) and then processes the results, before returning itself... A code snippet is here: http://pastebin.

[Puppet Users] Puppet time accuracy

2013-03-21 Thread Dragos R
Hi, I consider Puppet for maintaining regional configuration in 5 offices across 2 timezones. I know Puppet is very time sensitive (the SSL handshake actually). There will be only one puppetmaster in one of the timezones and agents will be Windows workstations and Mac notebooks. My questions a

Re: [Puppet Users] Puppet time accuracy

2013-03-21 Thread R.I.Pienaar
- Original Message - > From: "Dragos R" > To: puppet-users@googlegroups.com > Sent: Thursday, March 21, 2013 11:33:03 AM > Subject: [Puppet Users] Puppet time accuracy > > Hi, > > I consider Puppet for maintaining regional configuration in 5 offices > across 2 timezones. I know Puppet

Re: [Puppet Users] Puppet time accuracy

2013-03-21 Thread David Schmitt
On 21.03.2013 12:33, Dragos R wrote: Hi, I consider Puppet for maintaining regional configuration in 5 offices across 2 timezones. I know Puppet is very time sensitive (the SSL handshake actually). There will be only one puppetmaster in one of the timezones and agents will be Windows workstatio

Re: [Puppet Users] pluginsync trouble over SRV lookups

2013-03-21 Thread Felix Frank
Hi, On 03/15/2013 03:21 AM, Ashwin N wrote: > > When using SRV lookups (over 2 puppetv3.1.1/RHEL6 masters), does anyone > know why the "pluginsync" fails to sync at irregular intervals ? I gotta admit - I'm not familiar with SRV. What's it do? > If I stop either of masters, everything proceeds

Re: [Puppet Users] What's your hiera tree look like?

2013-03-21 Thread llowder
On Wednesday, March 20, 2013 5:37:14 PM UTC-5, Andy Parker wrote: > > On Tue, Mar 19, 2013 at 2:30 PM, Larry Fast > > wrote: > >> My Hiera tree is turning into a chaotic mess. I'm guessing that my tree >> structure is one problem source. So I'm wondering how other real users have >> setup hier

[Puppet Users] Re: How we can create two database Using same credetial using Puppet

2013-03-21 Thread llowder
On Thursday, March 21, 2013 5:37:35 AM UTC-5, Jithin Xavier wrote: > > Hello All, > > I wanted to create two two MySQL database with same user credential using > Puppet-MySQL. How can I achieve this? Please find my script below. > > class mysql::vsdatabase { > include mysql > mysql::db { 'vidi

Re: [Puppet Users] files outside a module

2013-03-21 Thread Felix Frank
On 03/15/2013 05:02 PM, PF Carpentier wrote: > > I don't know if this message is relevant in my case because my file is > not inside a module. I believe it is. The message is telling you that this pattern *will not work anymore* when you upgrade your master. You should consider creating your ow

Re: [Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-21 Thread Calvin Walton
On Thu, 2013-03-21 at 03:37 -0700, Jithin Xavier wrote: > Hello All, > > I wanted to create two two MySQL database with same user credential using > Puppet-MySQL. How can I achieve this? Please find my script below. > > class mysql::vsdatabase { > include mysql > mysql::db { 'vidispine': > us

[Puppet Users] Need a puppet manifest to initialize a puppetmaster

2013-03-21 Thread Daniel Schaefer
What I am looking for is something along the lines of this: - Install fresh OS - Install puppet and git - Clone a git repo (remote or local) containing my puppetmaster configuration - Run a puppet command (or commands) with a manifest from the repo to install and configure a puppetmaster - Bas

Re: [Puppet Users] Host name look up failure- unable to generate certificate in agent and transfer that to master for signature.

2013-03-21 Thread Felix Frank
Uhm - those links you posted use an unroutable address. So that's not going to work for anyone. On 03/20/2013 07:06 AM, yarlagadda ramya wrote: > *dnsdomainname: Host name lookup failure > dnsdomainname: Host name lookup failure > * > this is common in the starting two lines of both the commands

[Puppet Users] Query for file synchronization

2013-03-21 Thread Nivrutti Kale
Hi All, I have a simple requirement for file synchronization across multiple servers. Can puppet synchronize the files from master to agent nodes instantly? *My requirement:* Let say file on master server *test_1.txt *got modified by some binary. After modification I want to replicate the changes

[Puppet Users] Re: Cannot use relative URL's

2013-03-21 Thread jcbollinger
On Thursday, March 21, 2013 6:19:39 AM UTC-5, Dragos R wrote: > > Thanks, > > It worked. Though it would of been great to make source work without > creating all that structure. > > If you had already been putting your code in modules, which I would recommend to everyone, then it would not have

Re: [Puppet Users] Query for file synchronization

2013-03-21 Thread Peter Meier
*My requirement:* Let say file on master server *test_1.txt *got modified by some binary. After modification I want to replicate the changes instantly on all other nodes (agent nodes/servers). Do puppet synchronize the file instantly to all servers? No, puppet nodes usually pull a new catalog fr

Re: [Puppet Users] What's your hiera tree look like?

2013-03-21 Thread Andy Parker
On Thu, Mar 21, 2013 at 5:46 AM, llowder wrote: > > > On Wednesday, March 20, 2013 5:37:14 PM UTC-5, Andy Parker wrote: > >> On Tue, Mar 19, 2013 at 2:30 PM, Larry Fast wrote: >> >>> My Hiera tree is turning into a chaotic mess. I'm guessing that my tree >>> structure is one problem source. So I

Re: [Puppet Users] What's your hiera tree look like?

2013-03-21 Thread Jonathan Proulx
Hi All, Very interesting topic. Here's what I'm using: --- :hierarchy: - %{fqdn} - %{role} - %{group} - %{osfamily} - common :backends: - yaml - puppet :yaml: :datadir: /etc/puppet/environments/%{environment}/data :puppet: :datasource: data We don't have any uses of %{fqdn} but in the

Re: [Puppet Users] What's your hiera tree look like?

2013-03-21 Thread llowder
On Thursday, March 21, 2013 10:47:11 AM UTC-5, Andy Parker wrote: > > On Thu, Mar 21, 2013 at 5:46 AM, llowder >wrote: > >> >> >> On Wednesday, March 20, 2013 5:37:14 PM UTC-5, Andy Parker wrote: >> >>> On Tue, Mar 19, 2013 at 2:30 PM, Larry Fast wrote: >>> My Hiera tree is turning into a

Re: [Puppet Users] How to make sure my common module executes before all other ones

2013-03-21 Thread Chris Handy
ahhh, this is exactly what I needed. Thanks Wolf!! On Wednesday, March 20, 2013 7:00:26 PM UTC-4, Wolf Noble wrote: > > Hi Chris, > > Take a look at run stages > http://docs.puppetlabs.com/guides/language_guide.html#stages > They make it a little easier to perform some coarse ordering. > > ad

Re: [Puppet Users] Windows ACL best practise

2013-03-21 Thread Josh Cooper
Hi Thomas, On Wed, Mar 20, 2013 at 3:31 AM, Thomas Bendler wrote: > Hi Josh, > > 2013/3/20 Josh Cooper > >> S-1-5-18 > > > thanks for the clarification, I wasn't aware that the SIDs are always the > same as stated in http://support.microsoft.com/kb/243330. > Many accounts have fixed SIDs, tho

[Puppet Users] Announce: Puppet Dashboard 1.2.23 Available

2013-03-21 Thread Moses Mendoza
Puppet Dashboard 1.2.23 is a maintenance release of the 1.2 series of Puppet Dashboard with bug fixes and minor features. This release is available for download at: https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.23.tar.gz Available in native package format in the Puppet Labs yum

Re: [Puppet Users] Need a puppet manifest to initialize a puppetmaster

2013-03-21 Thread Dan White
T ry this: http://usgcb.nist.gov/usgcb/rhel/download_rhel5.html There is a tarball for a basic puppet setup, designed to comply with security hardening guidelines. http://usgcb.nist.gov/usgcb/content/configuration/puppet-sdc-dist.tar.gz As it shows a reasonably complete setup, it should get

[Puppet Users] Re: What's your hiera tree look like?

2013-03-21 Thread Larry Fast
Hi Andy, I guess my most important request for Hiera 2 is diagnostic information. It's probably a broader request for better diagnostics in puppet as a whole. Here's what I dream of ... 1. The ability to run Puppet on the puppetmaster using the cached Facts from a server. 2. A postmortem (sorr

Re: [Puppet Users] Announce: Puppet Dashboard 1.2.23 Available

2013-03-21 Thread Dan White
The documentation is a bit contradictory. It says you need ruby 1.8.7, and then says you cannot use it with CentOS/RHEL-5 'cause the supported version of ruby is <1.8.7 It totally ignores the Puppet dependencies repos, which contain ruby 1.8.7 “Sometimes I think the surest sign that intellig

[Puppet Users] syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-21 Thread John Smith
I'm trying to use Keith Burdis's excellent erwbgy/system module without Hiera, at least initially. http://forge.puppetlabs.com/erwbgy/system I cannot determine how call the modules. From what I can tell the documentation isn't quite correct (or I am reading it wrong). I'm trying to start wit

[Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-21 Thread Byron Miller
i replied to your post over in foreman :) you can also search for my "i can't wrap my head around hiera" post for more details too. On Thursday, March 21, 2013 3:09:02 PM UTC-5, John Smith wrote: > > I'm trying to use Keith Burdis's excellent erwbgy/system module without > Hiera, at least initi

[Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-21 Thread Ellison Marks
And just to have an answer on the list as well, the syntax in the docs is correct. Though it might be class { "system::ntp" in your case. Not sure of the specifics of that module. http://docs.puppetlabs.com/puppet/3/reference/lang_classes.html#using-resource-like-declarations On Thursday, March

[Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-21 Thread John Smith
On Thursday, March 21, 2013 1:58:10 PM UTC-7, Ellison Marks wrote: > And just to have an answer on the list as well, the syntax in the docs is > correct. Though it might be class { "system::ntp" in your case. Not sure of > the specifics of that module. > > > http://docs.puppetlabs.com/puppet/3/r

[Puppet Users] Windows agent got a 'puppet:///' file source error

2013-03-21 Thread RAM
Hi, I'm trying to run puppet agent from Windows Server 2008 R2, puppet version is 3.0.2. The puppet master is running on RHEL 5.8, version is 3.1.1 I'm running a simple task: downloading a file, TableauServer.exe, from the master. The manifest, /etc/puppet/modules/tableau/manifests/init.pp, is a

[Puppet Users] apt-get update before installing a package. The right way?

2013-03-21 Thread Sam Morrison
Hi, I've been battling with trying to get our puppet to do the following: Install all sources.list, apt-keys then: Run an apt-get update then: install Packages I've tried a few ways. 1. Set a default requires Package { require => Exec['apt_update'] } This doesn't work, I think because som

Re: [Puppet Users] Windows Reboot

2013-03-21 Thread Josh Cooper
Hi Rich, On Wed, Mar 20, 2013 at 5:54 AM, Rich Siegel wrote: > My idea on reboots is different. I don't think we should have puppet do > the reboot. If we go down this road, we need autologon, credentials, > runonce, and a subsequent puppet agent run among other things. Why do we need autol

[Puppet Users] Re: Windows agent got a 'puppet:///' file source error

2013-03-21 Thread Ellison Marks
Are the permissions ok on that file? That is, is it readable by the master? On Thursday, March 21, 2013 2:17:19 PM UTC-7, RAM wrote: > > Hi, > I'm trying to run puppet agent from Windows Server 2008 R2, puppet version > is 3.0.2. > The puppet master is running on RHEL 5.8, version is 3.1.1 > > I'

[Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-21 Thread Ellison Marks
On Thursday, March 21, 2013 2:10:20 PM UTC-7, John Smith wrote: > > On Thursday, March 21, 2013 1:58:10 PM UTC-7, Ellison Marks wrote: > >> And just to have an answer on the list as well, the syntax in the docs is >> correct. Though it might be class { "system::ntp" in your case. Not sure of >>

Re: [Puppet Users] Re: Windows agent got a 'puppet:///' file source error

2013-03-21 Thread Josh Cooper
On Thu, Mar 21, 2013 at 4:20 PM, Ellison Marks wrote: > Are the permissions ok on that file? That is, is it readable by the master? > > > On Thursday, March 21, 2013 2:17:19 PM UTC-7, RAM wrote: >> >> Hi, >> I'm trying to run puppet agent from Windows Server 2008 R2, puppet >> version is 3.0.2. >

[Puppet Users] Re: Need a puppet manifest to initialize a puppetmaster

2013-03-21 Thread Daniel Schaefer
I guess I should also mention that I am using Ubuntu 12.04. Also, when I say "run a puppet command", I'm referring to "puppet apply" -- 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 i

[Puppet Users] Augeas lens dependency on valid config file parsing

2013-03-21 Thread Gonzalo Servat
Hi All, I just ran into a frustrating Augeas problem, which I thought I'd share with you all. We run a cron every morning to fetch the latest RPMs (for the packages we're interested in) from various places such as rpmforge, EPEL, etc. This morning I tried to build a VM and it failed. What happen

Re: [Puppet Users] Announce: Puppet Dashboard 1.2.23 Available

2013-03-21 Thread Moses Mendoza
Fair point. The documentation was written before we built & shipped our ruby 1.8.7 for el5, and was not updated to reflect the fact that this is now available via the Puppet Labs yum repositories. I'll make sure this gets updated. On Thu, Mar 21, 2013 at 12:48 PM, Dan White wrote: > The documenta

Re: [Puppet Users] Redmine upgrade beginning

2013-03-21 Thread Eric Sorenson
These should be back now the votes weren't lost and they still showed up on the query page, but the voting plugin had to be enabled per project to make the arrows and vote count render on an individual issue pages. Thanks to Zach Leslie for flipping the right bit. Eric Sorenson - eric.sore