Server installation: CentOS 6
Client installation: CentOS 6, CentOS 5
[root@jet network-scripts]# passenger-config --root /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11
includepkgs=puppet* facter augeas augeas-libs ruby-augeas ruby-ldap ruby-shadow rubygems rubygem-rake
Use this if you want to use stored configs/exported resources
http://projects.puppetlabs.com/projects/1/wiki/Using_Stored_Configuration
# mysql -u root -p mysql> create database puppet; mysql> grant all privileges on puppet.* to puppet@localhost identified by 'password';
[puppetmasterd] storeconfigs = true dbadapter = mysql dbuser = puppet dbpassword = password dbserver = localhost dbsocket = /var/lib/mysql/mysql.sock
create index exported_restype_title on resources (exported, restype, title(50));
requires mysql above
Look into this to setup passenger: http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html
http://www.craigdunn.org/2010/08/part-3-installing-puppet-dashboard-on-centos-puppet-2-6-1/
# mysql -u root -p mysql> create database puppet_dash_prod; mysql> grant all privileges on puppet_dash_prod.* to puppet@localhost identified by 'password';
(leave off identified by if you already have a puppet user)
/usr/share/puppet-dashboard/config/database.yml
cd /usr/share/puppet-dashboard; rake RAILS_ENV=production db:migrate
chown puppet-dashboard:puppet-dashboard /usr/share/puppet-dashboard/log/production.log
Run puppetmaster out of passenger/rack served up from Apache for scalability (default puppetmasterd and mongrel setup doesn't scale)
https://github.com/puppetlabs/puppet/tree/master/ext/rack
puppet apply /etc/puppet/manifests/puppet-server.pp
PUPPETMASTER_PORTS=( 18140 18141 18142 18143 )
in /etc/sysconfig/puppetmaster
http://projects.puppetlabs.com/projects/1/wiki/Module_Iptables_Patterns
http://docs.puppetlabs.com/references/latest/type.html
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Augeas
http://people.redhat.com/dlutter/puppet-app.html http://docs.puppetlabs.com/ http://ifireball.wordpress.com/docs/howto-install-puppet-on-centos-50/
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11 PassengerRuby /usr/bin/ruby
<VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public # <-- be sure to point to 'public'! <Directory /somewhere/public> AllowOverride all # <-- relax Apache security settings Options -MultiViews # <-- MultiViews must be turned off </Directory> </VirtualHost>
puppet-server
augeas-libs ruby-augeas ruby-shadow
rubygem-activesupport rubygem-fastthread gem install activerecord -v '3.0.10' gem install activerecord -v '3.0.10'
server = xtc2.thoughtbit.com node_terminus = ldap ldapnodes = true ldapserver = xtc2.thoughtbit.com ldapbase = ou=systems,dc=thoughtbit,dc=com
puppet agent --server xtc2.thoughtbit.com --waitforcert 60 --test
puppet agent --test
puppet cert --list puppet cert --sign hostname.domain
3.0.10
(see bug: http://projects.puppetlabs.com/issues/9290)augtool
for testing: # augtool print /files/etc/ssh/sshd_config
# augtool augtool> print /files/etc/php.d/apc.ini augtool> print /augeas//error