{"id":20723228,"url":"https://github.com/voxpupuli/puppet-augeasproviders_apache","last_synced_at":"2025-12-11T21:46:58.486Z","repository":{"id":19395304,"uuid":"22636705","full_name":"voxpupuli/puppet-augeasproviders_apache","owner":"voxpupuli","description":"Augeas-based apache types and providers for Puppet ","archived":false,"fork":false,"pushed_at":"2025-03-19T19:07:21.000Z","size":145,"stargazers_count":1,"open_issues_count":3,"forks_count":11,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-04-11T02:26:45.750Z","etag":null,"topics":["apache","apache2","augeas","augeasproviders","centos-puppet-module","configuration","configuration-files","configuration-management","debian-puppet-module","hacktoberfest","httpd","linux-puppet-module","oraclelinux-puppet-module","puppet","puppet-module","puppet-resources","redhat-puppet-module","ubuntu-puppet-module"],"latest_commit_sha":null,"homepage":null,"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/voxpupuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","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},"funding":{"open_collective":"vox-pupuli","github":"voxpupuli"}},"created_at":"2014-08-05T08:43:53.000Z","updated_at":"2025-03-19T13:43:51.000Z","dependencies_parsed_at":"2023-01-13T20:21:04.552Z","dependency_job_id":"7f15f960-a4fa-4eb7-8fa0-cb75c386dd43","html_url":"https://github.com/voxpupuli/puppet-augeasproviders_apache","commit_stats":{"total_commits":98,"total_committers":13,"mean_commits":7.538461538461538,"dds":"0.47959183673469385","last_synced_commit":"58febd2ab061925ff599a4659b70fc3d837261d5"},"previous_names":["hercules-team/augeasproviders_apache"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-augeasproviders_apache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-augeasproviders_apache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-augeasproviders_apache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-augeasproviders_apache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxpupuli","download_url":"https://codeload.github.com/voxpupuli/puppet-augeasproviders_apache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360212,"owners_count":21090665,"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":["apache","apache2","augeas","augeasproviders","centos-puppet-module","configuration","configuration-files","configuration-management","debian-puppet-module","hacktoberfest","httpd","linux-puppet-module","oraclelinux-puppet-module","puppet","puppet-module","puppet-resources","redhat-puppet-module","ubuntu-puppet-module"],"created_at":"2024-11-17T04:08:00.576Z","updated_at":"2025-12-11T21:46:53.452Z","avatar_url":"https://github.com/voxpupuli.png","language":"Ruby","funding_links":["https://opencollective.com/vox-pupuli","https://github.com/sponsors/voxpupuli"],"categories":[],"sub_categories":[],"readme":"\n[![Build Status](https://github.com/voxpupuli/puppet-augeasproviders_apache/workflows/CI/badge.svg)](https://github.com/voxpupuli/puppet-augeasproviders_apache/actions?query=workflow%3ACI)\n[![Release](https://github.com/voxpupuli/puppet-augeasproviders_apache/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-augeasproviders_apache/actions/workflows/release.yml)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/augeasproviders_apache.svg)](https://forge.puppetlabs.com/puppet/augeasproviders_apache)\n[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/augeasproviders_apache.svg)](https://forge.puppetlabs.com/puppet/augeasproviders_apache)\n[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/augeasproviders_apache.svg)](https://forge.puppetlabs.com/puppet/augeasproviders_apache)\n[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/augeasproviders_apache.svg)](https://forge.puppetlabs.com/puppet/augeasproviders_apache)\n[![puppetmodule.info docs](http://www.puppetmodule.info/images/badge.png)](http://www.puppetmodule.info/m/puppet-augeasproviders_apache)\n[![Coverage Status](https://img.shields.io/coveralls/voxpupuli/puppet-augeasproviders_apache.svg)](https://coveralls.io/r/voxpupuli/puppet-augeasproviders_apache)\n[![Apache-2 License](https://img.shields.io/github/license/voxpupuli/puppet-augeasproviders_apache.svg)](LICENSE)\n\n# apache: types/providers for apache files for Puppet\n\nThis module provides new types/providers for Puppet to read and modify apache\nconfig files using the Augeas configuration library.\n\nThe advantage of using Augeas over the default Puppet `parsedfile`\nimplementations is that Augeas will go to great lengths to preserve file\nformatting and comments, while also failing safely when needed.\n\nThis provider will hide *all* of the Augeas commands etc., you don't need to\nknow anything about Augeas to make use of it.\n\n## Requirements\n\nEnsure both Augeas and ruby-augeas 0.3.0+ bindings are installed and working as\nnormal.\n\nSee [Puppet/Augeas pre-requisites](http://docs.puppetlabs.com/guides/augeas.html#pre-requisites).\n\n## Installing\n\nOn Puppet 2.7.14+, the module can be installed easily ([documentation](http://docs.puppetlabs.com/puppet/latest/reference/modules_installing.html)):\n\n    puppet module install herculesteam/augeasproviders_apache\n\nYou may see an error similar to this on Puppet 2.x ([#13858](http://projects.puppetlabs.com/issues/13858)):\n\n    Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type `apache_directive` at ...\n\nEnsure the module is present in your puppetmaster's own environment (it doesn't\nhave to use it) and that the master has pluginsync enabled.  Run the agent on\nthe puppetmaster to cause the custom types to be synced to its local libdir\n(`puppet master --configprint libdir`) and then restart the puppetmaster so it\nloads them.\n\n## Compatibility\n\n### Puppet versions\n\nMinimum of Puppet 2.7.\n\n### Augeas versions\n\nAugeas Versions           | 0.10.0  | 1.0.0   | 1.1.0   | 1.2.0   |\n:-------------------------|:-------:|:-------:|:-------:|:-------:|\n**FEATURES**              |\ncase-insensitive keys     | no      | **yes** | **yes** | **yes** |\n**PROVIDERS**             |\napache\\_directive         | **yes** | **yes** | **yes** | **yes** |\napache\\_setenv            | **yes** | **yes** | **yes** | **yes** |\n\n## Documentation and examples\n\nType documentation can be generated with `puppet doc -r type` or viewed on the\n[Puppet Forge page](http://forge.puppetlabs.com/herculesteam/augeasproviders_apache).\n\n### apache_directive provider\n\n#### manage simple entry\n\n    apache_directive { \"StartServers\":\n      args   =\u003e 4,\n      ensure =\u003e present,\n    }\n\n#### delete entry\n\n    apache_directive { \"ServerName\":\n      args   =\u003e \"foo.example.com\",\n      ensure =\u003e absent,\n    }\n\n#### manage entry in another config location\n\n    apache_directive { \"SetEnv\":\n      args        =\u003e [\"SPECIAL_PATH\", \"/foo/bin\"],\n      args_params =\u003e 1,\n      ensure      =\u003e present,\n      target      =\u003e \"/etc/httpd/conf.d/app.conf\",\n    }\n\nThe `SetEnv` directive is not unique per scope: the first arg identifies the entry we want to update, and needs to be taken into account. For this reason, we set `args_params` to `1`.\n\n#### set a value in a given context\n\n    apache_directive { 'StartServers for mpm_prefork_module':\n      ensure      =\u003e present,\n      name        =\u003e 'StartServers',\n      context     =\u003e 'IfModule[arg=\"mpm_prefork_module\"]',\n      args        =\u003e 4,\n    }\n\n\nThe directive is nested in the context of the `mpm_prefork_module` module, so we specify this with the `context` parameter.\n\nThe value of `StartServers` for the `mpm_prefork_module` module will be set/updated to `4`. Note that the `IfModule` entry will not be created if it is missing.\n\n\n### apache_setenv provider\n\nThis is a custom type and provider supplied by `augeasproviders`.\n\n#### manage simple entry\n\n    apache_setenv { \"SPECIAL_PATH\":\n      ensure =\u003e present,\n      value  =\u003e \"/foo/bin\",\n    }\n\n#### manage entry with no value\n\n    apache_setenv { \"ENABLE_FOO\":\n      ensure  =\u003e present,\n    }\n\n#### delete entry\n\n    apache_setenv { \"SPECIAL_PATH\":\n      ensure =\u003e absent,\n    }\n\n#### manage entry in another config location\n\n    apache_setenv { \"SPECIAL_PATH\":\n      ensure =\u003e present,\n      value  =\u003e \"/foo/bin\",\n      target =\u003e \"/etc/httpd/conf.d/app.conf\",\n    }\n\n\n## Issues\n\nPlease file any issues or suggestions [on GitHub](https://github.com/hercules-team/augeasproviders_apache/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-augeasproviders_apache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxpupuli%2Fpuppet-augeasproviders_apache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-augeasproviders_apache/lists"}