OpenStack-Ansible MoltenIron

OpenStack-Ansible MoltenIron

Ansible role to deploy MoltenIron.

To clone or view the source code for this repository, visit the role repository for os_molteniron.

Default variables

## Verbosity Options
debug: False

# Set the package install state for distribution packages
# Options are 'present' and 'latest'
molteniron_package_state: "latest"

molteniron_git_repo: https://git.openstack.org/openstack/molteniron
molteniron_git_install_branch: master
molteniron_developer_mode: false
molteniron_developer_constraints:
  - "git+{{ molteniron_git_repo }}@{{ molteniron_git_install_branch }}#egg=molteniron"

# TODO(odyssey4me):
# This can be simplified once all the roles are using
# python_venv_build. We can then switch to using a
# set of constraints in pip.conf inside the venv,
# perhaps prepared by giving a giving a list of
# constraints to the role.
molteniron_pip_install_args: >-
  {{ molteniron_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
  {{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''), '') }}
  {{ pip_install_options | default('') }}

# Name of the virtual env to deploy into
molteniron_venv_tag: "{{ venv_tag | default('untagged') }}"
molteniron_bin: "/openstack/venvs/molteniron-{{ molteniron_venv_tag }}/bin"

molteniron_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/molteniron.tgz

## Molteniron User / Group
molteniron_system_user_name: molteniron
molteniron_system_group_name: molteniron
molteniron_system_shell: /bin/bash
molteniron_system_comment: molteniron system user
molteniron_system_home_folder: "/var/lib/{{ molteniron_system_user_name }}"

## Molteniron default ports
# You can change the object, container, account ports.
# This will update the ring, on the next playbook run,
# without requiring a rebalance.
# NB: There is service downtime, during the run, between
# the service restart and the ring updating.
molteniron_object_port: "5656"

## Molteniron service defaults
molteniron_service_name: molteniron

# Basic molteniron configuration for the cluster
molteniron: {}

# Example basic molteniron configuration for the cluster
# molteniron:

# molteniron packages that must be installed before anything else
molteniron_requires_pip_packages:
  - daemonize
  - osprofiler
  - PyMySQL
  - pyyaml
  - sqlalchemy
  - sqlalchemy_utils
  - virtualenv

# Common pip packages
molteniron_pip_packages:
  - molteniron

# This variable is used by the repo_build process to determine
# which host group to check for members of before building the
# pip packages required by this role. The value is picked up
# by the py_pkgs lookup.
molteniron_role_project_group: molteniron_all

Dependencies

This role needs pip >= 7.1 installed on the target host.

To install molteniron nodes, please add the following set of information: There can be more than one bare metal node.

# To install molteniron nodes, please add the following set of information:
# There can be more than one bare metal node.
molteniron_baremetal_nodes:
  - name: test1
    ipmi_ip: 10.1.2.1
    ipmi_user: user
    ipmi_password: password
    allocation_pool: 10.1.2.3,10.1.2.4
    port_hwaddr: de:ad:be:ef:00:01
    cpu_arch: ppc64el
    cpus: 8
    ram_mb: 2048
    disk_gb: 32

Example playbook

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.