FOREMAN+PUPPET

From RARFORGE
Jump to: navigation, search

Contents

products

http://theforeman.org/

https://puppetlabs.com/


howto docs

http://docs.puppetlabs.com/learning/agent_master_basic.html

http://docs.puppetlabs.com/puppet/2.7/reference/modules_installing.html


puppet modules

http://forge.puppetlabs.com/


Install from PuppetLabs Repos

http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html


Enterprise Linux 5

 sudo rpm -ivh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-7.noarch.rpm
 sudo yum install puppet


Enterprise Linux 6

 sudo rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm
 sudo yum install puppet

Ubuntu / Debian

wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
sudo dpkg -i puppetlabs-release-precise.deb
sudo apt-get update
sudo apt-get install puppet
## extra due to broken dependency 
sudo apt-get install libaugeas-ruby1.9.1

Fedora 16

 sudo rpm -ivh http://yum.puppetlabs.com/fedora/f16/products/i386/puppetlabs-release-16-7.noarch.rpm
 sudo yum install puppet


Fedora 17

 sudo rpm -ivh http://yum.puppetlabs.com/fedora/f17/products/i386/puppetlabs-release-17-7.noarch.rpm
 sudo yum install puppet


Fedora 18

 sudo rpm -ivh http://yum.puppetlabs.com/fedora/f18/products/i386/puppetlabs-release-18-7.noarch.rpm
 sudo yum install puppet


quick and dirty

connect client to server

  • Verify you can resolve the host 'puppet'
  1. run puppet on client

root@musicbrainz:~# puppet agent --test

Info: Caching certificate for ca Info: Creating a new SSL certificate request for musicbrainz.local Info: Certificate Request fingerprint (SHA256): ..... Exiting; no certificate found and waitforcert is disablede </source>

# sign client cert on server
[root@puppet manifests]# puppet cert list
 
  "musicbrainz.local" (SHA256) .......
 
[root@puppet manifests]# puppet cert sign musicbrainz.local
 
Notice: Signed certificate request for musicbrainz.local
Notice: Removing file Puppet::SSL::CertificateRequest musicbrainz.local at '/var/lib/puppet/ssl/ca/requests/musicbrainz.local.pem'
# now run puppet on client (it will not do anything unless you have configured site.pp or other means)
root@musicbrainz:~# puppet agent --test
 
Info: Caching catalog for musicbrainz.local
Info: Applying configuration version '1367080619'
Notice: /Stage[main]//Node[default]/Service[puppet]/ensure: ensure changed 'stopped' to 'running'
Notice: Finished catalog run in 1.83 seconds
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox