Skip to content

Latest commit

 

History

History
72 lines (60 loc) · 1.78 KB

equinix_metal.adoc

File metadata and controls

72 lines (60 loc) · 1.78 KB

Equinix Metal (packet)

  1. Create an account at metal.equinix.com

  2. Create a new organization if needed

  3. Create a new API key

  4. Create Secret file

    equinix_metal_secrets.yaml
    equinix_metal_payment_method_id: ...
    equinix_metal_organization_id: ...
    equinix_metal_api_token: ...
  5. Create var file

    equinix_metal_example.yaml
    env_type: just-a-bunch-of-nodes
    cloud_provider: equinix_metal
  6. Use podman with image Dockerfile-equinix_metal or install the same python modules as done in the image.

  7. Run

    ansible-playbook main.yml -e @/secrets/equinix_metal_secrets.yaml -e @/vars/equinix_metal_secrets.yaml

Differences with other Cloud Providers

Tags

Tags in Equinix Metal are not a dictionary, but just a list of strings.

That means, agnosticd converts the tags provided by the config developer.

AgnosticD
tags:
  - key: "AnsibleGroup"
    value: "nodes"
  - key: "ostype"
    value: "linux"
  - key: "guid"
    value: "{{ guid }}"
Equinix Metal
tags:
  - AnsibleGroup=nodes
  - ostype=linux
  - guid=abcdf

How Tos

List all available Operating Systems
curl -H "X-Auth-Token: $PACKET_API_TOKEN" \
https://api.equinix.com/metal/v1/operating-systems
List all facilities
curl -H "X-Auth-Token: $PACKET_API_TOKEN"  https://api.equinix.com/metal/v1/facilities