{"id":15510675,"url":"https://github.com/dalen/hiera-yamlerb","last_synced_at":"2025-04-10T19:42:06.510Z","repository":{"id":23519459,"uuid":"26885675","full_name":"dalen/hiera-yamlerb","owner":"dalen","description":"A YAML backend with ERB templating for Hiera. (Unmaintained, feel free to take over)","archived":false,"fork":false,"pushed_at":"2014-11-19T23:05:10.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T17:21:20.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-19T22:56:25.000Z","updated_at":"2018-04-23T06:45:05.000Z","dependencies_parsed_at":"2022-07-15T23:46:16.397Z","dependency_job_id":null,"html_url":"https://github.com/dalen/hiera-yamlerb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fhiera-yamlerb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fhiera-yamlerb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fhiera-yamlerb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fhiera-yamlerb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalen","download_url":"https://codeload.github.com/dalen/hiera-yamlerb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281415,"owners_count":21077423,"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","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":[],"created_at":"2024-10-02T09:50:20.633Z","updated_at":"2025-04-10T19:42:06.487Z","avatar_url":"https://github.com/dalen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a YAML+ERB backend for hiera. It works like the regular YAML backend\nbut allows you to also template the YAML file using ERB syntax on the entire\nfact scope.\n\nThis can be used to prevent a sprawl of hiera hierarchy levels that are only\nused once or twice. Can also be used to reduce data duplication where several\ndifferent fact values should evaluate to the same value.\n\nHowever you might not want to put too much code back into your data once you\nhave actually separated your data and code, but up to you :)\n\nExamples:\n=========\n\nMatch on two different fact values instead of repeating that value in two\ndifferent YAML files:\n\n```\n\u003c% if [\"Linux\", \"Darwin\"].include? @kernel -%\u003e\npuppet::version: '3.7.3'\n\u003c% else -%\u003e\npuppet::version: '3.7.2'\n\u003c% end %\u003e\n```\n\nUse a hiera value for a range of fact values\n\n```\n\u003c% if @processorcount.between?(4,8) -%\u003e\napache::max_keepalive_requests: 200\n\u003c% end -%\u003e\n```\n\nCalculate a value for a hiera key:\n\n```\npuppetdb::max_treads: \u003c%= [@processorcount - 1,1].max %\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalen%2Fhiera-yamlerb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalen%2Fhiera-yamlerb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalen%2Fhiera-yamlerb/lists"}