Merge "Remove un-necessary role"

This commit is contained in:
Jenkins 2015-07-29 16:21:42 +00:00 committed by Gerrit Code Review
commit c41574f0b4
7 changed files with 0 additions and 226 deletions

View File

@ -114,5 +114,4 @@ galaxy_info:
#- system
#- web
dependencies:
- bifrost-validate-host-for-deploy
- bifrost-configdrives

View File

@ -1,59 +0,0 @@
bifrost-validate-host-for-deploy
================================
Preforms basic sanity checks of an Ironic node as part of Bifrost host before nodes are provisioned.
Requirements
------------
This role performs basic validation of an Ironic installation resulting from the execution of the ironic-install role. As such, that role is required to have been previously executed, however is not required to be executed as part of the same playbook.
Role Variables
--------------
Along the lines of most of the other Bifrost roles, this playbook requires a variable "baremetal_csv_file". This role does _not_ automatically set or assume the location of this file for the reason that this file must be defined by the user. This variable is utilized to validate that the file defined is, in fact, a file.
The other variable of note is "deploy_image" which is the image to be deployed to the end host. If executed in concert with other roles for node deployment, this should be defined as a common variable for all of the roles.
Dependencies
------------
This role is dependent upon the results of the install-ironic role having been previously applied to the host.
The bifrost-setup-nodes role is dependent upon this role for node validation.
Example Playbook
----------------
- hosts: localhost
connection: local
sudo: no
vars:
baremetal_csv_file: "/path/to/baremetal.csv"
deploy_image: "/httpboot/deployment_image.qcow2"
roles:
- role: bifrost-validate-host-for-deploy
- role: bifrost-configdrives
- role: bifrost-setup-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

View File

@ -1,5 +0,0 @@
---
# defaults file for bifrost-validate-host-for-deploy
http_boot_folder: "/httpboot"
deploy_image_filename: "deployment_image.qcow2"
deploy_image: "{{http_boot_folder}}/{{deploy_image_filename}}"

View File

@ -1,2 +0,0 @@
---
# handlers file for ironic-bifrost-validate-host-for-deploy

View File

@ -1,116 +0,0 @@
---
galaxy_info:
author: Ironic Developers
description:
company: OpenStack
license: Apache
min_ansible_version: 1.9
#
# Below are all platforms currently available. Just uncomment
# the ones that apply to your role. If you don't see your
# platform on this list, let us know and we'll get it added!
#
platforms:
#- name: EL
# versions:
# - all
# - 5
# - 6
# - 7
#- name: GenericUNIX
# versions:
# - all
# - any
#- name: Fedora
# versions:
# - all
# - 16
# - 17
# - 18
# - 19
# - 20
#- name: SmartOS
# versions:
# - all
# - any
#- name: opensuse
# versions:
# - all
# - 12.1
# - 12.2
# - 12.3
# - 13.1
# - 13.2
#- name: Amazon
# versions:
# - all
# - 2013.03
# - 2013.09
#- name: GenericBSD
# versions:
# - all
# - any
#- name: FreeBSD
# versions:
# - all
# - 8.0
# - 8.1
# - 8.2
# - 8.3
# - 8.4
# - 9.0
# - 9.1
# - 9.1
# - 9.2
#- name: Ubuntu
# versions:
# - all
# - lucid
# - maverick
# - natty
# - oneiric
# - precise
# - quantal
# - raring
# - saucy
- trusty
#- name: SLES
# versions:
# - all
# - 10SP3
# - 10SP4
# - 11
# - 11SP1
# - 11SP2
# - 11SP3
#- name: GenericLinux
# versions:
# - all
# - any
#- name: Debian
# versions:
# - all
# - etch
# - lenny
# - squeeze
# - wheezy
#
# Below are all categories currently available. Just as with
# the platforms above, uncomment those that apply to your role.
#
categories:
- cloud
- cloud:openstack
#- cloud:gce
#- cloud:rax
#- clustering
#- database
#- database:nosql
#- database:sql
#- development
#- monitoring
#- networking
#- packaging
#- system
#- web
dependencies: []

View File

@ -1,41 +0,0 @@
# 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.
---
- name: "Error if variable baremetal_csv_file is not defined"
local_action: fail msg="baremetal_csv_file must be defined for this playbook to execute, please pass option '-e baremetal_csv_file=<path/to/file>'"
when: baremetal_csv_file is not defined
- name: "Validate that CSV file exists"
local_action: stat path={{ baremetal_csv_file }}
register: test_baremetal_csv_file
- name: "Error if file does not exist."
local_action: fail msg="The variable defined for baremetal_csv_file is not to a file. Please define a file and try again."
when: test_baremetal_csv_file.stat.isreg == false
- name: "Verify CoreOS kernel is present."
local_action: stat path={{ http_boot_folder }}/coreos_production_pxe.vmlinuz
register: test_core_os_kernel_present
- name: "Error if the CoreOS kernel is missing."
local_action: fail msg="CoreOS kernel not found. Consider re-running setup."
when: test_core_os_kernel_present.stat.exists == false
- name: "Verify CoreOS ramdisk is present."
local_action: stat path={{ http_boot_folder }}/coreos_production_pxe_image-oem.cpio.gz
register: test_core_os_image_present
- name: "Error if the CoreOS ramdisk is missing."
local_action: fail msg="CoreOS ramdisk was not found. Consider re-running setup."
when: test_core_os_image_present.stat.exists == false
- name: "Verify that deployment image is present."
local_action: stat path={{deploy_image}}
register: test_deploy_image
- name: "Error if deployment image is missing."
local_action: fail msg="Deployment image is missing. Consider re-running setup."
when: test_deploy_image.stat.exists == false

View File

@ -1,2 +0,0 @@
---
# vars file for bifrost-validate-host-for-deploy