cn:ccr:aai:howto:ansible
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cn:ccr:aai:howto:ansible [2019/03/07 11:10] – dmaselli@infn.it | cn:ccr:aai:howto:ansible [2022/03/15 14:24] (current) – resposit@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Creare un 389ds server tramite Ansible (CentOS 7) ====== | ||
| + | * Installare un server CentOS 7 o compatibile | ||
| + | * Assegnare IP e nome DNS coerente (**__esempio__: | ||
| + | * Copiare la chiave privata del certificato (Digicert) nel server in ''/ | ||
| + | * Copiare il relativo certificato nel server in ''/ | ||
| + | |||
| + | * Configurare / | ||
| + | * Creare nel server la directory /etc/dirsrv | ||
| + | * Copiare il keytab Kerberos nel server in / | ||
| + | |||
| + | ===== Dal client Ansible ===== | ||
| + | |||
| + | * Installare ansible ( yum install ansible ) | ||
| + | * Installare git ( yum install git ) | ||
| + | |||
| + | * Inserire il nodo nell' | ||
| + | |||
| + | <code bash> | ||
| + | cd < | ||
| + | echo dsa.lnf.infn.it >> inventory | ||
| + | </ | ||
| + | |||
| + | * Scaricare il ruolo ansible 389-infn-aai | ||
| + | |||
| + | < | ||
| + | mkdir roles | ||
| + | cd roles | ||
| + | git clone https:// | ||
| + | cd .. | ||
| + | </ | ||
| + | |||
| + | |||
| + | * Creare un file deploy-infn-aai-389-ds.yml | ||
| + | |||
| + | <code yml> | ||
| + | - hosts: dsa.lnf.infn.it | ||
| + | roles: | ||
| + | - 389-infn-aai | ||
| + | </ | ||
| + | |||
| + | * Eseguire il playbook ansible | ||
| + | |||
| + | < | ||
| + | ansible-playbook -i inventory deploy-infn-aai-389-ds.yml | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Accesso a 389ds ==== | ||
| + | |||
| + | * La password di '' | ||
| + | * Per avviare la console è sufficiente accedere al nuovo server e eseguire '' | ||
| + | |||
