stackhpc.mlnx-neo

Mellanox NEO SDN-Controller

Diese Rolle kann verwendet werden, um einen Mellanox NEO SDN-Controller, der in einem Docker-Container läuft, zu konfigurieren.

Werkzeuge zum Erstellen eines kompatiblen Container-Images sind auf Github <https://github.com/stackhpc/docker-mlnx-neo> verfügbar.

Anforderungen

Der Host, der die Rolle ausführt, hat folgende Anforderungen:

  • Docker-Engine
  • Python docker >= 2.0.0

Rollenvariablen

  • mlnx_neo_action: Auszuführende Aktion. Eine von build, deploy, destroy, pull, reconfigure, upgrade. Standard ist deploy.
  • mlnx_neo_enabled: Ob NEO aktiviert ist. Standard ist true.
  • mlnx_neo_image: Name des Docker-Images. Erforderlich.
  • mlnx_neo_tag: Tag des Docker-Images. Standard ist latest.
  • mlnx_neo_image_full: Vollständige Docker-Image-Spezifikation.
  • mlnx_neo_restart_policy: Docker-Neustartpolitik für den NEO-Container. Standard ist unless-stopped.
  • mlnx_neo_restart_retries: Anzahl der Docker-Neustarts. Standard ist 10.
  • mlnx_neo_startup_config_path: Pfad zu einer Skripttemplate auf dem localhost, das die Startkonfiguration enthält. Standard ist /etc/mlnx-neo/mlnx-neo-configure.
  • mlnx_neo_config_path: Pfad zu einem Verzeichnis auf dem Remote-Host, um Konfigurationen zu speichern. Standard ist /etc/mlnx-neo.

Die folgenden Variablen sind nur relevant, wenn mlnx_neo_action build ist:

  • mlnx_neo_repo_url: URL des Git-Repos, das das Image enthält. Standard ist https://github.com/stackhpc/docker-mlnx-neo.
  • mlnx_neo_repo_version: Version, die für das Git-Repo mit dem Bild ausgecheckt werden soll. Standard ist master.
  • mlnx_neo_repo_checkout_path: Pfad zu einem Verzeichnis, in dem das Git-Repo ausgecheckt werden soll. Standard ist /tmp.
  • mlnx_neo_tarball_url: URL des NEO-Software-Tarballs. Dies muss festgelegt werden, um das Image zu bauen.
  • mlnx_neo_push: Ob Images nach dem Bau gepusht werden sollen. Standard ist false.
  • mlnx_neo_force_rebuild: Ob das Image auch dann gebaut werden soll, wenn ein Image mit demselben Namen und Tag existiert. Standard ist false.

Abhängigkeiten

Keine

Beispiel-Playbook

Das folgende Playbook konfiguriert Mellanox NEO.

---
- hosts: mlnx-neo
  roles:
    - role: mlnx-neo

Autoreninformation

Über das Projekt

Role to deploy Mellanox NEO SDN controller in a Docker container.

Installieren
ansible-galaxy install stackhpc.mlnx-neo
GitHub Repository
Lizenz
apache-2.0
Downloads
422
Besitzer
StackHPC develops OpenStack capabilities for research computing use cases. Through extensive experience, we understand HPC and cloud.