Abstracting the common conf parameters

Manual updation of params could be error prone
for same set of attributes, hence adding new
params which has to be configured once by the
administrator which will be referred to in the
rest of the local.conf file

Change-Id: I17e19fbb4328dbb8ca7b02f1afd35baa9f942718
This commit is contained in:
preethipy 2017-02-03 17:15:56 +05:30
parent b3148f5bdf
commit 533d736b33
2 changed files with 24 additions and 16 deletions

View File

@ -19,6 +19,10 @@ Q_AGENT=dpm
# Configure Nova DPM Driver
enable_plugin nova-dpm http://git.openstack.org/openstack/nova-dpm
HMC=<hmc-ip>
HMC_USERNAME=<hmc-username>
HMC_PASSWORD=<hmc-password>
CPC_OBJECT_ID=<cpc-object-id>
[[post-config|$NOVA_CONF]]
[DEFAULT]
@ -27,18 +31,18 @@ host = foo
max_instances = <max-allowed-instances-count>
max_memory = <max-available-memory>
max_processors = <max-avaialable-processor>
cpc_object_id = <cpc-object-id>
hmc_password = <password>
hmc_username = <user>
hmc = <ip>
cpc_object_id = $CPC_OBJECT_ID
hmc_password = $HMC_PASSWORD
hmc_username = $HMC_USERNAME
hmc = $HMC
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[DEFAULT]
host = foo
[dpm]
hmc_password = <password>
hmc_username = <user>
hmc = <ip>
cpc_object_id = <cpc-object-id>
cpc_object_id = $CPC_OBJECT_ID
hmc_password = $HMC_PASSWORD
hmc_username = $HMC_USERNAME
hmc = $HMC
physical_adapter_mappings = "public:<adapter-id>:<port-element-id>"

View File

@ -19,6 +19,10 @@ Q_AGENT=dpm
# Configure Nova DPM Driver
enable_plugin nova-dpm http://git.openstack.org/openstack/nova-dpm
HMC=<hmc-ip>
HMC_USERNAME=<hmc-username>
HMC_PASSWORD=<hmc-password>
CPC_OBJECT_ID=<cpc-object-id>
[[post-config|$NOVA_CONF]]
[DEFAULT]
@ -27,10 +31,10 @@ host = foo
max_instances = <max-allowed-instances-count>
max_memory = <max-available-memory>
max_processors = <max-avaialable-processor>
cpc_object_id = <cpc-object-id>
hmc_password = <password>
hmc_username = <user>
hmc = <ip>
cpc_object_id = $CPC_OBJECT_ID
hmc_password = $HMC_PASSWORD
hmc_username = $HMC_USERNAME
hmc = $HMC
physical_storage_adapter_mappings = "<storage-adapter-id>:<port-element-id>"
[[post-config|/$Q_PLUGIN_CONF_FILE]]
@ -38,8 +42,8 @@ physical_storage_adapter_mappings = "<storage-adapter-id>:<port-element-id>"
host = foo
[dpm]
hmc_password = <password>
hmc_username = <user>
hmc = <ip>
cpc_object_id = <cpc-object-id>
cpc_object_id = $CPC_OBJECT_ID
hmc_password = $HMC_PASSWORD
hmc_username = $HMC_USERNAME
hmc = $HMC
physical_adapter_mappings = "public:<adapter-id>:<port-element-id>"