{ "info": { "author": "Kostas Papadimitriou", "author_email": "kpap@grnet.gr", "bugtrack_url": null, "classifiers": [], "description": "******\nsnfinv\n******\n\n`snfinv` is a a simplistic virtual machine provision and dynamic ansible \ninventory tool to be used on Synnefo IaaS deployments.\n\n\nInstall\n=======\n\nInstall using `pip`::\n\n $ pip install snfinv\n\n\nProvisioning\n============\n\nCreate an `inventory.yml` and define your nodes configuration::\n\n provision:\n networks:\n priv1:\n type: MAC_FILTERED\n cidr: 10.12.21.0/24\n\n coreos_node1:\n project: xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx \n flavour:\n cpu: 2\n ram: 1024\n disk: 10\n image: b9236d02-0904-4d00-8967-3279f0053d18 // CoreOS image\n floating_ips: [auto, 83.212.221.53]\n groups: ['sql']\n keys: ['/home/user/.ssh/id_rsa.pub']\n users: ['core']\n networks:\n priv1:\n ip: 10.12.21.1\n vars:\n ansible_var1: 'value'\n\n coreos_node2:\n project: xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx \n flavour:\n cpu: 2\n ram: 1024\n disk: 10\n image: b9236d02-0904-4d00-8967-3279f0053d18 // CoreOS image\n floating_ips: [auto]\n groups: ['web']\n keys: ['/home/user/.ssh/id_rsa.pub']\n users: ['core']\n networks:\n priv1:\n ip: 10.12.21.1\n vars:\n ansible_var1: 'value'\n\nYou can then provision the above specification by running within the directory \nthe file above was created::\n\n $ snfinv --provision\n\nProvision script is reentrant and it won't try to recreate existing resources\nbut it is not smart enough to delicately re-assemble flimsy configuration\nchanges such as changes of vm flavor/ips/keys etc.\n\n\nAnsible inventory\n=================\n\n`snfinv` tool provides the required command line interface to be able to use \nis as a dynamic ansible inventory::\n\n $ ansible `which snfinv` \"coreos_node2\" -m shell -a ls\n\n\nAdditional arguments\n====================\n\n* **--dry**\n\n Used in conjuction with `--provision`. If set no calls will be sent to the\n synnefo api endpoints.\n \n* **--list-hosts**\n\n Outputs `/etc/hosts` friendly list of the available nodes.\n\n* **--config=**\n\n Provide a custom `inventory.yml` file. By default `./inventory.yml` is used.\n `SNFINV_CONFIG` environment variable may also be used to declare the path \n to the provision configuration file.\n \n* **--kamaki-config**\n\n Use a custom location for the kamaki config file.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vinilios/snfinv", "keywords": "ansible synnefo provision inventory", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "snfinv", "package_url": "https://pypi.org/project/snfinv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/snfinv/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/vinilios/snfinv" }, "release_url": "https://pypi.org/project/snfinv/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Dynamic ansible inventory for Synnefo IaaS nodes", "version": "0.1.2" }, "last_serial": 1985649, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "1e5bed948bae27686ce8b0b052213970", "sha256": "666b233534b31523171bdb90562e57c5a24948e2634bb661161153d22a676cea" }, "downloads": -1, "filename": "snfinv-0.1.1.tar.gz", "has_sig": true, "md5_digest": "1e5bed948bae27686ce8b0b052213970", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7439, "upload_time": "2015-10-20T11:10:15", "url": "https://files.pythonhosted.org/packages/04/bd/488fc014393119964f6e10d5855f840b5d50132c651c0c421c623de7af98/snfinv-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "17bd2553e93ef795de07a8118cc39f52", "sha256": "49013741cd1c3daa03f848183de8127f4c535483fa2540a43925b09a469e31c3" }, "downloads": -1, "filename": "snfinv-0.1.2.tar.gz", "has_sig": true, "md5_digest": "17bd2553e93ef795de07a8118cc39f52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7766, "upload_time": "2016-03-02T13:40:37", "url": "https://files.pythonhosted.org/packages/40/3a/57091bf86e59368fa4a1e553b6ad54059d6596787478ca723edadc007407/snfinv-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "17bd2553e93ef795de07a8118cc39f52", "sha256": "49013741cd1c3daa03f848183de8127f4c535483fa2540a43925b09a469e31c3" }, "downloads": -1, "filename": "snfinv-0.1.2.tar.gz", "has_sig": true, "md5_digest": "17bd2553e93ef795de07a8118cc39f52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7766, "upload_time": "2016-03-02T13:40:37", "url": "https://files.pythonhosted.org/packages/40/3a/57091bf86e59368fa4a1e553b6ad54059d6596787478ca723edadc007407/snfinv-0.1.2.tar.gz" } ] }