Граф коммитов

146 Коммитов

Автор SHA1 Сообщение Дата
Ben Burry 09a7ddfd0e
Merge pull request #8 from github/consul_dependency
Define dependency on github/consul
2021-04-29 17:56:20 -07:00
Ben Burry 89a4207e70 Define dependency on github/consul
Welcome. This is a weird one. On the face of it we're simply adding a
relationship between this module (our own fork of the consul_template
module) and a module called `github/consul`, by making this module
require v1+ of the consul module.

Two things are unusual about this. Firstly, the source of the
`github/consul` module is actually within the puppet repo - originally
at `modules/consul` but now moved to `module_src/consul`. This module is
referenced in the puppet repo's Puppetfile only with its local path, so
that the librarian install step is able to "install" the consul module
and  satisfy dependencies of anything that depends on it. All that is to
say that if you try to use this consul_template module anywhere but the
github/puppet repo, librarian isn't going to be able to satisfy the
github/consul dependency. That's not wonderful, but it's a manageable
risk given how we've forked _both_ github/consul and this
consul_template module inhouse, and we currently have only one puppet
repository.

The appropriate question to ask is _why the heck are we doing this_: Our
fork of the consul module had puppet v3 functions defined, one of which
caused errors when we tried to serve the module through a v7
puppetserver. To fix this we updated the v3 functions to be puppet v4
compatible, but in doing so hit a puppet feature where you're unable to
call v4 functions in module B from module A unless module A defines a
dependency on module B in its metadata.json. Hence, this.

This limitation was removed in puppet 5.5+ but at the moment we're
having to support puppet-agent versions 4, 5 and 7 across the fleet
while we slowly migrate everything to puppet 7. I'm hopeful that if we
successfully roll puppet 7 out we can revisit this change and our module
structure in general, and remove these unnecessary hacks.

Thanks for sticking with me this far. I've just had my second covid
vaccine so I'm feeling a little loopy.
2021-04-29 17:37:39 -07:00
Ben Burry dc216630d2
Merge pull request #7 from github/namespaced_consul_functions
Support namespaced consul custom function
2021-04-23 14:31:24 -07:00
Ben Burry b6ebf0198f Support namespaced consul custom function
We've adjusted our consul puppet module to conform with the puppet v4
api custom functions spec, with the side-effect that these functions are
now namespaced under the consul module.

Update the function references here to call the namespaced version of
those functions.
2021-04-23 14:25:58 -07:00
Ross McFarland 87a3c775bb Merge pull request #5 from github/service-require-package
The service should require the package so that updates restart it
2017-01-03 10:55:51 -08:00
Ross McFarland 8cad78bd7b
The service should require the package so that updates restatrt it
and so that it's always installed first.
2017-01-03 10:53:03 -08:00
Kevin Paulisse bddce5c4d5 Merge pull request #4 from github/kpaulisse-consul-template-provider
Use init_style as provider
2016-08-29 21:04:53 -05:00
Kevin Paulisse 9ea33eab60
Use init_style as provider 2016-08-29 15:38:21 -05:00
Ross McFarland acbffdc9bc Merge pull request #3 from github/fix-concat-targets
Correct the concat targets
2016-06-24 15:08:01 -07:00
Ross McFarland 4e37c3c12b
Correct the concat targets 2016-06-24 15:07:27 -07:00
Ross McFarland cceba4bc3d Merge pull request #2 from github/virtual-resource-fixes
before => vritual no workie
2016-06-24 14:34:56 -07:00
Ross McFarland 5fedd58407
before => vritual no workie
Cleaner to have the concat::fragment depend on something that may or may not
be there anyway and that gets away from having the file resource before a
virtual that breaks tests & doesn't work when you go to apply the catalog.
2016-06-24 14:32:20 -07:00
Ross McFarland 4bc7656ba3 Merge pull request #1 from github/config-via-hash
Configuration via hashes, similar to `consul` module
2016-06-24 11:08:56 -07:00
Ross McFarland e76ca2f5d2
Get spec tests closer to working 2016-06-24 10:43:14 -07:00
Ross McFarland 2176a8b134
Clean up generated config, use regsubst, well formatted 2016-06-24 10:02:20 -07:00
Ross McFarland ef1fc4e1e5
PuppetSyntax.future_parser = true 2016-06-24 09:23:53 -07:00
Ross McFarland c9ccc192d6
Better doc and comments on config_hash 2016-06-24 07:04:06 -07:00
Ross McFarland 19b7ec17ab
Support config_defaults in consul_template::watch 2016-06-23 22:15:59 -07:00
Ross McFarland 9d6b04246e
Reworked to fully support config_hash style configuration 2016-06-23 22:11:17 -07:00
Ross McFarland c81836c98b
Convert consul_template::watch to config_hash 2016-06-23 07:00:09 -07:00
Gavin Hamill 4cddf41c09 Merge pull request #72 from khdevel/khdevel
[khdevel]
2016-05-23 09:14:36 +01:00
kamil 361024fd9a Update watch.pp
- alphabetic variables order
2016-05-20 21:36:10 +02:00
herbik_kam add00cb4ed [khdevel]
- corrections after puppet-lint syntax checker
- below messages were covered in this fix:

./manifests/watch.pp - WARNING: optional parameter listed before required parameter on line 10
./manifests/watch.pp - WARNING: optional parameter listed before required parameter on line 11
./manifests/watch.pp - WARNING: string containing only a variable on line 43
./manifests/watch.pp - ERROR: trailing whitespace found on line 38
./manifests/logrotate.pp - WARNING: unquoted file mode on line 48
	modified:   manifests/logrotate.pp
	modified:   manifests/watch.pp
2016-05-20 15:15:39 +02:00
Gavin Hamill 4bf4dc575a Release 0.2.8 2016-05-11 15:19:26 +01:00
Gavin Hamill 9ae012537c Fix #70. Release 0.2.6 2016-05-11 11:07:50 +01:00
Gavin Hamill 10e8d86951 Merge pull request #69 from ross/dedup-no-quotes
Remove quotes from deduplicate.enabled = true
2016-04-29 07:46:42 +01:00
Ross McFarland a131780074 Remove quotes from deduplicate.enabled = true 2016-04-28 10:48:02 -07:00
Gavin Hamill 0a66f71858 Merge pull request #68 from ross/add-dedup-support
Add dedplicate configruation support
2016-04-28 09:33:21 +01:00
Ross McFarland 1f1a236f40 Add dedplicate configruation support 2016-04-27 14:37:29 -07:00
Gavin Hamill e24b78bf86 Release 0.2.5 to Forge 2016-03-31 10:13:06 +01:00
Gavin Hamill 80f85ca693 Merge pull request #63 from JayH5/minor-anchor-fix
Add extra anchor dependency on consul_template::logrotate inclusion
2016-03-31 10:01:14 +01:00
Gavin Hamill dbd86ce287 Merge pull request #65 from keyan/master
Remove `strip` arg for extract, only for GNU tar
2016-03-15 10:02:03 +00:00
Keyan Pishdadian 209aa5669b Remove `strip` arg for extract, only for GNU tar
The `strip` arg is not supported for `zip` files, which is the only
current distribution format for consul_template. This bug is causing
warnings during our puppet runs.
2016-03-13 20:58:41 -04:00
Jamie Hewland 64c64d48a2 Add one more anchor dependency 2016-01-29 17:07:12 +02:00
Gavin Hamill 6397cc6d7e Merge pull request #62 from JayH5/issue-61-anchor
Fixes #61: Anchor classes included in main class
2016-01-20 15:54:23 +00:00
Jamie Hewland 1c97444cd6 Anchor classes included in main class 2016-01-20 15:52:17 +02:00
Gavin Hamill 131fd78b43 Merge pull request #60 from DG-i/master
Systemd service should run as configured user
2016-01-20 07:59:36 +00:00
Mathias Merscher a30e58ab65 set configured user and group in systemd service unit
Signed-off-by: Mathias Merscher <Mathias.Merscher@rheinekopfsache.de>
2016-01-20 08:34:58 +01:00
Gavin Hamill 3ce063e87d Merge pull request #47 from mrh666/patch-2
Logrotation template
2016-01-19 15:23:54 +00:00
Gavin Hamill 7a97f6e832 Merge pull request #48 from mrh666/patch-3
New logrotation class: consul_template::logrotate
2016-01-19 15:23:37 +00:00
Gavin Hamill 0b56099def Merge pull request #49 from mrh666/patch-4
Logrotation for consul-template
2016-01-19 15:23:28 +00:00
Gavin Hamill 3e2f2ff483 deliciously ironic typo on "error" 2016-01-19 10:44:14 +00:00
Andrey Kanevsky 878c892023 Postrotate command defined for SysV and Systemd by OS
Postrotate command defined for SysV and Systemd by OS case. Tested on Centos 6, Centos 7, Amazon Linux.
2016-01-19 11:34:53 +02:00
Andrey Kanevsky 7687265a6a Postrotate command now defined from in init.pp
Postrotate command now defined from OS dependent case in init.pp
2016-01-19 11:30:40 +02:00
Gavin Hamill da8e4abfa7 Merge pull request #59 from gdhbashton/bugfix/oldsource
Watch out! Here is more complete Hiera integration #54
2016-01-18 16:55:47 +00:00
Gavin Hamill 2a0b64c366 Watch out! Here is more complete Hiera integration #54 2016-01-18 16:55:28 +00:00
Gavin Hamill 7b8c6b2397 Merge pull request #58 from gdhbashton/bugfix/oldsource
Fun puppet with its lack of variable redeclaration..
2016-01-18 16:48:39 +00:00
Gavin Hamill 0fbebab79f Fun puppet with its lack of variable redeclaration.. 2016-01-18 16:47:44 +00:00
Gavin Hamill e7e52075e0 Merge pull request #57 from gdhbashton/bugfix/oldsource
Dumb typo. Props to @madandroid for pointing it out
2016-01-18 15:49:49 +00:00
Gavin Hamill 27a8f7b08e Dumb typo. Props to @madandroid for pointing it out 2016-01-18 15:49:17 +00:00