Embed presentation
Download as PDF, PPTX






![Puppet DSL Example
package { 'openssh-server':
ensure => installed,
}
file { '/etc/ssh/sshd_config':
source => 'puppet:///modules/sshd/sshd_config',
owner => 'root',
group => 'root',
mode => '640',
notify => Service['sshd'], # sshd will restart whenever you edit this file.
require => Package['openssh-server'],
}
service { 'sshd':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
type title argument](https://image.slidesharecdn.com/puppet-151128221134-lva1-app6891/75/Puppet-Intfrastructure-as-Code-7-2048.jpg)






Puppet is a configuration management tool that uses a declarative domain-specific language to define and manage the desired state of systems. It abstracts infrastructure elements as resources that can be configured and related to each other. For example, a Puppet manifest can install an openssh package, deploy an sshd configuration file, and ensure the sshd service is running. Puppet can operate in standalone mode running puppet apply commands or in a master/client mode where an agent regularly syncs nodes to the desired configuration defined on the master.






![Puppet DSL Example
package { 'openssh-server':
ensure => installed,
}
file { '/etc/ssh/sshd_config':
source => 'puppet:///modules/sshd/sshd_config',
owner => 'root',
group => 'root',
mode => '640',
notify => Service['sshd'], # sshd will restart whenever you edit this file.
require => Package['openssh-server'],
}
service { 'sshd':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
type title argument](https://image.slidesharecdn.com/puppet-151128221134-lva1-app6891/75/Puppet-Intfrastructure-as-Code-7-2048.jpg)




