{ "info": { "author": "Sam Oehlert", "author_email": "sam.oehlert@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Documentation", "Topic :: Software Development :: Documentation", "Topic :: Text Processing" ], "description": "[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1aee2b5314054ad4a751754fc7500342)](https://www.codacy.com/app/soehlert/ansible-scribe?utm_source=github.com&utm_medium=referral&utm_content=soehlert/ansible-scribe&utm_campaign=Badge_Grade) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\n\n## Ansible Scribe\n\nAnsible Scribe sets out to automate as much as it can with regards to getting a role well documented and ready for sharing with the Ansible community via Ansible Galaxy. It tries to push you towards a more easily usable role by others and pushes a few ideas of \u201cbest practices\u201d on you:\n\n1. You should be using roles and separate playbooks. This is the best way to make your code modular and reusable by others. \n2. You should have sane default variables set up to the point that anyone can use your role without having to change variables and it will still successfully run through. This means Ansible Scribe checks for missing and empty variables. \n3. You should have a license file defined. \n4. You should be using CI testing, so it checks for a CI file. \n5. You should use names for all of your tasks as it helps others (including those not as experienced in Ansible) to understand your code.\n\nThat being said, Ansible Scribe is not intended to just run and be done. It creates as much of the necessary documentation as it possibly can, but it will not do everything. You will at a minimum need to complete the variables table. You might also have to:\n\n1. Convert the list of task names into a coherent description if you haven\u2019t provided one (it will write the task names in a list in the README so you can make one). \n2. Fill out any other empty or incomplete portions of the README.md and meta/main.yml files. These will exist if you do not give all of the necessary information up front. Ansible Scribe will not create values for you, in that case it will just create the skeleton of those portions. \n3. Assign settings to the empty default variables in defaults/main.yml if there are any. \n\n### Ansible Scribe Does Not:\n\n- Lint your code \n- Format your code \n- Make warnings for: \n - Deprecated code \n - Using incorrect modules \n\nOther tools exist for those things and Ansible Scribe follows the Unix Philosophy of doing one thing and doing it well. My aim is to take roles you have and make it as easy as possible to get them ready for pushing to Ansible Galaxy as quickly as possible.\n\nWhat to set up comes from: (https://galaxy.ansible.com/docs/contributing/index.html)\n\n\n### Inputs\n\nConfig file (~/.config/ansible-scribe/global.conf) example:\n\n [Paths]\n roles = /etc/ansible/roles/\n playbooks = /etc/ansible/playbooks/\n output = /tmp/ansible-scribe/\n\n [Metadata]\n # License type (currently supported = apache, bsd2, bsd3, cc-by, gpl2, gpl3, isc, mit)\n repo_license = mit\n author = Sam Oehlert\n bio = Security Engineer. email: sam.oehlert@gmail.com\n company = My Company\n\n [CI]\n # What type of CI file you want to use (currently supported = gitlab, travis)\n type = gitlab\n\nRole specific config file (~/.config/ansible-scribe/netdata.conf) example:\n\n [versions]\n ansible_min = 2.0\n container_min = \n role = 1.0\n\n [urls]\n repo = https://github.com/soehlert/ansible-role-netdata\n branch = master\n issue_tracker =\n\n [config]\n description = Sets up the Netdata package for distributed real time performance and health monitoring\n requirements = N/A\n galaxy_tags = netdata deploy\n playbook = common.yml\n\n [platforms]\n ubuntu = 16.04, 18.04\n\n\nPass it a role:\n\n1. reads all the variables and creates a table for them in the readme.\n\n | Variable | Purpose | Default |\n |-------------|--------------------------------------|---------|\n | apache_port | defines port for apache to listen on | 80 |\n | test | a variable for testing | none |\n\n2. Makes sure all the variables are in the defaults/main.yml file \n3. Takes task names and sets them in a list in readme.md file to give you a skeleton to build off of \n4. Reads playbook in order to \n 1. Add copy of example playbook to readme \n 2. Look for any roles that have namespace.rolename setup (adds to dependencies) \n5. Warns if you are missing CI files or have empty CI files \n\n\n### Make file:\n\n- Make roles creates files in default file location outside of role path \n- Make overwrite creates files in role path \n- Make install creates empty config file\n- Makefile dynamic targets for each role ([https://stackoverflow.com/questions/22754778/dynamic-makefile-target](https://stackoverflow.com/questions/22754778/dynamic-makefile-target)) \n\n\n### Outputs\n\n1. README.md \n2. defaults/main.yml (if it doesn\u2019t exist)\n3. License file\n4. meta/main.yml\n5. CI file\n6. Warnings for:\n 1. CI files:\n 1. None found - created empty file at $ci_file_location\n 2. Found empty file\n 2. Empty defaults variables\n 3. No task names\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "ansible documention automation galaxy", "license": "", "maintainer": "", "maintainer_email": "", "name": "ansible-scribe", "package_url": "https://pypi.org/project/ansible-scribe/", "platform": "", "project_url": "https://pypi.org/project/ansible-scribe/", "project_urls": null, "release_url": "https://pypi.org/project/ansible-scribe/0.5.0/", "requires_dist": null, "requires_python": "", "summary": "Whip your Ansible documentation into shape", "version": "0.5.0" }, "last_serial": 4358584, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "9201343a9683b4153a5ef23616eb7f3a", "sha256": "6aafa7b3d8f2ce59fa1440e44062fdc9b0ee391d6a99e9956c26026fdc5cedcd" }, "downloads": -1, "filename": "ansible_scribe-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9201343a9683b4153a5ef23616eb7f3a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3776, "upload_time": "2018-10-10T04:13:25", "url": "https://files.pythonhosted.org/packages/ca/22/eb477493bc693cd73381c55de90470c9e468f40614288c6baf5e2696a183/ansible_scribe-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db05b7958d91db596a25382e4fed4c04", "sha256": "81279729bf2de042f75c37478c2a96d35fd19a8375686b906b77db724c3fafc6" }, "downloads": -1, "filename": "ansible_scribe-0.5.0.tar.gz", "has_sig": false, "md5_digest": "db05b7958d91db596a25382e4fed4c04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3983, "upload_time": "2018-10-10T04:13:27", "url": "https://files.pythonhosted.org/packages/52/fa/95c599182d8bcab40162fc3728d86b99b1cd8f3dc467cb5b2fefcc7c3941/ansible_scribe-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9201343a9683b4153a5ef23616eb7f3a", "sha256": "6aafa7b3d8f2ce59fa1440e44062fdc9b0ee391d6a99e9956c26026fdc5cedcd" }, "downloads": -1, "filename": "ansible_scribe-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9201343a9683b4153a5ef23616eb7f3a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3776, "upload_time": "2018-10-10T04:13:25", "url": "https://files.pythonhosted.org/packages/ca/22/eb477493bc693cd73381c55de90470c9e468f40614288c6baf5e2696a183/ansible_scribe-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db05b7958d91db596a25382e4fed4c04", "sha256": "81279729bf2de042f75c37478c2a96d35fd19a8375686b906b77db724c3fafc6" }, "downloads": -1, "filename": "ansible_scribe-0.5.0.tar.gz", "has_sig": false, "md5_digest": "db05b7958d91db596a25382e4fed4c04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3983, "upload_time": "2018-10-10T04:13:27", "url": "https://files.pythonhosted.org/packages/52/fa/95c599182d8bcab40162fc3728d86b99b1cd8f3dc467cb5b2fefcc7c3941/ansible_scribe-0.5.0.tar.gz" } ] }