{"id":15048343,"url":"https://github.com/github/puppet-consul_template","last_synced_at":"2025-10-04T10:30:44.655Z","repository":{"id":52400381,"uuid":"61753178","full_name":"github/puppet-consul_template","owner":"github","description":"A Puppet module to manage the config and jobs of Consul Template from Hashicorp","archived":true,"fork":true,"pushed_at":"2021-04-30T00:56:23.000Z","size":128,"stargazers_count":8,"open_issues_count":0,"forks_count":11,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-09-30T00:41:40.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Puppet","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"claranet/puppet-consul_template","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-22T21:37:27.000Z","updated_at":"2024-07-31T03:16:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/github/puppet-consul_template","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/github%2Fpuppet-consul_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fpuppet-consul_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fpuppet-consul_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fpuppet-consul_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/puppet-consul_template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235238013,"owners_count":18958032,"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-09-24T21:11:02.808Z","updated_at":"2025-10-04T10:30:39.383Z","avatar_url":"https://github.com/github.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"#consul_template for Puppet\n\n### NOTICE:\n\nThis fork is not backwards compatible with its upstream. The configuration\nmechanism has been modified to be driven by config_hash/config_defaults instead\nof individual parameters to provide access to the full set of options and avoid\nthe need to make changes here as consul-template options evolve.\n\n##Installation\n\n###What This Module Affects\n\n* Installs the consul-template binary (via url or package)\n* Optionally installs a user to run it under\n* Installs a configuration file (/etc/consul-template/config.json)\n* Manages the consul-template service via upstart, sysv, or systemd\n\n\n##Parameters\n\n- `purge_config_dir` **Default**: true. If enabled, removes config files no longer managed by Puppet.\n- `config_mode` **Default**: 0660. Mode set on config files and directories.\n- `bin_dir` **Default**: /usr/local/bin. Path to the consul-template binaries\n- `arch` **Default**: Read from facter. System architecture to use (amd64, x86_64, i386)\n- `version` **Default**: 0.11.0. Version of consul-template to install\n- `install_method` **Default**: url. When set to 'url', consul-template is downloaded and installed from source. If\nset to 'package', its installed using the system package manager.\n- `os` **Default**: Read from facter.\n- `download_url` **Default**: undef. URL to download consul-template from (when `install_method` is set to 'url')\n- `download_url_base ` **Default**: https://github.com/hashicorp/consul-template/releases/download/ Base URL to download consul-template from (when `install_method` is set to 'url')\n- `download_extension` **Default**: zip. File extension of consul-template binary to be downloaded (when `install_method` is set to 'url')\n- `package_name` **Default**: consul-template. Name of package to install\n- `package_ensure` **Default**: latest.\n- `config_dir` **Default**: /etc/consul-template. Path to store the consul-template configuration\n- `extra_options` Default: ''. Extra options to be bassed to the consul-template agent. See https://github.com/hashicorp/consul-template#options\n- `service_enable` Default: true.\n- `service_ensure` Default: running.\n- `user` Default: root. This used to be a default of `consul-template` and this caused much out-of-box pain for people.\n- `group` Default: root.\n- `manage_user` Default: false. Module handles creating the user.\n- `manage_group` Default: false. Module handles creating the group.\n- `init_style` Init style to use for consul-template service.\n- `config_hash` Default: {}. Consul-template configuration options. See https://github.com/hashicorp/consul-template#options\n- `config_defaults` Default: {}. Consul-template configuration option defaults.\n\n\n\n##Usage\n\nThe simplest way to use this module is:\n```puppet\ninclude consul_template\n```\n\nconsul-template options can be passed via hiera:\n\n```\nconsul_template::config_defaults:\n  deduplicate:\n    enabled: true\n  log_level: info\n  retry: 10s\n  syslog: true\n  token: \u003cconsul token\u003e\n```\n\nOr to specify class parameters:\n```puppet\nclass { 'consul_template':\n    service_enable   =\u003e false\n    init_style       =\u003e 'upstart',\n    config_hash      =\u003e {\n      log_level =\u003e 'debug',\n      wait      =\u003e '5s:30s',\n      max_stale =\u003e '1s'\n    }\n}\n```\n\n## Watch files\n\nTo declare a file that you wish to populate from Consul key-values, you use the\n`watch` define. This requires a source `.ctmpl` file and the file on-disk\nthat you want to update.\n\n```puppet\nconsul_template::watch { 'common':\n    template      =\u003e 'data/common.json.ctmpl.erb',\n    template_vars =\u003e {\n        'var1' =\u003e 'foo',\n        'var2' =\u003e 'bar',\n    },\n    config_hash   =\u003e {\n      destination =\u003e '/tmp/common.json',\n      command     =\u003e 'true',\n    },\n}\n```\n\n##Limitations\n\nDepends on the JSON gem, or a modern ruby.\n\n##Development\nSee the [contributing guide](CONTRIBUTING.md)\n\nOpen an [issue](https://github.com/gdhbashton/puppet-consul_template/issues) or\n[fork](https://github.com/gdhbashton/puppet-consul_template/fork) and open a\n[Pull Request](https://github.com/gdhbashton/puppet-consul_template/pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fpuppet-consul_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fpuppet-consul_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fpuppet-consul_template/lists"}