summaryrefslogtreecommitdiff
path: root/os_client_config/defaults.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace guts with openstack.config1.31.0Monty Taylor2018-04-271-31/+3
| | | | | | | | | | | | | | | | | | | The code has been moved into openstacksdk. Make os-client-config a thin wrapper around that code. The legacy client code needs to stay, as it was removed in openstacksdk. We also have to plumb os_client_config.defaults and os_client_config.cloud_region.CloudRegion in so that users get the os-client-config versions from the openstacksdk methods that return the relevant objects. Support for per-service region_name has been dropped. This was never used anywhere and was added for compatibility with openstacksdk Profile objects. Since Profile objects are no more, we can remove it. It never made any sense. Change-Id: I7180e20aa675c0ccbe3718493a6eff2be7e1b8b6
* Update globals safelyJoshua Harlow2017-08-071-5/+16
| | | | | | | | | | | | | The right way to update these globals is to use a lock and ensure that nobody else is updating them at the same time. Also update a temporary dictionary before setting the global one so that nobody sees partial updates to the global one. This should help fix the thread-safety of shade (and other tooling built ontop of this library). Change-Id: Ie0e0369d98ba6a01edcbf447378a786eec3f13f9
* Use json for in-tree cloud dataMonty Taylor2015-11-031-6/+5
| | | | | | | | | | | | | | In preparation for sharing the default and vendor data with other projects, potentially even non-python ones, move the data into json format, which is slighly less exciting to read, but has more widespread standard library support. The user-facing config file will still be in yaml format, because that's easier on the eyes and it's expected to be read and edited by humans. Continue to accept yaml everywhere, because an end user may have dropped a yaml config file into a dir somewhere, and that's fine. Change-Id: I269d31e61da433ac20abb39acdde0f9f9fe12837
* Handle empty defaults.yaml fileEric Harney2015-09-031-1/+3
| | | | | | | If defaults.yaml is empty, a TypeError is thrown because the result of yaml.load is not iterable. Change-Id: Ic3283ebaf9dd325e4f430e70bce08c6d716f60bc
* Clean up vendor dataMonty Taylor2015-06-261-22/+22
| | | | | | | | There are some clear central defaults. Call them out and don't repeat them. Also, ran the yaml files through a flamel conversion so they're all consistently formatted. Change-Id: Id19116c5e8266c109cf015d097cb6cb35f1beae8
* Add more defaults to our defaults fileMonty Taylor2015-06-021-0/+7
| | | | | | It's easier logic when we have default values for things. Change-Id: I2d66dcee68ea95371609640677fd41cca4b0a7cf
* Add list of image params needed to disable agentsMonty Taylor2015-05-301-0/+1
| | | | | | | | | | Some clouds have an in-instance agent to handle things like online password resets and other such activities. When building and uploading images, it's often advantageous to not install such an agent and instead handle such things via config management... but doing so requires data to be set on the image itself. Change-Id: I5b7c9d72fd2d49890bc466d7dd22a3cb9595f670
* Add flag to indicate handling of security groupsDavid Shrewsbury2015-05-271-0/+1
| | | | | | | | | Security groups can be handled by either nova, neutron, or just not be supported. This adds a flag for that. Values will be one of 'neutron' (the default), 'nova', or None. None indicates that security groups are not supported. Change-Id: I81a2e10e14e53acc9ffc328771d8ef721e2fd370
* Expose function to get defaults dictMonty Taylor2015-05-121-0/+4
| | | | | | | | | shade needs sane defaults for some of these too, but it's entirely legitimate to use shade without having first created an os_client_config object. Adding a function to get a copy of the defaults dict allows it to be consumed as a single source or truth for default values. Change-Id: I616d9492c7e0f53c48519cc8dacf3dfbd0082e36
* Add default versions for trove and ironicMonty Taylor2015-05-121-0/+2
| | | | Change-Id: Ib7af38664cfbe75c78c70693117f1193c4beb7e6
* Sort defaults list for less conflictsMonty Taylor2015-05-121-1/+1
| | | | Change-Id: Ic27c50f745a093cc20e3f22f09698f7ae643bc83
* Add flag to indicate where floating ips come fromMonty Taylor2015-05-071-0/+2
| | | | | | | | One of the things that's not possible to discover is where floating ips come from. You'd think that looking for a neutron endpoint would do it, but you'd be oh-so-wrong. Change-Id: I10a0c6f37afb409af0078cede3eac2eaa0ff4f04
* Flesh out api version defaults0.6.0Monty Taylor2015-03-051-0/+23
openstackclient needs a bit richer support for api version defaults. Namely, it knows what defaults it wants to have - but we need to do defaults processing in os-client-config to get sequencing correct. So provide an API call to set new defaults that can be used before config processing. Also, flesh out the dict of known default values with good defaults to match osc behavior, and add the known v1 default of HP to the vendors.py values. Change-Id: I45e2550af58aee616ca168d20a557077beeab007