========================
Team and repository tags
========================
.. image:: https://governance.openstack.org/tc/badges/os-collect-config.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
=================
os-collect-config
=================
-------------------------------------------------
Collect configuration from cloud metadata sources
-------------------------------------------------
What does it do?
================
It collects data from defined configuration sources and runs a defined
hook whenever the metadata has been changed.
.. image:: os-collect-config-and-friends.svg
[#update_svg]_
Usage
=====
You must define what sources to collect configuration data from in
*/etc/os-collect-config.conf*.
The format of this file is::
[DEFAULT]
command=os-refresh-config
[cfn]
metadata_url=http://192.0.2.99:8000/v1/
access_key_id = ABCDEFGHIJLMNOP01234567890
secret_access_key = 01234567890ABCDEFGHIJKLMNOP
path = MyResource
stack_name = my.stack
These sources will be polled and whenever any of them is changed,
*default.command* will be run. A file will be written to the cache
dir, os_config_files.json, which will be a json list of the file paths
to the current copy of each metadata source. This list will also be
set as a colon separated list in the environment variable
*OS_CONFIG_FILES* for the command that is run. So in the example
above, *os-refresh-config* would be executed with something like this
in *OS_CONFIG_FILES*::
/var/lib/os-collect-config/ec2.json:/var/lib/os-collect-config/cfn.json
The previous version of the metadata from a source (if available) is present at $FILENAME.last.
When run without a command, the metadata sources are printed as a json document.
Quick Start
===========
Install::
sudo pip install -U git+https://opendev.org/openstack/os-collect-config.git
Run it on an OpenStack instance with access to ec2 metadata::
os-collect-config
That should print out a json representation of the entire ec2 metadata tree.
.. [#update_svg] Recommend using LibreOffice draw to edit os-collect-config-and-friends.odg and regenerate the svg file. Alternatively edit the svg directly, but remove the .odg file if that is done.
Raw data
{
"_id": null,
"home_page": "https://opendev.org/openstack/os-collect-config",
"name": "os-collect-config",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "OpenStack",
"author_email": "openstack-discuss@lists.openstack.org",
"download_url": "https://files.pythonhosted.org/packages/35/d9/2309ebd1751bdaca5ac93f2976ead82083aa062572f265d6ae53afd79484/os-collect-config-14.0.0.tar.gz",
"platform": null,
"description": "========================\nTeam and repository tags\n========================\n\n.. image:: https://governance.openstack.org/tc/badges/os-collect-config.svg\n :target: https://governance.openstack.org/tc/reference/tags/index.html\n\n.. Change things from this point on\n\n=================\nos-collect-config\n=================\n\n-------------------------------------------------\nCollect configuration from cloud metadata sources\n-------------------------------------------------\n\nWhat does it do?\n================\n\nIt collects data from defined configuration sources and runs a defined\nhook whenever the metadata has been changed.\n\n.. image:: os-collect-config-and-friends.svg\n\n[#update_svg]_\n\nUsage\n=====\n\nYou must define what sources to collect configuration data from in\n*/etc/os-collect-config.conf*.\n\nThe format of this file is::\n\n [DEFAULT]\n command=os-refresh-config\n\n [cfn]\n metadata_url=http://192.0.2.99:8000/v1/\n access_key_id = ABCDEFGHIJLMNOP01234567890\n secret_access_key = 01234567890ABCDEFGHIJKLMNOP\n path = MyResource\n stack_name = my.stack\n\nThese sources will be polled and whenever any of them is changed,\n*default.command* will be run. A file will be written to the cache\ndir, os_config_files.json, which will be a json list of the file paths\nto the current copy of each metadata source. This list will also be\nset as a colon separated list in the environment variable\n*OS_CONFIG_FILES* for the command that is run. So in the example\nabove, *os-refresh-config* would be executed with something like this\nin *OS_CONFIG_FILES*::\n\n /var/lib/os-collect-config/ec2.json:/var/lib/os-collect-config/cfn.json\n\nThe previous version of the metadata from a source (if available) is present at $FILENAME.last.\n\nWhen run without a command, the metadata sources are printed as a json document.\n\nQuick Start\n===========\n\nInstall::\n\n sudo pip install -U git+https://opendev.org/openstack/os-collect-config.git\n\nRun it on an OpenStack instance with access to ec2 metadata::\n\n os-collect-config\n\nThat should print out a json representation of the entire ec2 metadata tree.\n\n.. [#update_svg] Recommend using LibreOffice draw to edit os-collect-config-and-friends.odg and regenerate the svg file. Alternatively edit the svg directly, but remove the .odg file if that is done.\n\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Collect and cache metadata, run hooks on changes.",
"version": "14.0.0",
"project_urls": {
"Homepage": "https://opendev.org/openstack/os-collect-config"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5b0d9bb3ed445793b17a5dc9a8515f5c80de27504f8b374659a2608f20100a62",
"md5": "44100b84408d661b639c0b3132c2128c",
"sha256": "e2c0f5c7f5325706ba229243f514cd1cb9496b1735e166c5d274a687bd2bdf62"
},
"downloads": -1,
"filename": "os_collect_config-14.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "44100b84408d661b639c0b3132c2128c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 55660,
"upload_time": "2024-04-19T09:24:06",
"upload_time_iso_8601": "2024-04-19T09:24:06.056779Z",
"url": "https://files.pythonhosted.org/packages/5b/0d/9bb3ed445793b17a5dc9a8515f5c80de27504f8b374659a2608f20100a62/os_collect_config-14.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "35d92309ebd1751bdaca5ac93f2976ead82083aa062572f265d6ae53afd79484",
"md5": "e8a3e03581c33718d4ea05a624f08de2",
"sha256": "9c626a6cacb8eb5ce7da1ebeba0c1c17372cc3ce5e609f9169d752c744990a03"
},
"downloads": -1,
"filename": "os-collect-config-14.0.0.tar.gz",
"has_sig": false,
"md5_digest": "e8a3e03581c33718d4ea05a624f08de2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 59678,
"upload_time": "2024-04-19T09:24:10",
"upload_time_iso_8601": "2024-04-19T09:24:10.743667Z",
"url": "https://files.pythonhosted.org/packages/35/d9/2309ebd1751bdaca5ac93f2976ead82083aa062572f265d6ae53afd79484/os-collect-config-14.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-19 09:24:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "os-collect-config"
}