?????????????????????????????????????????????????????????????????????????????????????puppetmaster???????????????????????????“time out”???????????????????????????????Puppet??????????????????????puppetmaster???????????????WEB????????Nginx????????puppetmaster?????????????????????????????????????????????puppet???????????

????1?????????????趨??????????????????????????汾????:

??????????????CentOS5.8 x86_64

????Ruby?汾??ruby-1.8.5

????Puppet?汾??puppet-2.7.9

????Nginx?汾??nginx-0.8.46

????2??Mongrel???

????????puppet???????????????mongrel??????????а????????????


yum install -y rubygem-mongrel


????3??????puppetmaster

??????/etc/sysconfig/puppetmaster????β??????????У???????????mongrel??????????????????


PUPPETMASTER_PORTS=(8141 8142 8143 8144 8145)
PUPPETMASTER_EXTRA_OPTS="--servertype=mongrel --ssl_client_header=HTTP_X_SSL_SUBJECT"


????4?????Nginx????

??????????????????????pcre-devel??????????????Nginx????????SSL??????????Nginx?????????????????


yum -y install pcre-devel
cd /usr/local/src
wgethttp://nginx.org/download/nginx-0.8.46.tar.gz
tar zxvf nginx-0.8.46.tar.gz
cd nginx-0.8.46
./configure --prefix=/usr/local/nginx --with-http_ssl_module
make && make install && cd ../


???????www????鼰??????????????????


groupadd www
useradd -g www www