[Puppet Users] puppet on VPC-Virtual private cloud

2011-09-19 Thread newguy
Hi guys am running puppet clients as Ubuntu machines and am under a VPC, now the problem is that due to a bug in ubuntu (lets not get in to the bug details) I cant run apt-get update, upgrade remotely from the new VPC puppet client but I can connect to my puppetmaster(I have a script which takes c

[Puppet Users] Re: custom fact regex problem

2011-08-25 Thread newguy
hat was kind of pseudo code. In your example something like this: > > setcode do >  %x{hostname}.scan(regex goes here) > end > > Den > > On 25/08/2011, at 15:52, newguy wrote: > > > > > > > > >>> setcode do > >>>                %x{host

[Puppet Users] Re: custom fact regex problem

2011-08-24 Thread newguy
d On Aug 24, 8:13 pm, Denmat wrote: > Hi, > > I use something like this. > > ... > hostnamevar.scan(/^\d+-qa-/) > ... > > Here is the best tool on the planet for writing and testing regexes: > > http://www.rubular.com > > Den > On 25/08/2011, at 11:43, new

[Puppet Users] custom fact regex problem

2011-08-24 Thread newguy
Hi guys I have a custom fact envt, it was working fine but now I have to make some changes in it; puppet client's hostname is of the type 1234qa-abc-de.local where 1234 can be any thing of any length.My custom fact should contain qa, ie I want to check in the first part(before the first -) of the h

[Puppet Users] custom fact

2011-08-24 Thread newguy
Hi guys I have a custom fact envt, it was working fine but now I have to make some changes in it; puppet client's hostname is of the type 1234qa-abc-de.local where 1234 can be any thing of any length.My custom fact should contain qa, ie I want to check in the first part(before the first -) of the h

[Puppet Users] Re: unable to distribute custom facts

2011-08-12 Thread newguy
Guys it worked , my custom fact file was in /etc/puppet/modules/module/facts/lib/facter/files I just changed it to /etc/puppet/modules/facts/lib/facter/files and it worked Thanks for all ur help. On Aug 12, 3:20 pm, newguy wrote: > well my thing worked(partly) I just had to put the f

[Puppet Users] Re: unable to distribute custom facts

2011-08-12 Thread newguy
lients > > > That should be it, unless I've forgotten something (which would never > > happen of course)  ;) > > > # ls /etc/puppet/modules/facts/ > > >> files > >> day_of_week.rb > >> hardware_platform.rb    # = wiki example > > > On Fr

[Puppet Users] Re: enviroments are not being used

2011-08-12 Thread newguy
in continuation. and put/copy your modules in the path, that should do the trick. On Aug 12, 3:14 pm, newguy wrote: > give the module path in development > [development] > modulepath = /etc/puppet/environments/development/modules > > Thanks > > On Aug 12, 2:39 pm, F

[Puppet Users] Re: enviroments are not being used

2011-08-12 Thread newguy
give the module path in development [development] modulepath = /etc/puppet/environments/development/modules Thanks On Aug 12, 2:39 pm, Frederiko Costa wrote: > Hello everyone, > > I have the following environments configured as master: > > # puppetmasterd -V > 0.25.4 > > # cat puppet.conf > [ma

[Puppet Users] Re: unable to distribute custom facts

2011-08-12 Thread newguy
]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/plugins Help guys!!! On Aug 12, 8:32 am, newguy wrote: > Yes fact exists as a environment variable only > Any suggestions anyone??? > On Aug 12, 7:50 am, Guy Ma

[Puppet Users] Re: unable to distribute custom facts

2011-08-12 Thread newguy
rry > > > > On Fri, Aug 12, 2011 at 10:30 AM, newguy wrote: > > Guys > > I made a custom fact using export;(export FACTER_envt=`hostname -s|cut > > -c 1-2`;) on puppet master, and when I do facter envt it shows the > > desired result, now my problem is that am

[Puppet Users] unable to distribute custom facts

2011-08-12 Thread newguy
Guys I made a custom fact using export;(export FACTER_envt=`hostname -s|cut -c 1-2`;) on puppet master, and when I do facter envt it shows the desired result, now my problem is that am unable to distribute it to the client machines. I read up a little on adding custom facts and found out the plugi

[Puppet Users] autosigning not working

2011-08-05 Thread newguy
Hi guys I want to auto sign the clients coming in, in my autosign.conf file I tried * ( to allow all), it didnt worked, I also tried pattern like: qa-abc-wrk*.com it also didnt worked. Client says invalid pattern for qa-abc-wrk*.com. Can any one please help me with this. Thanks -- You received

[Puppet Users] autosigning not working

2011-08-05 Thread newguy
Hi guys I want to auto sign the clients coming in, in my autosign.conf file I tried * ( to allow all), it didnt worked, I also tried pattern like: qa-abc-wrk*.com it also didnt worked. Client says invalid pattern for qa-abc-wrk*.com. Can any one please help me with this. Thanks -- You received

[Puppet Users] Re: setting the hostname automatically of EC2 puppet clients

2011-08-03 Thread newguy
Thanks guys but I edited the script mentioned in http://www.google.com/url?sa=D&q=http://agiletesting.blogspot.com/2009/09/ to change the hostname of the new EC2, heres what am doing: am bootstrapping EC2 images as puppet clients and am using runurl to call a script which installs puppet, This is

[Puppet Users] Help with runurl

2011-08-03 Thread newguy
Hi guys am bootstrapping EC2 images as puppet clients and am using runurl to call a script which installs puppet, things are going fine till now but I want to pass the environment as a runurl argument. This is my script with runurl cat < /etc/hosts 127.0.0.1 localhost.localdomain 10.1.1.1 puppet

[Puppet Users] setting the hostname automatically of EC2 puppet clients

2011-08-02 Thread newguy
I have 3 environments A,B,C. I am using runurl (http://agiletesting.blogspot.com/2009/09/ bootstrapping-ec2-images-as-puppet.html) to install puppet automatically as a new EC2 instance is started and connecting it automatically to the server. But the server is not aware of this new instance trying

[Puppet Users] add ip address of another EC2 instance automatically in the hosts file of existing EC2 instance

2011-07-29 Thread newguy
HI guys I have a Ubuntu EC2 puppetmaster, 3 types of clients connect to this master; client A, B ,C . I want to add the ip address of client B in a module M of client A. Lets assume that I don't know their ip addresses before hand. Is that possible through puppet??? and if yes how? Thanks --

[Puppet Users] Re: puppetmaster on EC2 certificate issues

2011-07-22 Thread newguy
Got it working. Run puppetd through sudo and it would work :P On Jul 22, 6:31 pm, newguy wrote: > Yes I checked they are in the same group with port 8140 open,so I > think this is all what is required for machines in the same group to > talk. > Thanks > > On Jul 22, 6:14

[Puppet Users] Re: puppetmaster on EC2 certificate issues

2011-07-22 Thread newguy
Yes I checked they are in the same group with port 8140 open,so I think this is all what is required for machines in the same group to talk. Thanks On Jul 22, 6:14 pm, newguy wrote: > Well as am new to EC2 I will check this but what I know is that these > instances are in the same se

[Puppet Users] Re: puppetmaster on EC2 certificate issues

2011-07-22 Thread newguy
und? > Seems like it can't connect. > > -Mark > > On Jul 22, 2011, at 7:20 PM, newguy wrote: > > > > > > > > > Hi guys > > I recently started playing with EC2 and tried installing puppet. > > I ran in to this problem that puppetmaster doesn

[Puppet Users] puppetmaster on EC2 certificate issues

2011-07-22 Thread newguy
Hi guys I recently started playing with EC2 and tried installing puppet. I ran in to this problem that puppetmaster doesnt get any certificate request. This is my /etc/hosts file on the client: 127.0.0.1 ip-10-243-34-4.ec2.internal localhost 10.220.198.146 domU-12-31-39-09-C1-64.compute-1.interna

[Puppet Users] Re: mysql exec returning 1 instead of 0

2011-07-20 Thread newguy
Thanks Stefan, I tried executing the command from command line to realize that mysql dump contains bad data, thats why this problem is occurring, still have no clue about the mysqladmin command On Jul 20, 12:57 pm, Stefan Schulte wrote: > On Wed, Jul 20, 2011 at 11:00:51AM -0700, newguy wr

[Puppet Users] Re: mysql exec returning 1 instead of 0

2011-07-20 Thread newguy
": command=>"/usr/bin/mysqladmin -u root PASSWORD papa", require=>package["mysql-server-5.1"], } } On Jul 20, 10:52 am, newguy wrote: > Hi guys > I am running in to a strange  problem, I have a bunch of puppet > modules

[Puppet Users] mysql exec returning 1 instead of 0

2011-07-20 Thread newguy
Hi guys I am running in to a strange problem, I have a bunch of puppet modules and one of them has an exec which changes the root password and there is another which runs mysql import command to import dump file in to the database, the problem is both these exec are returning the following error:

[Puppet Users] Control the sequence of module execution

2011-07-18 Thread newguy
Hey Guys I was wondering how can I control the order of execution of various modules on the puppet client. Suppose I have a module A which installs mysql and there is module B which executes mysql commands of importing DB, so how can I ensure that module A is executed before module B. Please help

[Puppet Users] Re: Using puppet to import database on client side

2011-07-16 Thread newguy
It worked thanks forth help guys. Problem was not of dump file its that on client machine password was misspelt. Thanks anyways. On Jul 16, 1:33 am, Gabriel Filion wrote: > On11-07-15 02:47 PM, newguy wrote: > > > exec {"Get db": > >                 command => &qu

[Puppet Users] Re: Using puppet to import database on client side

2011-07-15 Thread newguy
/usr/bin/mysql -uroot -proot papa < dumpfile.sql", require => exec["Retrieve dump"], } Thanks for your efforts On Jul 15, 10:41 am, Nan Liu wrote: > On Fri, Jul 15, 2011 at 10:37 AM, newguy wrote: > > Hey > > Thanks for the help, I was able

[Puppet Users] Re: Using puppet to import database on client side

2011-07-15 Thread newguy
command => "/usr/bin/mysql -uroot -pring parasol < download.php? i=hwwws22s", require => exec["Retrieve dump"], } Please help On Jul 15, 10:41 am, Nan Liu wrote: > On Fri, Jul 15, 2011 at 10:37 AM, newguy wrote: > > Hey > >

[Puppet Users] Re: Using puppet to import database on client side

2011-07-15 Thread newguy
command => "/usr/bin/mysql -uroot -pring parasol < download.php? i=hV0wsTfa", require => exec["Retrieve dump"], } Please help On Jul 15, 10:41 am, Nan Liu wrote: > On Fri, Jul 15, 2011 at 10:37 AM,newguy wrote: > > Hey > >

[Puppet Users] Re: Using puppet to import database on client side

2011-07-15 Thread newguy
dump"], } Thanks for your efforts On Jul 15, 10:03 am, newguy wrote: > Yes Marek, it does make sense and thanks for this help, lemme try what > Al @ Lab42 has suggested first as I have been told to do things by > Puppet. In case I fail then I will look in to your suggestio

[Puppet Users] Re: Using puppet to import database on client side

2011-07-15 Thread newguy
> > > -Original Message- > From:newguy > Sent: Thursday, July 14, 2011 10:10 PM > To: Puppet Users > Subject: [Puppet Users] Re: Using puppet to import database on client side > > Guys somebody please help > > On Jul 14, 5:32 pm,newguy wrote: > >

[Puppet Users] Re: Using puppet to import database on client side

2011-07-14 Thread newguy
Guys somebody please help On Jul 14, 5:32 pm, newguy wrote: > Hi guys > I have database dump available on pastebin/exzxzxz > > I want the puppet server to download the dump from pastebin and store > it at a fixed location(suppose /home/dump) and then open mysql on the > cl

[Puppet Users] Using puppet to import database on client side

2011-07-14 Thread newguy
Hi guys I have database dump available on pastebin/exzxzxz I want the puppet server to download the dump from pastebin and store it at a fixed location(suppose /home/dump) and then open mysql on the client side(mysql is installed on the client) and run the import command so that the downloaded du

[Puppet Users] Re: wrong nodes.pp being accessed by the client

2011-07-13 Thread newguy
to goes in the /etc/puppet/manifests/ nodes.pp. Please correct me if I am wrong. On Jul 13, 11:18 am, newguy wrote: > I have two development environments, main and development and  my > puppet.conf looks like this: > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet

[Puppet Users] wrong nodes.pp being accessed by the client

2011-07-13 Thread newguy
I have two development environments, main and development and my puppet.conf looks like this: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=false templatedir=$confdir/templates prerun_command=/etc/pup

[Puppet Users] Re: nodes.pp in different environments

2011-07-12 Thread newguy
SO if I understand you correctly, if am not using ENC I should have a nodes.pp for each environment? On Jul 12, 10:19 pm, Michael Knox wrote: > Hi, > > On 13/07/11 2:03 PM, newguy wrote:> Hi guys > > I have a small question, I have 3 environments in puppet.conf file:

[Puppet Users] nodes.pp in different environments

2011-07-12 Thread newguy
Hi guys I have a small question, I have 3 environments in puppet.conf file: [development] modulepath=/etc/puppet/development/modules manifests=/etc/puppet/development/manifests/site.pp I have defined the site.pp path, my question is do I need to make a nodes.pp for every environment?? Thanks

[Puppet Users] Re: use puppet to manage user accounts on mysql

2011-07-11 Thread newguy
s://github.com/example42/puppet-modules/blob/master/mysql/manifes... > > > > There is also a "query" define so you can run any query that is possible > > > from the mysql client. > > > > -Andrew > > > On Jul 10, 2011 6:27 AM, "newguy"

[Puppet Users] Re: use puppet to manage user accounts on mysql

2011-07-10 Thread newguy
, Gabriel Filion wrote: > On 11-07-10 12:48 AM, newguy wrote: > > > I have 2 types of clients(developers, users) connecting to my puppet > > server, puppet installs mysql on both the machines but I want that > > when its user machine connecting to server the mysql root user is

[Puppet Users] use puppet to manage user accounts on mysql

2011-07-09 Thread newguy
Hi guys I have 2 types of clients(developers, users) connecting to my puppet server, puppet installs mysql on both the machines but I want that when its user machine connecting to server the mysql root user is disabled and a user account should be made with a custom password and for developers mach

[Puppet Users] Re: add lines to /etc/hosts on client

2011-07-08 Thread newguy
Thanks dude, there was another typo too, fixed both and it worked, thanks everyone. On Jul 8, 11:22 am, Jacob Helwig wrote: > On Fri, 08 Jul 2011 11:18:57 -0700, newguy wrote: > > > class haproxy::init { > >    file { "/etc/init.d/haproxy": > >            ensur

[Puppet Users] Re: add lines to /etc/hosts on client

2011-07-08 Thread newguy
ests/init.pp:17 err: //haproxy::cfg/File[/etc/haproxy/haproxy.cfg]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet:///modules/haproxy/haroxy.cfg at /etc/puppet/modules/ haproxy/manifests/init.pp:29 On Jul 8, 11:04 am, Rob McBroom wrote: > O

[Puppet Users] Re: add lines to /etc/hosts on client

2011-07-08 Thread newguy
l 8, 2011, at 12:45 PM, newguy wrote: > > > How can I add lines to smb.conf with out overwriting the content of > > the file. > > I think Augeas is what you’re looking for (for this and other inevitable use > cases). > > http://projects.puppetlabs.com/projects/puppe

[Puppet Users] Re: add lines to /etc/hosts on client

2011-07-08 Thread newguy
t; } > > By itself, it won't remove existing entries (but there is a way to do > this as well using purging). > > If you haven't read it already, there is a language guide which > explains using resources in more detail: > > http://docs.puppetlabs.com/guides/languag

[Puppet Users] add lines to /etc/hosts on client

2011-07-08 Thread newguy
Hi guys Am new to puppet so please take it easy on me. I want to know how can I add lines to hosts file on the client machine, I am trying to add a couple of IP addresses to the hosts file on client and I dont want to overwrite their hosts file, just add new stuff in there. My server and client bot

[Puppet Users] puppetmaster gets no certificate request

2011-07-01 Thread newguy
Hi guys, I am very new to puppet and am trying to install puppet master-client on my ubuntu system. Client is a ubuntu on virtual box. problem is that my puppet mastere gets no certificate request and puppet client keeps on saying : warning: peer certificate wont be verified in this SSL session.