{ "info": { "author": "Christopher Marzullo", "author_email": "cmarzullo@linode.com", "bugtrack_url": null, "classifiers": [], "description": "`|Build Status| `_ #\nsaltscaffold\n\nThis python module creates a new directory structure for salt formulas\nwith the following features:\n\n- README.md with sample content\n- state files that mimic the package / file / service pattern.\n- .kitchen.yml with content to drive test-kitchen\n- .kitchen-ci.yml with content to drive test-kitchen with alternate\n settings\n- custom-pillar content to show pillar overrides\n- defaults.yml content with default values\n- map.jinja show how to have grains based overrides and merge defaults\n with custom pillars\n- example of toggle feature\n- The resulting formula will be testable with test-kitchen\n- serverspec test to used with kitchen verify\n- Gemfile added so one can 'bundle install' inside the formula\n directory to get the necessary ruby gems\n\nFolder and File Structure\n-------------------------\n\nEach salt formula that you scaffold will create the following folder\nstructure:\n``[formula_name]/ [formula_name]/README.md [formula_name]/pillar-custom.sls [formula_name]/Gemfile [formula_name]/.kitchen.yml [formula_name]/.kitchen-ci.yml [formula_name]/LICENSE.txt [formula_name]/[formula_name] [formula_name]/[formula_name]/defaults.yaml [formula_name]/[formula_name]/map.jinja [formula_name]/[formula_name]/init.sls [formula_name]/[formula_name]/install.sls [formula_name]/[formula_name]/config.sls [formula_name]/[formula_name]/service.sls [formula_name]/[formula_name]/files/ [formula_name]/[formula_name]/files/config.conf [formula_name]/test/integration/default/serverspec/_spec.rb [formula_name]/test/mockup/init.sls``\nIt's expected you'll modify and rename these as you need.\n\nInstalling saltscaffold\n-----------------------\n\nYou can view the source code on the `Github Project\nPage `_\n\nInstall from source\n~~~~~~~~~~~~~~~~~~~\n\n1. clone the repo\n ``git clone https://github.com/cmarzullo/saltscaffold``\n2. make the packages ``cd saltscaffold && python setup.py sdist``\n3. install the package\n ``sudo pip install dist/Saltscaffold-.tar.gz``\n\nRunning saltscaffold\n--------------------\n\nThe module gets installed as an executable python script. There aren't\nmany options. You can only choose the name of the formula and an\noptional directory to create the formula in.\n\n``saltscaffold -p myformula [-d {base directory} ]``\n\nIf you don't supply a base directory the formula will be created in your\ncurrent directory.\n\nContribution\n------------\n\nPull requests are welcome!\n\nTemplating\n~~~~~~~~~~\n\nIt's kinda wierd to have to write jinja looking files with jinja. So I\nswitched to the mako templating engine.\n\nRunning Tests\n~~~~~~~~~~~~~\n\nThere are tests written. Make sure they pass. You can run tests using\n``nosetests -v`` There's no test for it, but make sure you can do a\n``kitchen verify`` with the output.\n\n.. |Build\nStatus| image:: https://travis-ci.org/cmarzullo/saltscaffold.svg?branch=master", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cmarzullo/saltsaffold", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "Saltscaffold", "package_url": "https://pypi.org/project/Saltscaffold/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Saltscaffold/", "project_urls": { "Homepage": "https://github.com/cmarzullo/saltsaffold" }, "release_url": "https://pypi.org/project/Saltscaffold/3.0.5/", "requires_dist": null, "requires_python": "", "summary": "sets up files and directories for a new salt formula", "version": "3.0.5" }, "last_serial": 2401755, "releases": { "3.0.5": [ { "comment_text": "", "digests": { "md5": "0d474ab148ed5fd3715e0ee39ff397a6", "sha256": "13c49ed953848c9c4eca755e09a3e913864601993407bf4550749b54a734c756" }, "downloads": -1, "filename": "Saltscaffold-3.0.5.tar.gz", "has_sig": false, "md5_digest": "0d474ab148ed5fd3715e0ee39ff397a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34594, "upload_time": "2016-10-15T19:47:00", "url": "https://files.pythonhosted.org/packages/e8/93/5ad5965498ccc1e2852f8c402b8ebc0d8fe764d965ebb18bab9d30c046e2/Saltscaffold-3.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0d474ab148ed5fd3715e0ee39ff397a6", "sha256": "13c49ed953848c9c4eca755e09a3e913864601993407bf4550749b54a734c756" }, "downloads": -1, "filename": "Saltscaffold-3.0.5.tar.gz", "has_sig": false, "md5_digest": "0d474ab148ed5fd3715e0ee39ff397a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34594, "upload_time": "2016-10-15T19:47:00", "url": "https://files.pythonhosted.org/packages/e8/93/5ad5965498ccc1e2852f8c402b8ebc0d8fe764d965ebb18bab9d30c046e2/Saltscaffold-3.0.5.tar.gz" } ] }