{"id":27255562,"url":"https://github.com/benwtr/kitchen-puppet-hierawriter","last_synced_at":"2026-04-12T23:43:28.568Z","repository":{"id":56880183,"uuid":"84927308","full_name":"benwtr/kitchen-puppet-hierawriter","owner":"benwtr","description":"Adds (hiera) YAML file generation to kitchen-puppet, the puppet test-kitchen provisioner.","archived":false,"fork":false,"pushed_at":"2017-03-27T20:28:35.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T14:41:22.707Z","etag":null,"topics":["hiera","puppet","test-kitchen"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benwtr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-14T08:59:40.000Z","updated_at":"2017-03-14T09:12:10.000Z","dependencies_parsed_at":"2022-08-20T11:40:46.748Z","dependency_job_id":null,"html_url":"https://github.com/benwtr/kitchen-puppet-hierawriter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/benwtr/kitchen-puppet-hierawriter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwtr%2Fkitchen-puppet-hierawriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwtr%2Fkitchen-puppet-hierawriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwtr%2Fkitchen-puppet-hierawriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwtr%2Fkitchen-puppet-hierawriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benwtr","download_url":"https://codeload.github.com/benwtr/kitchen-puppet-hierawriter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwtr%2Fkitchen-puppet-hierawriter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016098,"owners_count":26085802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hiera","puppet","test-kitchen"],"created_at":"2025-04-11T02:20:09.213Z","updated_at":"2025-10-18T11:46:02.705Z","avatar_url":"https://github.com/benwtr.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kitchen Puppet Hierawriter\n\n## DEPRECATION NOTICE\n\n**This functionality has now been integrated upstream into kitchen-puppet\n(https://github.com/neillturner/kitchen-puppet/commit/f858e0918a2c8c193b2e3697d7f25fa0507103b7).\nPlease use it instead. The gem will be yanked from Rubygems soon.**\n\n\n## Description\n\nAdds (hiera) YAML file generation\nto [kitchen-puppet](https://github.com/neillturner/kitchen-puppet),\nthe [puppet](https://puppetlabs.com) [test-kitchen](https://kitchen.ci)\nprovisioner.\n\nAllows creation of arbitrary YAML files in the target instance's `hieradata/`\ndir in test-kitchen configuration (eg `kitchen.yml`). Like setting chef\nattributes in `kitchen.yml`, except for Hiera YAML files.\n\nCurrently only the `puppet_apply` provider from kitchen-puppet is supported.\n\n\n## Installation\n\nAdd this line to your puppet repo or module's Gemfile:\n\n```ruby\ngem 'kitchen-puppet-hierawriter'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install kitchen-puppet-hierawriter\n\n\n## Usage\n\nSee kitchen-puppet's documentation https://github.com/neillturner/kitchen-puppet\n\nOnce you have **kitchen-puppet** working, change the `puppet_apply` provisioner\nto `puppet_hierawriter_apply` and set `hiera_writer_files` in `kitchen.yml`\n\n```\n---\ndriver:\n  name: vagrant\n\nprovisioner:\n  #name: puppet_apply\n  name: puppet_hierawriter_apply\n  manifests_path: /repository/puppet_repo/manifests\n  modules_path: /repository/puppet_repo/modules-mycompany\n  hiera_data_path: /repository/puppet_repo/hieradata\n  hiera_writer_files:\n    - datacenter/vagrant.yaml:\n      logstash_servers: []\n      hosts:\n        10.1.2.3:\n        - puppet\n        - puppetdb\n\nplatforms:\n- name: nocm_ubuntu-12.04\n  driver_plugin: vagrant\n  driver_config:\n    box: nocm_ubuntu-12.04\n    box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box\n\nsuites:\n - name: default\n```\n\nThe above configuration will result in the creation of a file on the guest named\n`${hieradata}/datacenter/vagrant.yaml` containing:\n\n```\n---\nlogstash_servers: []\n  hosts:\n    10.1.2.3:\n    - puppet\n    - puppetdb\n```\n\nIt will overwrite any existing Hiera YAML files with the same name (on the\nguest), not merge.\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/benwtr/kitchen-puppet-hierawriter.\n\n\n## License\n\nThe gem is available as open source under the terms of\nthe [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwtr%2Fkitchen-puppet-hierawriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenwtr%2Fkitchen-puppet-hierawriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwtr%2Fkitchen-puppet-hierawriter/lists"}