{ "info": { "author": "Stefan Andres", "author_email": "s.andres@syseleven.de", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "python-cloudutils\n=========\n\nThis repos contains several useful library to talk to OpenStack APIs and has some wrapper tools for it.\n\n\n\nscloud\n-----------\n\nscloud is a wrapper that deletes existing stacks and re-creates them according to your config files and command line parameters.\n\n\nInstallation\n-------------\n```\nvirtualenv ~/syseleven-cloudutils-venv # optional\n. ~/syseleven-cloudutils-venv/bin/activate # optional\n\n# apt-get install python-dev # needed\npip install -e git+git@github.com:syseleven/python-cloudutils.git#egg=syseleven.cloudutils\n\n```\n\nUsage\n--------------\n\nYou can pass as many config files as you want. One common concept would be to have at least two configuration files\n\n 1. global config file\n 2. per stack config file\n\nThose contain a _DEFAULT_ section for scloud configuration and a _heat_params_ section for all parameters needing for creating the heat stack (i.e. the same as ```heat stack-create -P key1=value -P key2=value```)\nThe _heatparamsfromfiles_ key in the _DEFAULT_ section is special. This parameter specifies a list of heat_params key that will be treated as files and their content will be replaced by the actual file content.\nYou may specifiy all heat_params with the command line option -P (multiple invocations possible). All given -P key=value pairs will overwrite the values from the config.\n\n\n\n#### global config file ####\nIf you want to maintain a global config file you always have to pass it via --config-file to scloud.\nIf the global config file ~/scloud.conf is specified as first --config-file argument it will be parsed the beginning, so it may contain values that will be overwritten by the per-stack config file or by command line parameters.\n\n\n```\n[DEFAULT]\nstackname=overwriteme\nheattemplatebasepath=~/git/openstack-heattemplates/\n[heat_params]\ndeploy_key=/Users/myuser/.ssh/openstack_deploykey\nkey_name=mykeyname\n```\n\n\n#### per stack config file ####\nA per stack config file can be given as additional --config-file parameter to scloud. \n\n```\n[DEFAULT]\nstackname=mystack\n# heattemplate may be a full path or relative path to heattemplatebasepath\nheattemplate='dev-cloud.yaml'\nheatparamsfromfiles=repos_yaml, deploy_key\n\n[heat_params]\nconfig_branch=master\nscripts_branch=master\npuppet_branch=master\npublic_net_id=aaaa-bbbb-ccc-ddd\nrepos_yaml=\"\"\n```\n\n#### command line usage examples ####\n\n* ```scloud --config-file ~/.scloud.conf --config-file mycloud.conf```\n* ```scloud --config-file ~/.scloud.conf --config-file mycloud.conf -P key_name=myotherkey -P config_branch=myotherbranch```\n\nSetting an alias to ```alias scloud=\"scloud --config-file ~/.scloud.conf --config-file \"```should smoothen things up.\nSo you can just use ```scloud mycloud.conf```\n\nlisthosts\n-----------\n\nThis tool lists all VMs with the information on which compute node they run. It requires admin privileges and lists all VMs from all tenants by default. It's not configureable yet.\n\n```\n$ listhosts\n7dc32de0-e1b2-4c9b-8b6e-1e9e21eddf2d (hadoop-spark3) cloud18\nd8b0d799-88d0-4e43-928b-8036752ea84d (hadoop-cassandra1) cloud19\n7ef7b2c9-4c74-4393-b76d-54b4da54f6bf (hadoop-hdfs1) cloud18\na07c90ec-5f1f-43ee-90d6-4ebf03995c57 (hadoop-hdfs3) cloud19\n[...]\n```\n\nDevelopment\n--------------\n```\ngit clone git@github.com:syseleven/python-cloudutils.git\ncd python-syseleven-cloudutils\n# git checkout $branch\n. /path/to/venv/bin/activate\npython setup.py develop\n```\n\nCommands like scloud will then be linked to the git repo in the venv.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "www.syseleven.de", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "syseleven.cloudutils", "package_url": "https://pypi.org/project/syseleven.cloudutils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/syseleven.cloudutils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "www.syseleven.de" }, "release_url": "https://pypi.org/project/syseleven.cloudutils/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Utils for the cloud", "version": "0.1.3" }, "last_serial": 1677159, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2642747706a3b6f0fbda9eb9b17d7c25", "sha256": "7635c033eb796d306e0cbfb8bdf23efddab9401539ac201425d8ab36f8cc2699" }, "downloads": -1, "filename": "syseleven.cloudutils-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2642747706a3b6f0fbda9eb9b17d7c25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13426, "upload_time": "2015-03-26T09:01:52", "url": "https://files.pythonhosted.org/packages/3e/64/b760b6257d67f3b7bfbf1448a89abc89b20ebcce5c8564ecb4611b9029ea/syseleven.cloudutils-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "296062ac51b5c4767ce92bd8e62bc4fd", "sha256": "116f1545c086378fda35e2915fabf24acffb615188392eb893731bb6a6fd7dc3" }, "downloads": -1, "filename": "syseleven.cloudutils-0.1.1.tar.gz", "has_sig": false, "md5_digest": "296062ac51b5c4767ce92bd8e62bc4fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13443, "upload_time": "2015-03-26T10:19:52", "url": "https://files.pythonhosted.org/packages/8c/b0/07786ebdfc8975dd2120ec04dbf722dd8c5a55f13cfd7def04a3f2577269/syseleven.cloudutils-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "518a66b1cd0d90b7b8377dfe898c96a2", "sha256": "8448bf06122357147fea3eadd7fbc4af76043113595ce5f8cb7887048bc4a89f" }, "downloads": -1, "filename": "syseleven.cloudutils-0.1.2.tar.gz", "has_sig": false, "md5_digest": "518a66b1cd0d90b7b8377dfe898c96a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13447, "upload_time": "2015-03-27T08:21:49", "url": "https://files.pythonhosted.org/packages/f8/f4/b3c0a03db79123482504251a87bb8c20926471c42579d92a3e5fdbffb012/syseleven.cloudutils-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3d80cd78412f77d741da0a9ff9e0e199", "sha256": "cd6aca8f0b6ac1ab618c03ced1687b0af0b5114b852cd6c6af1607a6aad15b72" }, "downloads": -1, "filename": "syseleven.cloudutils-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3d80cd78412f77d741da0a9ff9e0e199", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13395, "upload_time": "2015-08-14T08:14:58", "url": "https://files.pythonhosted.org/packages/67/c3/04d5159718b83a58600e1ccbe7bb957dbb663885494151a0a4bfb1b3d08a/syseleven.cloudutils-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3d80cd78412f77d741da0a9ff9e0e199", "sha256": "cd6aca8f0b6ac1ab618c03ced1687b0af0b5114b852cd6c6af1607a6aad15b72" }, "downloads": -1, "filename": "syseleven.cloudutils-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3d80cd78412f77d741da0a9ff9e0e199", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13395, "upload_time": "2015-08-14T08:14:58", "url": "https://files.pythonhosted.org/packages/67/c3/04d5159718b83a58600e1ccbe7bb957dbb663885494151a0a4bfb1b3d08a/syseleven.cloudutils-0.1.3.tar.gz" } ] }