15e1c3f22e
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 |
||
---|---|---|
.. | ||
defaults | ||
files | ||
handlers | ||
meta | ||
tasks | ||
vars | ||
README.md |
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