Module - metalsmith_instances

This module provides for the following ansible plugin:

  • metalsmith_instances

Module Documentation

Provision and unprovision ironic baremetal instances using metalsmith, which is a a simple tool to provision bare metal machines using OpenStack Bare Metal Service (ironic) and, optionally, OpenStack Image Service (glance) and OpenStack Networking Service (neutron).

Options

instances

List of node description dicts to perform operations on

clean_up

Clean up resources on failure

state

Desired provision state, "present" to provision, "absent" to unprovision, "reserved" to create an allocation record without changing the node state

wait

A boolean value instructing the module to wait for node provision to complete before returning. A 'yes' is implied if the number of instances is more than the concurrency.

timeout

An integer value representing the number of seconds to wait for the node provision to complete.

concurrency

Maximum number of instances to provision at once. Set to 0 to have no concurrency limit

Authors

Steve Baker (@stevebaker)

Example Tasks

- name: Generate puppet container config for step 1
  container_puppet_config:
    step: 1
    puppet-config: /var/lib/container-puppet/container-puppet.json
    short_hostname: "{{ ansible_facts['hostname'] }}"
    update_config_hash_only: false
- name: Update config hashes for container startup configs
  container_puppet_config:
    update_config_hash_only: true