kayobe/ansible/roles/dell-switch-bmp
Pierre Riteau f3c0526c09 Adapt to changes from the Bifrost Victoria release
The critical part of this commit is adapting code that was still
sourcing env-vars. This file was removed from Bifrost in the Victoria
release, breaking the `kayobe seed deployment image build` command.

The other changes are not yet breaking Kayobe:

1) Release notes claim that OpenStackClient is no longer installed when
   keystone is not enabled, but it appears to still be available. Use
   the ironic native baremetal command instead except in playbooks
   related to baremetal compute nodes (i.e. overcloud ironic).

2) The use of OS_CLOUD=bifrost-inspector is deprecated and should be
   replaced by OS_CLOUD=bifrost.

Change-Id: I25078e69acdf41a4ef9957f99fe5047de54b778d
Story: 2008558
Task: 41696
2021-01-27 11:00:36 +01:00
..
defaults Add support for Bare Metal Provisioning (BMP) of Dell switches via seed 2017-03-24 16:14:48 +00:00
handlers Adapt to changes from the Bifrost Victoria release 2021-01-27 11:00:36 +01:00
tasks Add support for Bare Metal Provisioning (BMP) of Dell switches via seed 2017-03-24 16:14:48 +00:00
templates Add support for Bare Metal Provisioning (BMP) of Dell switches via seed 2017-03-24 16:14:48 +00:00
README.md Update README for dell-switch-bmp role 2017-03-28 16:18:21 +01:00

Dell Switch BMP

This role configures a network boot environment for Dell switches with Bare Metal Provisioning (BMP) functionality.

Requirements

The use of an OpenStack Bifrost container deployed using OpenStack Kolla-ansible is assumed, with the dnsmasq service providing DHCP and nginx serving the switch OS images.

Role Variables

dell_switch_bmp_images is a list of images to provide a BMP configuration for, and defaults to an empty list. Each item should be a dict with the following items:

  • url - URL of the image to download.
  • dest- name of the file to download the image to.
  • match - dnsmasq match rule to match hosts against.
  • tag - dnsmasq tag to apply to matching hosts.
  • checksum - optional checksum of image, in format required for Ansible's get_url module.

dell_switch_bmp_http_base_url is the base URL of HTTP server.

dell_switch_bmp_httpboot_path is the path to the HTTP server base directory, and defaults to /httpboot.

Dependencies

None

Example Playbook

The following playbook configures a network boot environment in the Bifrost container for s6010-ON switches with the ONIE-FTOS-9.10.0.1P25.bin image.

---
# This playbook will configure a Bare Metal Provisioning (BMP) environment for
# Dell switches on the Bifrost node so that they can be network booted.

- name: Ensure that a Bare Metal Provisioning (BMP) environment is configured for Dell switches
  hosts: bifrost
  roles:
    - role: dell-switch-bmp
      dell_switch_bmp_images:
        # ONIE installer image for S6010-ON.
        - url: "ftp://ftp.force10networks.com/releases/FTOS_Release/E9.10.0.1P25/S6010/ONIE-FTOS-S6010-9.10.0.1P25.bin"
          checksum: "md5:f94fdfa50dc23f87bf2871ae96b6cff3"
          dest: "onie-installer-x86_64-dell_s6010_c2538-r0"
          match: "option:vendor-class,onie_vendor:x86_64-dell_s6010_c2538-r0"
          tag: "onie"
      # This is the base URL of the Nginx web server on the Bifrost node.
      dell_switch_bmp_http_base_url: "http://10.0.0.1:8080"

Author Information