Project

General

Profile

Tâche #29329

Scénario #29287: Amon 3

Tester l'installation de salt sur OPNSense

Added by Fabrice Barconnière 17 days ago. Updated 12 days ago.

Status:
Résolu
Priority:
Normal
Start date:
11/25/2019
Due date:
% Done:

100%

Estimated time:
6.00 h
Spent time:
Remaining (hours):
0.0

History

#1 Updated by Fabrice Barconnière 17 days ago

  • Status changed from Nouveau to En cours

#2 Updated by Fabrice Barconnière 17 days ago

  • Assigned To set to Fabrice Barconnière

#3 Updated by Fabrice Barconnière 17 days ago

  • Ajouter un dépôt contenant le paquet py36-salt
    root@OPNsense:~ # cat << FIN >> /usr/local/etc/pkg/repos/FreeBSD2.conf
    FreeBSDr2: {
      url: "pkg+http://pkg.FreeBSD.org/\${ABI}/release_2",
      mirror_type: "srv",
      signature_type: "fingerprints",
      fingerprints: "/usr/share/keys/pkg",
      enabled: yes
    }
    FIN
    
  • Installer le paquet py36-salt et toutes ses dépendances
    root@OPNsense:~ # pkg install -r FreeBSDr2 py36-salt
    
  • Activer et démarrer le service salt_minion
    root@OPNsense:~ # sysrc salt_minion_enable="YES"                                                
    salt_minion_enable:  -> YES
    root@OPNsense:~ # service salt_minion start                                                                                                                                                   
    Starting salt_minion.
    

#4 Updated by Fabrice Barconnière 16 days ago

  • Subject changed from Tester l'installation de salt sur ONPSense to Tester l'installation de salt sur OPNSense

#5 Updated by Fabrice Barconnière 16 days ago

Mais l'ajout ne dépôt n'est pas maintenu par OPNSense.
Le méthode conseillée est de partir des sources : https://wiki.opnsense.org/manual/software_included.html#the-ports-tree
Comment installer salt : https://docs.saltstack.com/en/latest/topics/installation/freebsd.html

#6 Updated by Fabrice Barconnière 12 days ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 6.0 to 0.0
Compilation pour python 3.7 :
  • Mise à jour OPNSense
    root@OPNsense:~ # pkg update
    root@OPNsense:~ # pkg upgrade
    
  • Builder py37-salt
    root@OPNsense:~ # echo "DEFAULT_VERSIONS+= python=3.7" >> /etc/make.conf
    root@OPNsense:~ # opnsense-code ports tools
    root@OPNsense:~ # cd /usr/ports/sysutils/py-salt
    root@OPNsense:/usr/ports/sysutils/py-salt # make install
    root@OPNsense:/usr/ports/sysutils/py-salt # sysrc salt_minion_enable="YES" 
    root@OPNsense:/usr/ports/sysutils/py-salt # service salt_minion start
    

#7 Updated by Fabrice Barconnière 12 days ago

  • Status changed from En cours to Résolu

Also available in: Atom PDF