creation d'un puppet master avec un exemple simple de manifest qui implémente http://127.0.0.1:8080/dokuwiki/doku.php?id=sysadm:configuration:base
node default {
######################################################
package { 'etckeeper': ensure => present, }
######################################################
package { 'zabbix-agent': ensure => present, }
######################################################
file { '/root/.bashrc':
ensure => present,
owner => 'root',
group => 'root',
mode => 0400,
replace => true,
source => 'puppet:///files/.bashrc',
}
######################################################
file { '/etc/vim/vimrc.local':
ensure => present,
owner => 'root',
group => 'root',
mode => 0444,
source => 'puppet:///files/vimrc.local',
}
}
node 'puppetmaster.april-int','jenkins.april-int' inherits default {
######################################################
include ssh::server
file { '/root/.ssh':
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0700',
}
file { '/root/.ssh/authorized_keys':
ensure => present,
owner => 'root',
group => 'root',
mode => 0400,
replace => true,
source => 'puppet:///files/authorized_keys',
require => File['/root/.ssh'],
}
######################################################
}