From 2ff02f97c5956d9c4c0c1d238219f69c2ca8a204 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Wed, 1 Apr 2015 09:04:02 +0000 Subject: Openstack: Make Ironic configurable This commit configures Ironic to integrate with Keystone, Neutron and Glance. Nova integration will be added in a following commit. --- openstack/usr/share/openstack/ironic/ironic.conf | 34 ++++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'openstack/usr/share/openstack/ironic/ironic.conf') diff --git a/openstack/usr/share/openstack/ironic/ironic.conf b/openstack/usr/share/openstack/ironic/ironic.conf index 9aaae0e6..6888ede6 100644 --- a/openstack/usr/share/openstack/ironic/ironic.conf +++ b/openstack/usr/share/openstack/ironic/ironic.conf @@ -76,11 +76,11 @@ # The RabbitMQ broker address where a single node is used. # (string value) -#rabbit_host=localhost +rabbit_host={{ RABBITMQ_HOST }} # The RabbitMQ broker port where a single node is used. # (integer value) -#rabbit_port=5672 +rabbit_port={{ RABBITMQ_PORT }} # RabbitMQ HA cluster host:port pairs. (list value) #rabbit_hosts=$rabbit_host:$rabbit_port @@ -89,10 +89,10 @@ #rabbit_use_ssl=false # The RabbitMQ userid. (string value) -#rabbit_userid=guest +rabbit_userid={{ RABBITMQ_USER }} # The RabbitMQ password. (string value) -#rabbit_password=guest +rabbit_password={{ RABBITMQ_PASSWORD }} # the RabbitMQ login method (string value) #rabbit_login_method=AMQPLAIN @@ -190,7 +190,7 @@ # # IP address of this host. (string value) -#my_ip=10.0.0.1 +my_ip={{ MANAGEMENT_INTERFACE_IP_ADDRESS }} # Use IPv6. (boolean value) #use_ipv6=false @@ -217,7 +217,7 @@ # present on your system may be found by enumerating the # "ironic.drivers" entrypoint. An example may be found in the # developer documentation online. (list value) -#enabled_drivers=pxe_ipmitool +enabled_drivers=pxe_ipmitool,pxe_ssh # @@ -520,7 +520,7 @@ # URL of Ironic API service. If not set ironic can get the # current value from the keystone service catalog. (string # value) -#api_url= +api_url=http://{{ MANAGEMENT_INTERFACE_IP_ADDRESS }}:6385 # Seconds between conductor heart beats. (integer value) #heartbeat_interval=10 @@ -635,7 +635,7 @@ # Deprecated group/name - [DEFAULT]/sql_connection # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection -#connection= +connection=postgresql://{{ IRONIC_DB_USER}}:{{ IRONIC_DB_PASSWORD }}@{{ CONTROLLER_HOST_ADDRESS }}/ironic # The SQLAlchemy connection string to use to connect to the # slave database. (string value) @@ -817,7 +817,7 @@ # # Default glance hostname or IP address. (string value) -#glance_host=$my_ip +glance_host={{ CONTROLLER_HOST_ADDRESS }} # Default glance port. (integer value) #glance_port=9292 @@ -917,12 +917,12 @@ #auth_protocol=https # Complete public Identity API endpoint (string value) -#auth_uri= +auth_uri=http://{{ CONTROLLER_HOST_ADDRESS }}:5000/v2.0 # Complete admin Identity API endpoint. This should specify # the unversioned root endpoint e.g. https://localhost:35357/ # (string value) -#identity_uri= +identity_uri = http://{{ CONTROLLER_HOST_ADDRESS }}:35357 # API version of the admin Identity API endpoint (string # value) @@ -950,14 +950,14 @@ #admin_token= # Keystone account username (string value) -#admin_user= +admin_user={{ IRONIC_SERVICE_USER }} # Keystone account password (string value) -#admin_password= +admin_password={{ IRONIC_SERVICE_PASSWORD }} # Keystone service account tenant name to validate user tokens # (string value) -#admin_tenant_name=admin +admin_tenant_name=service # Env key for the swift cache (string value) #cache= @@ -1109,7 +1109,7 @@ # # URL for connecting to neutron. (string value) -#url=http://$my_ip:9696 +url=http://{{ CONTROLLER_HOST_ADDRESS }}:9696 # Timeout value for connecting to neutron in seconds. (integer # value) @@ -1173,11 +1173,11 @@ #tftp_server=$my_ip # Ironic compute node's tftp root path. (string value) -#tftp_root=/tftpboot +tftp_root=/srv/tftp_root/ # Directory where master tftp images are stored on disk. # (string value) -#tftp_master_path=/tftpboot/master_images +tftp_master_path=/srv/tftp_root/master_images # Bootfile DHCP parameter. (string value) #pxe_bootfile_name=pxelinux.0 -- cgit v1.2.1