Puppet
De Linuxmemo.
(Différences entre les versions)
(→Puppet manifest) |
(→Puppet manifest) |
||
| Ligne 23 : | Ligne 23 : | ||
Services | Services | ||
...and many more. | ...and many more. | ||
| + | |||
| + | ===Déclaration de ressources== | ||
| + | resource_type { 'resource_title': | ||
| + | ensure => present, # usually 'present' or 'absent' | ||
| + | attribute1 => 1234, # number | ||
| + | attribute2 => 'value', # string | ||
| + | attribute3 => ['red','blue'], # array | ||
| + | noop => false, # boolean | ||
| + | } | ||
| + | |||
==Utilisation== | ==Utilisation== | ||
*tester ses manifests | *tester ses manifests | ||
Version du 22 avril 2016 à 08:39
Sommaire |
Master
sudo apt-get install puppetserver
- Get the master’s names and certificates set up
vim /etc/puppet/puppet.conf dns_alt_names = sudo puppet master --verbose --no-daemonize
- Configure any necessary settings
- Put your Puppet modules and manifests in place
- Configure a production-ready web server
- Configure load balancing and CA service routing if you’re using multiple masters
- Start the puppet master service
Agent
sudo apt-get install puppet
Puppet manifest
block of the Puppet configuration language built-in resources:
Users Groups Files Hosts Packages Services
...and many more.
=Déclaration de ressources
resource_type { 'resource_title':
ensure => present, # usually 'present' or 'absent'
attribute1 => 1234, # number
attribute2 => 'value', # string
attribute3 => ['red','blue'], # array
noop => false, # boolean
}
Utilisation
- tester ses manifests
puppet apply /vagrant/manifests/helloworld.pp
Astuces
- version