From 14709d625b840da1919b5cd8933b73fb771e547b Mon Sep 17 00:00:00 2001 From: tphoney Date: Thu, 9 Jul 2015 15:13:00 +0100 Subject: prep work for 4.7.0 add new improvements puppet4 changes for testing --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ examples/file_line.pp | 9 +++++++++ examples/has_interface_with.pp | 10 ++++++++++ examples/has_ip_address.pp | 3 +++ examples/has_ip_network.pp | 4 ++++ examples/init.pp | 1 + metadata.json | 2 +- tests/file_line.pp | 9 --------- tests/has_interface_with.pp | 10 ---------- tests/has_ip_address.pp | 3 --- tests/has_ip_network.pp | 4 ---- tests/init.pp | 1 - 12 files changed, 57 insertions(+), 28 deletions(-) create mode 100644 examples/file_line.pp create mode 100644 examples/has_interface_with.pp create mode 100644 examples/has_ip_address.pp create mode 100644 examples/has_ip_network.pp create mode 100644 examples/init.pp delete mode 100644 tests/file_line.pp delete mode 100644 tests/has_interface_with.pp delete mode 100644 tests/has_ip_address.pp delete mode 100644 tests/has_ip_network.pp delete mode 100644 tests/init.pp diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c33314..7343cef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,32 @@ +##2015-06-22 - Supported Release 4.7.0 +###Summary + +Adds Solaris 12 support along with improved Puppet 4 support. There are significant test improvements, and some minor fixes. + +####Features +- Add support for Solaris 12 + +####Bugfixes +- Fix for AIO Puppet 4 +- Fix time for ruby 1.8.7 +- Specify rspec-puppet version +- range() fix for typeerror and missing functionality +- Fix pw_hash() on JRuby < 1.7.17 +- fqdn_rand_string: fix argument error message +- catch and rescue from looking up non-existent facts +- Use puppet_install_helper, for Puppet 4 + +####Improvements +- Enforce support for Puppet 4 testing +- fqdn_rotate/fqdn_rand_string acceptance tests and implementation +- Simplify mac address regex +- validate_integer, validate_numeric: explicitely reject hashes in arrays +- Readme edits +- Remove all the pops stuff for rspec-puppet +- Sync via modulesync +- Add validate_slength optional 3rd arg +- Move tests directory to examples directory + ##2015-04-14 - Supported Release 4.6.0 ###Summary diff --git a/examples/file_line.pp b/examples/file_line.pp new file mode 100644 index 0000000..eea693e --- /dev/null +++ b/examples/file_line.pp @@ -0,0 +1,9 @@ +# This is a simple smoke test +# of the file_line resource type. +file { '/tmp/dansfile': + ensure => present +}-> +file_line { 'dans_line': + line => 'dan is awesome', + path => '/tmp/dansfile', +} diff --git a/examples/has_interface_with.pp b/examples/has_interface_with.pp new file mode 100644 index 0000000..e1f1353 --- /dev/null +++ b/examples/has_interface_with.pp @@ -0,0 +1,10 @@ +include stdlib +info('has_interface_with(\'lo\'):', has_interface_with('lo')) +info('has_interface_with(\'loX\'):', has_interface_with('loX')) +info('has_interface_with(\'ipaddress\', \'127.0.0.1\'):', has_interface_with('ipaddress', '127.0.0.1')) +info('has_interface_with(\'ipaddress\', \'127.0.0.100\'):', has_interface_with('ipaddress', '127.0.0.100')) +info('has_interface_with(\'network\', \'127.0.0.0\'):', has_interface_with('network', '127.0.0.0')) +info('has_interface_with(\'network\', \'128.0.0.0\'):', has_interface_with('network', '128.0.0.0')) +info('has_interface_with(\'netmask\', \'255.0.0.0\'):', has_interface_with('netmask', '255.0.0.0')) +info('has_interface_with(\'netmask\', \'256.0.0.0\'):', has_interface_with('netmask', '256.0.0.0')) + diff --git a/examples/has_ip_address.pp b/examples/has_ip_address.pp new file mode 100644 index 0000000..8429a88 --- /dev/null +++ b/examples/has_ip_address.pp @@ -0,0 +1,3 @@ +include stdlib +info('has_ip_address(\'192.168.1.256\'):', has_ip_address('192.168.1.256')) +info('has_ip_address(\'127.0.0.1\'):', has_ip_address('127.0.0.1')) diff --git a/examples/has_ip_network.pp b/examples/has_ip_network.pp new file mode 100644 index 0000000..a15d8c0 --- /dev/null +++ b/examples/has_ip_network.pp @@ -0,0 +1,4 @@ +include stdlib +info('has_ip_network(\'127.0.0.0\'):', has_ip_network('127.0.0.0')) +info('has_ip_network(\'128.0.0.0\'):', has_ip_network('128.0.0.0')) + diff --git a/examples/init.pp b/examples/init.pp new file mode 100644 index 0000000..9675d83 --- /dev/null +++ b/examples/init.pp @@ -0,0 +1 @@ +include stdlib diff --git a/metadata.json b/metadata.json index 3254497..5c20ade 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-stdlib", - "version": "4.6.0", + "version": "4.7.0", "author": "puppetlabs", "summary": "Standard library of resources for Puppet modules.", "license": "Apache-2.0", diff --git a/tests/file_line.pp b/tests/file_line.pp deleted file mode 100644 index eea693e..0000000 --- a/tests/file_line.pp +++ /dev/null @@ -1,9 +0,0 @@ -# This is a simple smoke test -# of the file_line resource type. -file { '/tmp/dansfile': - ensure => present -}-> -file_line { 'dans_line': - line => 'dan is awesome', - path => '/tmp/dansfile', -} diff --git a/tests/has_interface_with.pp b/tests/has_interface_with.pp deleted file mode 100644 index e1f1353..0000000 --- a/tests/has_interface_with.pp +++ /dev/null @@ -1,10 +0,0 @@ -include stdlib -info('has_interface_with(\'lo\'):', has_interface_with('lo')) -info('has_interface_with(\'loX\'):', has_interface_with('loX')) -info('has_interface_with(\'ipaddress\', \'127.0.0.1\'):', has_interface_with('ipaddress', '127.0.0.1')) -info('has_interface_with(\'ipaddress\', \'127.0.0.100\'):', has_interface_with('ipaddress', '127.0.0.100')) -info('has_interface_with(\'network\', \'127.0.0.0\'):', has_interface_with('network', '127.0.0.0')) -info('has_interface_with(\'network\', \'128.0.0.0\'):', has_interface_with('network', '128.0.0.0')) -info('has_interface_with(\'netmask\', \'255.0.0.0\'):', has_interface_with('netmask', '255.0.0.0')) -info('has_interface_with(\'netmask\', \'256.0.0.0\'):', has_interface_with('netmask', '256.0.0.0')) - diff --git a/tests/has_ip_address.pp b/tests/has_ip_address.pp deleted file mode 100644 index 8429a88..0000000 --- a/tests/has_ip_address.pp +++ /dev/null @@ -1,3 +0,0 @@ -include stdlib -info('has_ip_address(\'192.168.1.256\'):', has_ip_address('192.168.1.256')) -info('has_ip_address(\'127.0.0.1\'):', has_ip_address('127.0.0.1')) diff --git a/tests/has_ip_network.pp b/tests/has_ip_network.pp deleted file mode 100644 index a15d8c0..0000000 --- a/tests/has_ip_network.pp +++ /dev/null @@ -1,4 +0,0 @@ -include stdlib -info('has_ip_network(\'127.0.0.0\'):', has_ip_network('127.0.0.0')) -info('has_ip_network(\'128.0.0.0\'):', has_ip_network('128.0.0.0')) - diff --git a/tests/init.pp b/tests/init.pp deleted file mode 100644 index 9675d83..0000000 --- a/tests/init.pp +++ /dev/null @@ -1 +0,0 @@ -include stdlib -- cgit v1.2.3