bifrost/playbooks/roles/bifrost-create-vm-nodes
Julia Kreger 15e1c3f22e Ansible 2.0 compatibility
These changes allow the various playbooks to be executed by
Ansible 1.9.x and 2.0. This was necessary as 2.0 has a number
of changes to the YAML processor, and certain ways of doing
things have naturally had to change.

- Removed pass-through variable when a role is explicitly defined
  with variables passed through to it as updated yaml parser fails
  to handle appropriately.
- Defined a default dib_packages variable of an empty string.
- Changed stray boolean compare to use an is defined check as
  the the parser in Ansible 2.0 does not equate undefined to
  false.
- Explicitly defined the testing_user for the syntax check
  as the check fails without it.
- Revised MySQL module syntax usage to be compatible between
  Ansible 1.9.x and 2.0 development branches.
- Updated some conditionals making string compares with lookups
  which is apparently problematic in Ansible 2.0.

Depends-On: I9d5fa719793896cce00a69dafba738755b45b068
Depends-On: I23e902c8637e142fba23d71467225d48ee265253
Change-Id: I4fec7f44dd9d591388f345b3f449cb44b8e50744
Closes-Bug: 1469862
2015-10-02 12:58:11 +00:00
..
defaults Allow Test VM RAM setting to be tunable 2015-09-08 17:18:57 -04:00
files Clean up text in playbooks, roles, and associated files 2015-09-11 14:23:54 -07:00
handlers Rearranging the repository 2015-04-16 15:22:30 -04:00
meta Cleanup role meta definitions 2015-08-25 19:41:29 -04:00
tasks Ansible 2.0 compatibility 2015-10-02 12:58:11 +00:00
vars Rearranging the repository 2015-04-16 15:22:30 -04:00
README.md Follow up to Ifdccb32035fa91fe8d8200c3090973c34d453801 2015-09-09 11:14:30 -04:00

bifrost-create-vm-nodes

This role creates virtual machines for testing bifrost.

Requirements

The following packages are required and ensured to be present:

  • libvirt-bin
  • qemu-utils
  • qemu-kvm
  • sgabios

Role Variables

baremetal_csv_file: "/tmp/baremetal.csv"

test_vm_memory_size: Tunable setting to allow a user to define a specific amount of RAM in MB to allocate to guest/test VMs. Defaults to "3072". Note: if this setting is modified between test runs, you may need to undefine the test virtual machine(s) that were previously created.

Dependencies

None at this time.

Example Playbook

  • hosts: localhost connection: local sudo: yes gather_facts: yes roles:
    • role: bifrost-create-vm-nodes

License

Copyright (c) 2015 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author Information

Ironic Developers