Update local.conf example file.

This commit takes example local.conf from docs.openstack.org/ironic
and adds settings needed to run ironic-inpector.

Change-Id: Id1f4f1140526e27a1072181973a9ff695560c97b
This commit is contained in:
Zygimantas Matonis 2020-05-04 15:09:13 +02:00
parent 41b3323602
commit 8211ab469b

View File

@ -1,35 +1,33 @@
[[local|localrc]] [[local|localrc]]
# Credentials # Credentials
# Reference: https://docs.openstack.org/devstack/latest/configuration.html
ADMIN_PASSWORD=password ADMIN_PASSWORD=password
DATABASE_PASSWORD=$ADMIN_PASSWORD DATABASE_PASSWORD=password
RABBIT_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=password
SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=password
SERVICE_TOKEN=$ADMIN_PASSWORD SERVICE_TOKEN=password
SWIFT_HASH=$ADMIN_PASSWORD SWIFT_HASH=password
SWIFT_TEMPURL_KEY=$ADMIN_PASSWORD SWIFT_TEMPURL_KEY=password
# Enable Neutron which is required by Ironic and disable nova-network. # Enable Ironic plugin
disable_service n-net n-novnc enable_plugin ironic https://opendev.org/openstack/ironic
enable_service neutron q-svc q-agt q-dhcp q-l3 q-meta enable_plugin ironic-inspector https://opendev.org/openstack/ironic-inspector
# Use ironic-inspector database as the introspection data backend, if needed. # Disable nova novnc service, ironic does not support it anyway.
#IRONIC_INSPECTOR_INTROSPECTION_DATA_STORE=database disable_service n-novnc
# Enable Swift for storing introspection data, these services # Enable Swift for the direct deploy interface.
# can be disabled if introspection data store is set to database. enable_service s-proxy
enable_service s-proxy s-object s-container s-account enable_service s-object
enable_service s-container
enable_service s-account
# Enable Ironic, Ironic Inspector plugins # Disable Horizon
enable_plugin ironic https://github.com/openstack/ironic
enable_plugin ironic-inspector https://github.com/openstack/ironic-inspector
# Disable services
disable_service horizon disable_service horizon
disable_service heat h-api h-api-cfn h-api-cw h-eng
# Disable Cinder
disable_service cinder c-sch c-api c-vol disable_service cinder c-sch c-api c-vol
# Swift temp URL's are required for the direct deploy interface. # Swift temp URL's are required for the direct deploy interface
SWIFT_ENABLE_TEMPURLS=True SWIFT_ENABLE_TEMPURLS=True
# Create 3 virtual machines to pose as Ironic's baremetal nodes. # Create 3 virtual machines to pose as Ironic's baremetal nodes.
@ -43,7 +41,6 @@ DEFAULT_INSTANCE_TYPE=baremetal
# interfaces, most often power and management: # interfaces, most often power and management:
#IRONIC_ENABLED_MANAGEMENT_INTERFACES=ipmitool,fake #IRONIC_ENABLED_MANAGEMENT_INTERFACES=ipmitool,fake
#IRONIC_ENABLED_POWER_INTERFACES=ipmitool,fake #IRONIC_ENABLED_POWER_INTERFACES=ipmitool,fake
#
# The 'ipmi' hardware type's default deploy interface is 'iscsi'. # The 'ipmi' hardware type's default deploy interface is 'iscsi'.
# This would change the default to 'direct': # This would change the default to 'direct':
#IRONIC_DEFAULT_DEPLOY_INTERFACE=direct #IRONIC_DEFAULT_DEPLOY_INTERFACE=direct
@ -53,12 +50,21 @@ IRONIC_ENABLED_INSPECT_INTERFACES=inspector,no-inspect
# Make it the default for all hardware types: # Make it the default for all hardware types:
IRONIC_DEFAULT_INSPECT_INTERFACE=inspector IRONIC_DEFAULT_INSPECT_INTERFACE=inspector
# Change this to alter the default driver for nodes created by devstack.
# This driver should be in the enabled list above. # This driver should be in the enabled list above.
IRONIC_DEPLOY_DRIVER=ipmi IRONIC_DEPLOY_DRIVER=ipmi
# The parameters below represent the minimum possible values to create
# functional nodes.
IRONIC_VM_SPECS_RAM=2048
IRONIC_VM_SPECS_DISK=10
# Size of the ephemeral partition in GB. Use 0 for no ephemeral partition.
IRONIC_VM_EPHEMERAL_DISK=0
# To build your own IPA ramdisk from source, set this to True
IRONIC_BUILD_DEPLOY_RAMDISK=False IRONIC_BUILD_DEPLOY_RAMDISK=False
IRONIC_INSPECTOR_BUILD_RAMDISK=False IRONIC_INSPECTOR_BUILD_RAMDISK=False
VIRT_DRIVER=ironic VIRT_DRIVER=ironic
# By default, DevStack creates a 10.0.0.0/24 network for instances. # By default, DevStack creates a 10.0.0.0/24 network for instances.
@ -66,7 +72,9 @@ VIRT_DRIVER=ironic
# following. # following.
NETWORK_GATEWAY=10.1.0.1 NETWORK_GATEWAY=10.1.0.1
FIXED_RANGE=10.1.0.0/24 FIXED_RANGE=10.1.0.0/24
FIXED_NETWORK_SIZE=256
# Log all output to files # Log all output to files
LOGDAYS=1 LOGFILE=/opt/stack/devstack.log
LOGFILE=$HOME/logs/stack.sh.log LOGDIR=/opt/stack/logs
IRONIC_VM_LOG_DIR=/opt/stack/ironic-bm-logs