[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

[Puppet Users] Re: custom fact regex problem

2011-08-25 Thread newguy
example something like this: setcode do  %x{hostname}.scan(regex goes here) end Den On 25/08/2011, at 15:52, newguy aimanparv...@gmail.com wrote: setcode do                %x{hostname -s|cut -c 1-2}.chomp -- You received this message because you are subscribed to the Google Groups

[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

[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

[Puppet Users] Re: custom fact regex problem

2011-08-24 Thread newguy
, Denmat tu2bg...@gmail.com 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, newguy aimanparv...@gmail.com wrote: Hi guys I have

[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

[Puppet Users] Re: unable to distribute custom facts

2011-08-12 Thread newguy
On Fri, Aug 12, 2011 at 10:30 AM, newguy aimanparv...@gmail.com 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 unable to distribute

[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 aimanparv...@gmail.com wrote: Yes fact exists as a environment variable only Any suggestions anyone??? On Aug 12, 7:50 am, Guy Matz gm

[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 freder...@gmail.com wrote: Hello everyone, I have the following environments configured as master: # puppetmasterd -V 0.25.4 # cat

[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 aimanparv...@gmail.com wrote: give the module path in development [development] modulepath = /etc/puppet/environments/development/modules Thanks On Aug 12, 2:39 pm, Frederiko

[Puppet Users] Re: unable to distribute custom facts

2011-08-12 Thread newguy
/facts/ files day_of_week.rb hardware_platform.rb    # = wiki example On Fri, Aug 12, 2011 at 11:42 AM, newguy aimanparv...@gmail.com wrote: well i decided to change the route a little, I have decided to make a .rb file for adding fact rather then the environment variable and heres

[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 aimanparv...@gmail.com wrote: well my thing worked(partly) I just had

[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] 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 EOL /etc/hosts 127.0.0.1 localhost.localdomain 10.1.1.1

[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=Dq=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] 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] 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

[Puppet Users] Re: puppetmaster on EC2 certificate issues

2011-07-22 Thread newguy
to the Puppet master inbound? 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 doesnt get any certificate request. This is my /etc/hosts

[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 aimanparv...@gmail.com wrote: Well as am new to EC2 I will check this but what I know is that these instances

[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 aimanparv...@gmail.com 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 pm

[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] Re: mysql exec returning 1 instead of 0

2011-07-20 Thread newguy
, newguy aimanparv...@gmail.com wrote: 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

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

2011-07-20 Thread newguy
:00:51AM -0700, newguy wrote: Here are my Execs, sorry didnt pasted them in the first post:  exec {Retrieve dump:                 cwd = /var/www/r,                 command = /usr/bin/wgethttp://xyz.com/asc.sql;,                 timeout = 360,                 require=Class[subversion

[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 lelu...@gmail.com wrote: On11-07-15 02:47 PM, newguy wrote: exec {Get db:                 command = /usr/bin/mysql -uroot

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

2011-07-15 Thread newguy
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 suggestion. Thanks anyways On Jul 14, 11:43 pm, Marek Dohojda chro...@gmail.com wrote: Personally I don't

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

2011-07-15 Thread newguy
:03 am, newguy aimanparv...@gmail.com 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 suggestion. Thanks anyways On Jul 14, 11:43 pm, Marek Dohojda

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

2011-07-15 Thread newguy
Yes I did that and got the following error: change from notrun to 0 failed: /usr/bin/mysql -uroot -pring parasol download.php?i=hV0wsTfa returned 1 instead of one of [0] at /etc/ puppet/environments/ss/modules/vim/manifests/init.pp:29 This is my exec: exec {Get db: command =

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

2011-07-15 Thread newguy
/bin/mysql -uroot -pring parasol download.php? i=hwwws22s, require = exec[Retrieve dump], } Please help On Jul 15, 10:41 am, Nan Liu n...@puppetlabs.com wrote: On Fri, Jul 15, 2011 at 10:37 AM, newguy aimanparv...@gmail.com 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
papa dumpfile.sql, require = exec[Retrieve dump], } Thanks for your efforts On Jul 15, 10:41 am, Nan Liu n...@puppetlabs.com wrote: On Fri, Jul 15, 2011 at 10:37 AM, newguy aimanparv...@gmail.com wrote: Hey Thanks for the help, I was able to download the dump file

[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

[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 aimanparv...@gmail.com 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

[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

[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 aimanparv...@gmail.com 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] 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??

[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 michael.knox...@gmail.com 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] Re: use puppet to manage user accounts on mysql

2011-07-11 Thread newguy
any query that is possible from the mysql client. -Andrew On Jul 10, 2011 6:27 AM, newguy aimanparv...@gmail.com wrote: Hey I will try to write again what I wanted to say in the first message: Is it possible through puppet that I install mysql and define what would be mysql

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

2011-07-10 Thread newguy
, Gabriel Filion lelu...@gmail.com 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 disabled

[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

[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

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

2011-07-08 Thread newguy
(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/language_guide.html#resources ken. On Fri, Jul 8, 2011 at 3:45 PM, newguy aimanparv...@gmail.com

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

2011-07-08 Thread newguy
...@skurfer.com wrote: On Jul 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/puppet/wiki/Puppet_Augeas

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

2011-07-08 Thread newguy
:///modules/haproxy/haroxy.cfg at /etc/puppet/modules/ haproxy/manifests/init.pp:29 On Jul 8, 11:04 am, Rob McBroom mailingli...@skurfer.com wrote: On Jul 8, 2011, at 1:52 PM, newguy wrote: Thanks Rob but what if I simple decide to remove the existing smb.conf file and push the new smb.conf from

[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 ja...@puppetlabs.com wrote: On Fri, 08 Jul 2011 11:18:57 -0700, newguy wrote: class haproxy::init {    file { /etc/init.d/haproxy:            ensure = present

[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