bifrost/playbooks/roles/bifrost-prepare-for-test
Julia Kreger 6b9581d908 Use Cirros for CI testing
Utilizing Cirros for the guest operating system when performing a
basic test saves a significant amount of time and resources for the
test as it prevents the creation of a disk image.

Additionally, the native support for configuration drives allows
the amount of time we're waiting on the guest OS to be greatly
reduced.

Change-Id: I5a4c497d3502c975db060d3ee08ea2056399a062
Closes-Bug: #1460052
2015-06-01 15:27:27 -04:00
..
defaults Rearranging the repository 2015-04-16 15:22:30 -04:00
handlers Rearranging the repository 2015-04-16 15:22:30 -04:00
meta Cleanup of role definitions 2015-04-16 18:05:28 -04:00
tasks Use Cirros for CI testing 2015-06-01 15:27:27 -04:00
vars Rearranging the repository 2015-04-16 15:22:30 -04:00
README.md Rearranging the repository 2015-04-16 15:22:30 -04:00

bifrost-prepare-for-test

Enrolls nodes that have been stood up by the deployment module in Bifrost, into the in-memory inventory for basic testing as hosts in the testvm group.

Requirements

This role requires the baremetal_csv_file variable which is utilized to add entries to the in-memory inventory.

Role Variables

baremetal_csv_file: This is the CSV file that defines the list of nodes to enroll and deploy as part of Bifrost.

Dependencies

This role is dependent upon an environment having been installed with the install-ironic role, as well as by the bifrost-config-drives and bifrost-setup-nodes roles.

As this role is purely for testing, dependencies are not hard coded into the role.

Example Playbook

  • hosts: localhost connection: local name: "Executes install, enrollment, and testing in one playbook" sudo: no gather_facts: yes roles:
    • role: bifrost-configdrives
    • role: bifrost-setup-nodes
    • role: bifrost-prepare-for-test

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 orimplied. See the License for the specific language governing permissions and limitations under the License.

Author Information

Ironic Developers