Project

General

Profile

Tâche #30563

Scénario #30562: Tester l'installation de The Foreman project

Intstaller The Foreman sur une Debian Buster

Added by Fabrice Barconnière about 3 years ago. Updated almost 3 years ago.

Status:
Fermé
Priority:
Normal
Start date:
08/31/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

History

#1 Updated by Fabrice Barconnière about 3 years ago

  • Status changed from Nouveau to En cours
  • % Done changed from 0 to 100
La procédure d'installation fournie n'est pas concluante sur Debian mais je détaille quand même un peu plus ce que j'ai fait
  • Déploiement dans One d'une Buster - RAM 4GB - HDD 20GB - Réseau academie
  • Installation de paquets Saltstack 3001 (salt-master, salt-ssh et salt-api) et python3-cherrypy3 (manque dépendance dans salt-api) : https://repo.saltstack.com/#debian
  • Préparation des dépôts pour Debian 10 (Buster) et installation de foreman-installer (ne pas lancer foreman-installer pour l'instant) : https://theforeman.org/manuals/2.1/quickstart_guide.html
  • Modifier de fichier /etc/hosts pour que le hostname réponde sur son IP ens3 et non sur 127.0.0.1
  • Passer les locales à en_US.UTF-8 (nécessaire pour les bases postgresql de foreman) : https://projects.theforeman.org/issues/13496
  • Installer The foreman et configurer salt et le smart proxy foreman : https://theforeman.org/plugins/foreman_salt/13.0/index.html
    • Attention aux chemins des certificats, ils ne sont pas toujours corrects dans leur doc (à configurer à 2 endroits)
      • CA : /etc/puppetlabs/puppet/ssl/certs/ca.pem
      • Certif : /etc/puppetlabs/puppet/ssl/certs/"Hostname_FQDN".pem
      • SSL Private key : /etc/puppetlabs/puppet/ssl/private_keys/"Hostname_FQDN".pem
    • La commande adduser est à adapter pour Debian, elle fonctionne pour CentOS

Malgré ça, l'installation n'aboutit pas

'/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
[...]
 /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from 'notrun' to ['0'] failed: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]

#2 Updated by Fabrice Barconnière about 3 years ago

  • Status changed from En cours to Résolu

#3 Updated by Fabrice Barconnière almost 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF