Merge "Retrieve ilo drivers via webserver"
This commit is contained in:
commit
123ad11744
@ -112,6 +112,20 @@ ironic_service_role_name: "admin"
|
|||||||
ironic_service_in_ldap: False
|
ironic_service_in_ldap: False
|
||||||
|
|
||||||
# Ironic image store information
|
# Ironic image store information
|
||||||
|
#
|
||||||
|
### Hosted Web Server
|
||||||
|
#
|
||||||
|
# Set this to True to use http web server to host floppy
|
||||||
|
# images and generated boot ISO. This requires http_root and
|
||||||
|
# http_url to be configured in the [deploy] section of the
|
||||||
|
# config file. If this is set to False, then Ironic will use
|
||||||
|
# Swift to host the floppy images and generated boot_iso.
|
||||||
|
ironic_enable_web_server_for_images: False
|
||||||
|
ironic_http_url: null
|
||||||
|
ironic_http_root: null
|
||||||
|
#
|
||||||
|
### Swift Config
|
||||||
|
#
|
||||||
ironic_swift_image_container: glance_images
|
ironic_swift_image_container: glance_images
|
||||||
ironic_swift_api_version: v1
|
ironic_swift_api_version: v1
|
||||||
ironic_swift_url_endpoint_type: swift
|
ironic_swift_url_endpoint_type: swift
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
environment:
|
environment:
|
||||||
OS_ENDPOINT_TYPE: internalURL
|
OS_ENDPOINT_TYPE: internalURL
|
||||||
when:
|
when:
|
||||||
|
- not ironic_enable_web_server_for_images | bool
|
||||||
- inventory_hostname == groups['ironic_all'][0]
|
- inventory_hostname == groups['ironic_all'][0]
|
||||||
- not ironic_standalone | bool
|
- not ironic_standalone | bool
|
||||||
tags:
|
tags:
|
||||||
@ -41,6 +42,7 @@
|
|||||||
OS_ENDPOINT_TYPE: internalURL
|
OS_ENDPOINT_TYPE: internalURL
|
||||||
register: swift_storage_url
|
register: swift_storage_url
|
||||||
when:
|
when:
|
||||||
|
- not ironic_enable_web_server_for_images | bool
|
||||||
- (ironic_swift_auth_account is undefined) or (ironic_swift_endpoint is undefined)
|
- (ironic_swift_auth_account is undefined) or (ironic_swift_endpoint is undefined)
|
||||||
- not ironic_standalone | bool
|
- not ironic_standalone | bool
|
||||||
tags:
|
tags:
|
||||||
@ -54,6 +56,7 @@
|
|||||||
variables are undefined. Ensure swift is functional and/or define
|
variables are undefined. Ensure swift is functional and/or define
|
||||||
those variables.
|
those variables.
|
||||||
when:
|
when:
|
||||||
|
- not ironic_enable_web_server_for_images | bool
|
||||||
- (ironic_swift_auth_account is undefined) and (ironic_swift_endpoint is undefined)
|
- (ironic_swift_auth_account is undefined) and (ironic_swift_endpoint is undefined)
|
||||||
- not ironic_standalone | bool
|
- not ironic_standalone | bool
|
||||||
- not swift_storage_url.stdout
|
- not swift_storage_url.stdout
|
||||||
@ -64,6 +67,7 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
ironic_swift_auth_account: "{{ swift_storage_url.stdout.split('/v1/')[-1] }}"
|
ironic_swift_auth_account: "{{ swift_storage_url.stdout.split('/v1/')[-1] }}"
|
||||||
when:
|
when:
|
||||||
|
- not ironic_enable_web_server_for_images | bool
|
||||||
- ironic_swift_auth_account is undefined
|
- ironic_swift_auth_account is undefined
|
||||||
- not ironic_standalone | bool
|
- not ironic_standalone | bool
|
||||||
tags:
|
tags:
|
||||||
@ -73,6 +77,7 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
ironic_swift_endpoint: "{{ swift_storage_url.stdout.split('/v1/')[0] }}"
|
ironic_swift_endpoint: "{{ swift_storage_url.stdout.split('/v1/')[0] }}"
|
||||||
when:
|
when:
|
||||||
|
- not ironic_enable_web_server_for_images | bool
|
||||||
- ironic_swift_endpoint is undefined
|
- ironic_swift_endpoint is undefined
|
||||||
- not ironic_standalone | bool
|
- not ironic_standalone | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -58,6 +58,10 @@ erase_devices_priority = {{ ironic_erase_devices_priority }}
|
|||||||
{% if not ironic_standalone | bool %}
|
{% if not ironic_standalone | bool %}
|
||||||
object_store_endpoint_type = {{ ironic_swift_url_endpoint_type }}
|
object_store_endpoint_type = {{ ironic_swift_url_endpoint_type }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if ironic_enable_web_server_for_images | bool %}
|
||||||
|
http_root ={{ ironic_http_root }}
|
||||||
|
http_url = {{ ironic_http_url }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[dhcp]
|
[dhcp]
|
||||||
dhcp_provider = {{ ironic_dhcp_provider }}
|
dhcp_provider = {{ ironic_dhcp_provider }}
|
||||||
@ -77,7 +81,7 @@ username = {{ ironic_glance_service_user_name }}
|
|||||||
user_domain_id = {{ ironic_glance_service_user_domain_id }}
|
user_domain_id = {{ ironic_glance_service_user_domain_id }}
|
||||||
password = {{ glance_service_password }}
|
password = {{ glance_service_password }}
|
||||||
glance_api_servers = {{ ironic_glance_api_servers }}
|
glance_api_servers = {{ ironic_glance_api_servers }}
|
||||||
{% if not ironic_standalone | bool %}
|
{% if not ironic_standalone | bool and not ironic_enable_web_server_for_images | bool %}
|
||||||
swift_temp_url_key = {{ ironic_swift_temp_url_secret_key }}
|
swift_temp_url_key = {{ ironic_swift_temp_url_secret_key }}
|
||||||
swift_container = {{ ironic_swift_image_container }}
|
swift_container = {{ ironic_swift_image_container }}
|
||||||
swift_endpoint_url = {{ ironic_swift_endpoint }}
|
swift_endpoint_url = {{ ironic_swift_endpoint }}
|
||||||
@ -88,6 +92,9 @@ swift_api_version = {{ ironic_swift_api_version }}
|
|||||||
[iboot]
|
[iboot]
|
||||||
|
|
||||||
[ilo]
|
[ilo]
|
||||||
|
{% if ironic_enable_web_server_for_images | bool %}
|
||||||
|
use_web_server_for_images = True
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[inspector]
|
[inspector]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user