{"id":18904930,"url":"https://github.com/concon121/puppet-module-template","last_synced_at":"2026-05-19T09:07:28.100Z","repository":{"id":94143562,"uuid":"87978529","full_name":"concon121/puppet-module-template","owner":"concon121","description":"A bare bones puppet module to help you get started!","archived":false,"fork":false,"pushed_at":"2017-04-11T21:46:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T06:26:16.187Z","etag":null,"topics":["puppet","puppet-module"],"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/concon121.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T20:56:01.000Z","updated_at":"2017-04-11T21:47:35.000Z","dependencies_parsed_at":"2023-03-24T08:32:07.991Z","dependency_job_id":null,"html_url":"https://github.com/concon121/puppet-module-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/concon121/puppet-module-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concon121%2Fpuppet-module-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concon121%2Fpuppet-module-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concon121%2Fpuppet-module-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concon121%2Fpuppet-module-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/concon121","download_url":"https://codeload.github.com/concon121/puppet-module-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concon121%2Fpuppet-module-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33209509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["puppet","puppet-module"],"created_at":"2024-11-08T09:09:52.684Z","updated_at":"2026-05-19T09:07:28.083Z","avatar_url":"https://github.com/concon121.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puppet-module-template\n\nA little bare bones puppet module to help you get started in your quest to become a master puppeteer!\n\n## Prerequisites\n\nI've written this for use on unix systems.  Sorry Windows boys!\n\n-   [Ruby](https://www.ruby-lang.org/en/documentation/installation/) - Puppet is written using Ruby, so this is fairly core.\n-   [Bundler](http://bundler.io/) - A Ruby dependency management system.\n-   [Rake](https://ruby.github.io/rake/) - A Ruby task runner.\n-   [Puppet](https://docs.puppet.com/puppet/4.9/install_linux.html) - Needs no explanation really.\n-   [ImageMagick-devel](https://www.rpmfind.net/linux/rpm2html/search.php?query=ImageMagick-devel) - A random dependency Rake requires on CentOS 6.\n\n### I've Installed Ruby, what now?\n\nInstall Bundler, Rake, image magick and the Ruby gem dependencies: \n```\n  sudo gem install bundler\n  sudo gem install rake\n  sudo yum install ImageMagick-devel\n  bundle install\n```\n\n### Setting Up Hiera for Integration Tests\n\n* Ensure that in your hosts file, the 2nd column is a domain (ends with .com, .co.uk etc...).\n\n```\n  $ cat /etc/hosts\n\n  127.0.0.1   localhost.com localhost.localdomain localhost4 localhost4.localdomain4\n  ::1         localhost.com localhost.localdomain localhost6 localhost6.localdomain6  \n```\n\n* Add a hiera.yaml to your Puppet installation directory.\n  * backends - Must be a string or an array of strings, where each string is the name of an available Hiera backend. The built-in backends are yaml and json. Additional backends are available as add-ons.\n  * hierarchy - Must be a string or an array of strings, where each string is the name of a static or dynamic data source.  In our case we just have a single config file for our localhost.com.\n  * datadir - Must be a string which refers to the location on your file system where the Hiera configuration is present.\n\n```\n  $ cat /etc/puppet/hiera.yaml\n\n  ---\n  :backends:\n    - yaml\n\n  :hierarchy:\n    - localhost.com\n\n  :yaml:\n    :datadir: '/vagrant/hiera'\n```\n\n* Create a localhost.com.yaml file in your datadir.\n\n```\n  $ cat /vagrant/hiera/localhost.com.yaml\n\n  ---\n  puppet_module_template::sample_parameter: 'sample_value!'\n```\n\n* Ensure hiera can resolve your configuration.\n\n```\n  $ hiera puppet_module_template::sample_parameter\n\n  sample_value!\n\n```\n\n## Running Tests\n\nRake will handle the execution of tests, and the tasks that it will execute are configured in the Rakefile.\n\n```\n  $ rake test\n```\nThe Rakefile is configured to run the following tasks:\n\n-   dos2unix - Convert any windows characters to unix, to ensure compatibility.\n-   metadata_lint - Validate that metadata.json contains all of the correct information.\n-   lint - Validate all of the .pp files conform to standards and are correctly formatted.\n-   validate - Ensure that .pp, .rb and .erb files can be compiled without error.\n-   spec - Run all of the tests, identified as \"*_spec.pp\".\n-   itest - Run all of the integration tests.\n-   spec_clean - Tidy up the workspace after running the tests.\n\n## Writing Tests\n\nTests are written using [rspec-puppet](http://rspec-puppet.com), documentation for which can be found on the website.\n\nTest classes should be placed in the appropriate directory for their function:\n\n-   Class Tests - spec/classes/*_spec.rb\n-   Function Tests - spec/functions/*_spec.rb\n-   Host Tests - spec/hosts/*_spec.rb\n-   Definiion Tests - spec/defines/*_spec.rb\n\n## Writing integration tests\n\nIntegration tests are written in bash at the moment, and can be found in the tests/itest.sh script.\n\nThis may change in the future, as bash doesn't provide a great testing framework.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcon121%2Fpuppet-module-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconcon121%2Fpuppet-module-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcon121%2Fpuppet-module-template/lists"}