Commit graph

259 commits

Author SHA1 Message Date
David Schmitt
bb67906957 Merge pull request #164 from justinstoller/maint/master/set-puppet-version
(maint) allow setting PUPPET_VERSION in acceptance
2015-06-09 15:49:58 +01:00
Justin Stoller
9a7c0f38dc (maint) allow setting PUPPET_VERSION in acceptance 2015-06-08 22:15:08 -07:00
JT (Jonny)
9858f5b5c0 Merge pull request #161 from tphoney/1.3.0_prep
prep 1.3.0
2015-05-29 12:25:26 +01:00
tphoney
461174d8d7 prep 1.3.0 2015-05-29 11:02:19 +01:00
Hunter Haugen
c72bfbb9b1 Merge pull request #129 from duritong/create_ini_settings
introduce create_ini_settings
2015-05-27 13:15:33 -07:00
Hunter Haugen
4da2f6e23f Add ability to unittest puppet 4 2015-05-27 08:12:17 -07:00
Bryan Jen
3bfcceb17f Merge pull request #160 from puppetlabs/modulesync_updates
Modulesync updates
2015-05-07 14:12:10 -07:00
Morgan Haskel
b19132b3a1 beaker gemfile fixes 2015-05-06 14:32:35 -07:00
Morgan Haskel
d584cb69c8 sync via modulesync 2015-05-06 14:30:46 -07:00
Morgan Haskel
84dde69729 sync via modulesync 2015-05-06 14:10:11 -07:00
TP Honey
033722a34a Merge pull request #159 from WhatsARanjit/MODULES-1940
Adding the ability to change regex match for $section in inifile
2015-04-21 09:51:15 +01:00
WhatsARanjit
b0fb47d4ec Added ability to specify section_prefix and section_suffix to accomodate files with sections that don't follow [section_name] format. AIX for example uses section_name: format. 2015-04-15 03:56:08 -04:00
TP Honey
5d70bafff5 Merge pull request #158 from bmjen/modules-1876-fix
Modules 1876 - Setting names containing spaces fail
2015-04-01 10:20:34 +01:00
Bryan Jen
69bee205c4 Adds acceptance testing for setting names containing white space in the middle 2015-03-31 15:28:42 -07:00
Michael Siroskey
a747f6656f Fixed SETTING_REGEX and COMMENTED_SETTING_REGEX to allow spaces in setting names. 2015-03-31 14:27:45 -07:00
Bryan Jen
70c7fb2974 Merge pull request #157 from hunner/mrzarquon-MODULES_1868_add_default
Adds default values for section
2015-03-30 15:10:29 -07:00
Chris Barker
af78845467 Adds default values for section
Our documentation says to use "" for section if you want top of file
global settings, this defaults to that assumption if the user doesn't
provide a section parameter at all.
2015-03-30 13:27:25 -07:00
Morgan Haskel
57c68ba9ec Merge pull request #154 from psoloway/master
Updates README per DOC-1502
2015-03-25 17:36:30 -04:00
duritong
9f03e8a3d1 remove dead code
found some dead code to remove
2015-03-23 22:29:22 +01:00
Pete Soloway
9789615104 Updates README per DOC-1502
1. Remove any "what this affects" sections, except where particularly warranted.
2. Make sure that for each parameter, where applicable, there is a data type and a default value.
3. Make sure that for each parameter that's applicable, there is a note if the parameter is optional.
4. Make sure the links in the README work and are accurate.
5. Update the link in the Contributing section to point here: https://docs.puppetlabs.com/forge/contributing.html
6. General copyediting.
2015-03-19 13:26:56 -07:00
Colleen Murphy
606de6971d Merge pull request #147 from cyberious/SpecinfraUpgrade
Force acceptance test ordering with require and before
2015-02-09 17:08:18 -08:00
Travis Fields
4dfb8e1089 Force acceptance test ordering with require and before 2015-02-09 16:07:47 -08:00
Morgan Haskel
88676100ed Merge pull request #146 from cyberious/SpecinfraUpgrade
Fixes issues due to serverspec upgrade
2015-02-09 14:07:49 -08:00
Travis Fields
8e2689bdbb Fixes issues due to serverspec upgrade and usage of obsolete should contain method for files 2015-02-09 13:16:55 -08:00
Hunter Haugen
03417e5779 Merge pull request #144 from cmurphy/rspec
Pin rspec gems
2015-02-04 12:03:35 -08:00
Colleen Murphy
f84f05819a Pin rspec gems 2015-02-04 17:02:04 +01:00
mh
6eb8f9ca98 introduce create_ini_settings
create_ini_settings is a function that allows you to create
ini_setting resources from a simple hash:

    $settings = {  section1 => {
        setting1 => val1
      },
      section2 => {
        setting2 => val2,
        setting3 => {
          ensure => absent
        }
      }
    }
    $defaults = {
      path => '/tmp/foo.ini'
    }
    create_ini_settings($settings,$defaults)

Will create the following resources

    ini_setting{'[section1] setting1':
      ensure  => present,
      section => 'section1',
      setting => 'setting1',
      value   => 'val1',
      path    => '/tmp/foo.ini',
    }
    ini_setting{'[section2] setting2':
      ensure  => present,
      section => 'section2',
      setting => 'setting2',
      value   => 'val2',
      path    => '/tmp/foo.ini',
    }
    ini_setting{'[section2] setting3':
      ensure  => absent,
      section => 'section2',
      setting => 'setting3',
      path    => '/tmp/foo.ini',
    }

This allows one to create much easier classes
that should be able to manage an arbritary set of
ini-style settings without having to specify each
one of them.
2015-01-28 22:09:34 +01:00
Morgan Haskel
be5fc47f00 Merge pull request #141 from petems/dry_up_spec_test
Replace code with pre-existing shared_example
2015-01-15 08:49:00 -08:00
Morgan Haskel
7acd0323b3 Merge pull request #143 from cyberious/BeakerRspecPinAbility
Beaker-Rspec currently does not work with Windows, need to be able to
2015-01-14 10:26:53 -08:00
Travis Fields
46ad0bfff9 Beaker-Rspec currently does not work with Windows, need to be able to pin to previous version for testing 2015-01-14 10:20:57 -08:00
Hunter Haugen
e8ddd629e8 Merge pull request #142 from jonnytpuppet/fix_unit_tests_remove_pending
Removed pending unit tests.
2015-01-13 17:15:15 -08:00
Jonathan Tripathy
a21dd813b2 Removed pending unit tests.
This functionality does not exist and thus was cluttering the output.
2015-01-13 17:02:10 -08:00
Peter Souter
9280f81be5 Replace code with pre-existing shared_example
Noticed this when I was testing the module out with a FreeBSD host this code duplicates the shared_example used in the rest of the spec, so I DRY'd it up! 👍
2015-01-11 19:45:27 -08:00
Morgan Haskel
6d43adb26a Merge pull request #140 from cmurphy/master
Add IntelliJ files to the ignore list
2014-12-29 11:23:14 -08:00
Colleen Murphy
9ef15bc598 Add IntelliJ files to the ignore list 2014-12-29 10:41:05 -08:00
Colleen Murphy
2c9defda30 Merge pull request #139 from mhaskel/flexible_key_val
Flexible key val
2014-12-18 13:46:54 -08:00
Morgan Haskel
15f972d092 Rebase/fix the flexible k/v separator. 2014-12-18 10:45:30 -08:00
Pete Johns
c4fa6a614a Fix spec: predicates return booleans 2014-12-18 10:22:20 -08:00
Igor Galić
3288d415e9 WIP: Allow changing key value separator beyond indentation
We have many ini-style configuration files which use : as key value
separator. We'd like to be able to manage them with ini_setting as well.
This here is a naïve first attempt in that direction.

Please note that despite the fact that this *should* match, it's failing
unit tests.. This is a work in progress.
2014-12-18 10:22:20 -08:00
Morgan Haskel
6b399c2bc6 Merge pull request #137 from cmurphy/master
Update .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md
2014-12-09 08:21:55 -08:00
Colleen Murphy
7e6eba5d34 Add json gem
The puppet_facts gem implicitly depends on the json gem.
On Ruby 1.8.7, json is not built in. On Puppet 2.7, it is
not explicitly pulled in by the hiera gem. So we add it
here explicitly.
2014-12-08 22:52:17 -08:00
Colleen Murphy
113cb70ee2 Update .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md 2014-12-08 10:23:27 -08:00
Hunter Haugen
19ddca496b Merge pull request #134 from johnsyweb/less-restrictive-setting-names
Less restrictive setting names
2014-11-20 10:19:26 -08:00
Morgan Haskel
792d35cdb4 Merge pull request #135 from johnsyweb/The-Puppet-Labs-Issue-Tracker-has-Moved
The Puppet Labs Issue Tracker has Moved
2014-11-11 14:06:33 -08:00
Hunter Haugen
d2d9ed9478 Merge pull request #136 from mhaskel/merge_1.2.x
Merge 1.2.x
2014-11-10 16:26:54 -08:00
Pete Johns
927d87910a The Puppet Labs Issue Tracker has Moved
https://tickets.puppetlabs.com

Update the documentation accordingly
2014-11-11 07:03:07 +11:00
Pete Johns
3e46c13dc2 Fix Ruby 1.9.3 build 2014-11-08 18:52:20 +11:00
Pete Johns
efeb174427 Add spec for #123
I may have made this configuration file up
2014-11-08 18:47:08 +11:00
Pete Johns
c6dcad2657 Simplify COMMENTED_SETTING_REGEX to match SETTING_REGEX 2014-11-08 17:55:13 +11:00
Pete Johns
e65be6fb4b Simplify SECTION_REGEX 2014-11-08 17:07:01 +11:00