[Puppet Users] puppet autosign by VLAN IP

2011-06-30 Thread hyzhang
Hi, Can puppet autosign work by giving vlan IP instead of domain? For example, in the autosign.conf file, instead of using *.mydomain.org, I want to give 172.18.133.* But it does not seem to work if I give the IP address. But I don't want to limit the client from *.mydomain.org by only allow cer

[Puppet Users] Re: how do I tell puppet do nothing if the condition is true

2011-06-08 Thread hyzhang
Thank you all. That works! -Haiyan On Jun 8, 3:28 pm, Patrick wrote: > On Jun 8, 2011, at 11:01 AM, hyzhang wrote: > > > Hi, > > > I have a piece of puppet code. I want puppet do nothing if it is true. > > How do I do that? Of course this code would not c

[Puppet Users] how do I tell puppet do nothing if the condition is true

2011-06-08 Thread hyzhang
Hi, I have a piece of puppet code. I want puppet do nothing if it is true. How do I do that? Of course this code would not code. exec { 'runlevel': command => $is_virtual ? { 'false' => "/bin/sed -i 's/id:3:initdefault:/id: 5:initdefault:/' /etc/inittab", '

[Puppet Users] Re: How do I enable repositories and install packages

2011-06-03 Thread hyzhang
nality, or use exec. > > > -- > > Nathan Clemons > >http://www.livemocha.com > > The worlds largest online language learning community > > > On Wed, Jun 1, 2011 at 9:19 AM, hyzhang wrote: > > > > Hi, > > > > My shell script is as below. How

[Puppet Users] How do I enable repositories and install packages

2011-06-01 Thread hyzhang
Hi, My shell script is as below. How do I translate them to puppet language? I think I can use exec directly. But is there a better way? /usr/bin/yum clean all /bin/echo -e "\n/usr/bin/yum -y --enablerepo=base,rpmforge install mplayer mplayer-skins" /usr/bin/yum -y --enablerepo=base,rpmforge inst

[Puppet Users] Re: custom facter does not show up on client

2011-05-24 Thread hyzhang
Connection refused - connect(2) I can not figure out what is wrong. Help!! -Haiyan On May 23, 5:26 pm, Nan Liu wrote: > On Mon, May 23, 2011 at 2:06 PM, hyzhang wrote: > > Hi, > > > I wrote acustomfactercalled active_interface and put in /etc/puppet/ > > modu

[Puppet Users] custom facter does not show up on client

2011-05-23 Thread hyzhang
Hi, I wrote a custom facter called active_interface and put in /etc/puppet/ modules/networking/lib/facter directory. Then I did "export RUBYLIB=/etc/puppet/modules/networking/lib" on puppet master. On puppet master, it works. facter active_interface eth0 But on client, it did not even seem to tr

[Puppet Users] puppet code to find out which is the first active network interface

2011-05-20 Thread hyzhang
I have a piece of shell script as below: ACTIVE_INTERFACE=`/sbin/ifconfig | /bin/gawk ' /^eth/ { print $1 } ' | /usr/bin/head -1` How do I translate it to puppet code, for example to assign the result as a variable to use? Thanks, -Haiyan -- You received this message because you are subscribed

[Puppet Users] How to pass variables from got from kickstart to puppet

2011-05-19 Thread hyzhang
We are trying to make puppet to do the some of the kickstart part for CentOS installation. The kickstart will prompt for hostname, IP, etc, then install the puppet client to the client. From then on, puppet would take over. My question is, how can I pass the variable such as hostname, IP,etc gotte

[Puppet Users] Re: puppet can not set password for a local user account. Plus puppet can not add members to a group

2011-04-16 Thread hyzhang
Hey Post back to the group .. you'll probably get more out of it :) Anyways, on that page you linked to , there is a table: http://docs.puppetlabs.com/references/latest/type.html#user-3 You are using the useradd provider because puppet is using that provider behind the scenes. I know it sounds c

[Puppet Users] puppet can not set password for a local user account. Plus puppet can not add members to a group

2011-04-15 Thread hyzhang
Hi, I try to create a user account for example test1 and set the password for it. Both puppet master and client are CentOS 5.5. My code on master: class localaccountmgmt { user { 'test1': allowdupe => 'true', ensure => 'present', gid=> '60', home =>

[Puppet Users] Re: puppet client could not request certificate: Error 500 on SERVER

2011-03-30 Thread hyzhang
Thank. I am pasting the entire message here: Mar 30 14:01:04 puppetclient1 puppet-agent[28571]: Could not request certificate: Error 500 on SERVER: http://www.w3.org/TR/html4/strict.dtd";> Ruby (Rack) application could not be started

[Puppet Users] puppet client could not request certificate: Error 500 on SERVER

2011-03-30 Thread hyzhang
Hi, I am new to puppet. I have puppet server set up with passenger. But when I start puppetd from client, I see following error in the syslog file: Mar 30 13:52:03 puppetclient1 puppet-agent[29732]: Could not request certificate: Error 500 on SERVER: http://www.w3.org/TR/html4/strict.dtd";>

[Puppet Users] Re: WEBrick, Passenger or Mongrel

2011-03-30 Thread hyzhang
rack/files Thanks, -Haiyan On Mar 29, 11:31 am, hyzhang wrote: > Thank you Miroslaw. I followed instructions from the link. In > Configure Apache section, there is > > cp puppetmaster.conf /etc/httpd/conf.d/ > > Where is the puppetmaster.conf file? I can not find it anywhere.

[Puppet Users] Re: WEBrick, Passenger or Mongrel

2011-03-29 Thread hyzhang
g the instructions found > here:http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger > > Hope this helps. > On Mar 23, 11:25 am, hyzhang wrote: > > > Hi, > > > My organization is going to set up puppet soon. We have thousands > > servers and desktops. Woul

[Puppet Users] Re: WEBrick, Passenger or Mongrel

2011-03-23 Thread hyzhang
nning (piece of cake!). > > I can recommend this setup. > > ~Charles~ > > On Wed, Mar 23, 2011 at 10:25 AM, hyzhang wrote: > > Hi, > > > My organization is going to set up puppet soon. We have thousands > > servers and desktops. Would WEBrick work

[Puppet Users] WEBrick, Passenger or Mongrel

2011-03-23 Thread hyzhang
Hi, My organization is going to set up puppet soon. We have thousands servers and desktops. Would WEBrick work well for this? Or should we use Passenger? Thanks, Haiyan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, sen