Puppet Master
=============

Installation
------------

Installation of a puppet master is in some way more difficult than all
the other system, since no pre-existant infrastructure is supposed to
be present. It comes natural that the Puppet master is the first
server to be deployed in the current infrastructure.

This `Git repository <https://git.psi.ch/linux-infra/bootstrap>`_
contains the code to deploy a new puppet master.

The procedure to install it are the following steps:

1. install the server, using ``puppet master`` as profile. See `this <http://boh.dont.know>`_ for more informations;

2. after the server reboot, you are be able to login with your `authorized ssh key <http://dont.know>`_;
   
3. copy the ssh root key to the right location with the right
   permissions, so that the server is able to authenticate itself
   against the git repository: ::     

     PUPPETMMASTER=puppetmaster.psi.ch
     scp ssh_rsa_key* root@$PUPPETMASTER:/root/.ssh
     ssh root@$PUPPETMASTER
     chmod 400 /etc/ssh/ssh_rsa_key
     chmod 444 /etc/ssh/ssh_rsa_key.pub

4. You can now deploy the puppet server with the following code: ::

     git clone https://git.psi.ch/linux-infra/bootstrap
     cd bootstrap/instcode
     ./puppetmaster.sh
     

