bifrost/playbooks/roles/ironic-enroll-dynamic/tasks/main.yml
Julia Kreger d700c832cd Initial dynamic enrollment role
Adding a role and modified test playbook that can be leveraged
to utilize the dynamic inventory for enrolling nodes into Ironic
without any special logic in the role it's self.

Change-Id: I085d81aa7fc4926cd2a1354f0cd9da403c802d2d
2015-06-10 19:17:57 +00:00

31 lines
1.0 KiB
YAML

# 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: "Dynamic Enrollment"
os_ironic:
auth_type: None
auth: None
ironic_url: "{{ ironic_url }}"
driver: "{{ driver }}"
uuid: "{{ uuid }}"
state: present
nics: "{{nics}}"
properties: "{{ properties }}"
driver_info:
power: "{{ driver_info.power }}"
deploy:
deploy_kernel: "{{ deploy_kernel_url }}"
deploy_ramdisk: "{{ deploy_ramdisk_url }}"
delegate_to: localhost