Commit graph

351 commits

Author SHA1 Message Date
Helen
3099468f61 Merge pull request #212 from puppetlabs/update-modulesync
(MAINT) Update for modulesync_config 72d19f184
2016-07-29 13:37:17 +01:00
David Schmitt
3a7f885dc2 (MAINT) Update for modulesync_config 72d19f184 2016-07-27 15:43:57 +01:00
David Schmitt
77022c5050 Merge pull request #208 from dmitryilyin/master
Add insert_type and subsetting_key_val_separator
2016-07-21 18:25:13 +01:00
David Schmitt
1434fedbe3 Merge pull request #211 from HelenCampbell/revertFix
(MODULES-3472) Fix backwards compatability for create_ini_settings
2016-07-19 11:17:43 +01:00
Helen Campbell
fff45971c8 Additional tests - multiple ini settings creation 2016-07-18 17:27:13 +01:00
Helen Campbell
752aa8e564 Revert "Remove brackets from ini_setting titles to workaround PUP-4709"
This reverts commit b425fe5a49.
2016-07-18 11:17:37 +01:00
TP Honey
16ddb5a506 Merge pull request #210 from DavidS/modulesync
(MODULES-3581) modulesync [067d08a]
2016-07-08 14:58:34 +01:00
David Schmitt
7cffa8af64 (MODULES-3581) modulesync [067d08a] 2016-07-08 13:34:14 +01:00
Dmitry Ilyin
357ecf8e8e Add insert_type and subsetting_key_val_separator
* Insert_type and insert value can define where
  a new subsetting element will be placed.
* subsetting_key_val_separator allows you to have
  a separator character between a subsetting name
  and its value.
* Refactor ini_subsetting and its spec.
2016-07-01 13:49:10 +03:00
Bryan Jen
7f802d1dd0 Merge pull request #209 from puppetlabs/modulesync
{maint} modulesync 0794b2c
2016-06-30 09:11:57 -07:00
tphoney
23db839138 {maint} modulesync 0794b2c 2016-06-30 15:27:28 +01:00
David Schmitt
56b24fa819 Merge pull request #207 from jonnytpuppet/refreshonly
Added refreshonly Parameter
2016-05-17 11:26:23 +01:00
Alan Petersen
ede74d1a67 Added refreshonly Parameter
Working with a recent customer, they had a product whose ini files have timestamps in them associated with particular settings. When those settings are updated, it is expected that the timestamp be updated as well. To do this with ini_setting, we need it to respond to refresh events and have a way of only updating a value if a refresh event occurs. Hence the little modification to make this possible.
2016-05-16 16:09:53 +01:00
Greg Hardy
d15506dacb Merge pull request #206 from puppetlabs/update-msync
Update to newest modulesync_configs [9ca280f]
2016-04-19 11:29:17 +01:00
David Schmitt
5013ba39b7 Update to newest modulesync_configs [9ca280f] 2016-04-18 20:15:09 +01:00
Helen
1b7051cfe5 Merge pull request #205 from tphoney/fix_strict_vars
(maint) fix test to run under strict variables
2016-04-08 15:00:56 +01:00
tphoney
a731ce92de (maint) fix test to run under strict variables 2016-04-08 13:54:05 +01:00
Bryan Jen
1fe35c6868 Merge pull request #204 from hunner/fix_false
(MODULES-3145) Cast values to strings before passing to provider
2016-03-17 16:09:47 -07:00
Hunter Haugen
072accdb1e (MODULES-3145) Cast values to strings before passing to provider
Puppet gets confused when false values get passed to the provider
because of
https://github.com/puppetlabs/puppet/blob/4.4.0/lib/puppet/property.rb#L247-L248
so lets just cast them all to strings; ini files are untyped anyway.
2016-03-17 15:39:58 -07:00
Bryan Jen
49c2e6038b Merge pull request #202 from puppetlabs/1.5.x
1.5.x
2016-03-10 16:29:46 -07:00
Bryan Jen
1de47a3ba2 Merge pull request #201 from hunner/remove_init
Remove inifile class, test, and dependency
2016-03-07 13:16:46 -07:00
Hunter Haugen
52bc6f8dfc Remove inifile class, test, and dependency
PR #156 merged a base class called `inifile` that dynamically queried
hiera using explicit `hiera_hash()` functions and required functions
from stdlib.

It is an anti-pattern for component classes to contain hiera
functions (even ones that do not trigger under all circumstances) as
this leads to tight-coupling with hiera data structures. It also
promotes the anti-pattern of declaring resources directly in hiera.

Also, inifile is not going to receive a major version increase for a
while (we hope) and so adding a dependency is not desirable at this
point.

Unfortunately this feedback was missed while reviewing the original PR,
so it has to be reverted.
2016-03-07 11:33:32 -08:00
Hunter Haugen
decebd45d1 Prep 1.5.0 2016-03-03 14:55:36 -08:00
Bryan Jen
d31803cce6 Merge pull request #200 from hunner/fix_test
Fix acceptance test for removed section
2016-03-01 17:24:57 -07:00
Hunter Haugen
f77ab45542 Fix acceptance test for removed section
The 199 PR updated ini_setting to remove empty sections after the last
value is removed. This fixes the acceptance test.
2016-03-01 16:23:06 -08:00
Bryan Jen
af9de61afc Merge pull request #199 from hunner/remove_empty_section
Remove empty sections after last setting is removed
2016-03-01 15:48:33 -07:00
Hunter Haugen
2027a0b2ab Remove empty sections after last setting is removed
Empty sections hanging around are not useful, so if the last line in a
section is removed then remove the section. If the section still has
comments, then just leave it be.

This does not add the ability to remove sections that do not have
settings to begin with; only allows cleaning a file as puppet makes
changes to it.
2016-02-29 14:07:21 -08:00
Helen
fbb7050e4b Merge pull request #198 from DavidS/debian-8-support
Update metadata to note Debian 8 support
2016-02-17 12:15:19 +00:00
David Schmitt
ba8ca0ddf2 Update metadata to note Debian 8 support 2016-02-17 11:56:55 +00:00
TP Honey
8cb51cd856 Merge pull request #197 from DavidS/fm-4046-update-msync
(FM-4046) Update to current msync configs [006831f]
2016-02-16 17:02:00 +00:00
David Schmitt
57bb3fe438 (FM-4046) Update to current msync configs [006831f]
This moves all copyright statements to the NOTICE file in accordance with the ASFs guidelines on applying the Apache-2.0 license.
2016-02-16 16:33:31 +00:00
Bryan Jen
b79dd27ac5 Merge pull request #196 from domcleal/pup-4709-workaround-master
Remove brackets from ini_setting titles to workaround PUP-4709
2016-02-09 16:45:31 -07:00
Dominic Cleal
b425fe5a49 Remove brackets from ini_setting titles to workaround PUP-4709
Puppet 4.0 and 4.1 are affected by PUP-4709 which raises duplicate
resource errors when using create_ini_settings(), due to the inclusion
of square brackets in the resource titles.

    Error while evaluating a Function Call, Duplicate
    declaration: Ini_setting[[foo] bar] is already declared; cannot
    redeclare

Removing these from the function allows it to work on these Puppet
versions without error.
2016-02-09 08:06:57 +00:00
TP Honey
1635b84377 Merge pull request #152 from stepanstipl/feature-keep_secret2
Added keep_secret parameter feature
2016-02-02 14:12:17 +00:00
Hunter Haugen
f7eabdeaf2 Merge pull request #194 from DavidS/fm-4049-update-msync
(FM-4049) update to modulesync_configs
2016-01-27 08:36:41 -08:00
David Schmitt
2c76f60cf2 (FM-4049) Update to current msync configs [2c99161] 2016-01-27 14:34:40 +00:00
Stepan Stipl
4b8336ad23 Convert boolean to :true & :false PR #152 2016-01-15 20:47:07 +00:00
Stepan Stipl
af4b3f287a Acceptance tests for show_diff 2016-01-15 20:47:07 +00:00
Stepan Stipl
4853927093 Implemented show_diff parameter, with similar behaviour as show_diff on
type file

show_diff => true (default) prints diff to logs
show_diff => md5 prints only md5 hashes instead of actual values
show_diff => false redacts any information about values

Global show_diff config takes priotiry over this one.
2016-01-15 20:47:07 +00:00
Bryan Jen
35b5dfc04c Merge pull request #156 from ghoneycutt/cr-patch
create resources
2016-01-06 11:28:22 -07:00
Garrett Honeycutt
d83f3011f9 Add ability to specify a hash of ini_settings and ini_subsettings.
This added functionality allows you to specify hashes for ini_setting
and ini_subsetting so that they might be stored in Hiera. Without this
patch, you need to use ini_setting and ini_subsetting resources strictly
in code whereas with this patch, you could describe this in Hiera.
2016-01-06 12:27:21 -05:00
David Schmitt
d662163171 Merge pull request #193 from puppetlabs/1.4.x
1.4.x Mergeback
2015-12-08 15:35:02 +00:00
Helen
3863d9a9c1 Merge pull request #192 from tphoney/1.4.3_release_prep
1.4.3 release prep
2015-11-25 11:47:20 +00:00
tphoney
5eb4c7a3d5 1.4.3 release prep 2015-11-24 15:25:12 +00:00
Helen
27857c28fc Merge pull request #191 from tphoney/remove_allow_failure_travis
remove allowing failures for 4.0
2015-11-17 13:29:38 +00:00
tphoney
fd40618ecf remove allowing failures for 4.0 2015-11-17 13:24:24 +00:00
Morgan Haskel
960d85a670 Merge pull request #190 from puppetlabs/1.4.x
1.4.x mergeback to master
2015-09-01 16:58:25 -07:00
Morgan Haskel
2c8a08e675 Merge pull request #189 from bmjen/fix-metadata
updates metadata.json to match Puppet 4.x PMT output
2015-09-01 16:55:23 -07:00
Bryan Jen
f29cdb8b13 updates metadata.json to match Puppet 4.x PMT output 2015-09-01 16:54:15 -07:00
TP Honey
43bf3b0b78 Merge pull request #188 from DavidS/fix-readme
(maint) Fix README for ini_setting parameters
2015-08-27 15:11:31 +01:00