+ All Categories
Home > Documents > Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet...

Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet...

Date post: 15-Sep-2020
Category:
Upload: others
View: 14 times
Download: 0 times
Share this document with a friend
9
Configuration Management with Puppet client/server
Transcript
Page 1: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Configuration Management with Puppetclient/server

Page 2: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Puppet client/server

● Secure communication ○ over https○ Uses x.509 certificates

● Ecosystem○ Version Control○ puppetdb○ hiera○ foreman

● Support Environments

Page 3: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Manifests Compile

Puppet-D

ev

Managed-N

ode

writes

transform

Page 4: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Puppet run with C/S

Page 5: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Secure communication

1. Client generate Certificate2. Client send certificate to puppet master3. Puppet master stores client certificate

request 4. Admin approve request5. Client receive signed certificate6. Client and Master can communicate

Page 6: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Ecosystem

● hiera○ Tool to store manifests data. ○ Different Backends

■ hierarchical files, DB, Rest Application ...● puppetdb

○ Tool to store catalogs, facts and reports in DB○ Useful for “exported resources”○ Tool to query your puppet nodes

● Foreman○ swiss knife○ Configure provisioning, communicate with the

infrastructure, show graphical reports

Page 7: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Ecosystem

● version control system○ To manage the puppet manifests/environments○ Tools

■ Subversion (bad)■ GIT (good)■ Any other (mad)

Page 8: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

EnvironmentsEnvironments are isolated groups of puppet agent nodes. A puppet

master server can serve each environment with completely different

main manifests and modulepaths.

This frees you to use different versions of the same modules for

different populations of nodes, which is useful for testing changes to

your Puppet code before implementing them on production machines.

(You could also do this by running a separate puppet master for

testing, but using environments is often easier.)

https://docs.puppetlabs.com/puppet/latest/reference/environments.html

Page 9: Configuration Management with PuppetConfiguration Management with Puppet client/server. Puppet client/server Secure communication ... Tool to store manifests data. Different Backends

Environments

● Development /Test /Integration● Separate code

○ departments○ location

● Could be represented with branches


Recommended