puppet: step-by-step

Server:

apt-get install puppet puppetmaster
insert into /etc/puppet/manifests/site.pp

1
2
3
4
5
6
7
8
9
10
11
12
class common {
  file { "/tmp/testfile":
    owner => root,
    group => admin,
    mode => 664,
    ensure => present
  }
}

node default {
  include common
}

/etc/init.d/puppetmaster restart

Client:

apt-get install puppet

1
openssl s_client -connect 127.0.0.1:8140 |grep subject
1
2
...
subject=/CN=puppet-master.local

add to /etc/puppet/puppet.conf

1
server=puppet-master.local
1
puppetd --verbose --test

Server:

1
puppetca --sign --all

 

Client:

1
puppetd --verbose --test


/etc/init.d/puppet start