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 --- 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 + 5 files changed, 27 insertions(+) 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 (limited to 'examples') 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 -- cgit v1.2.3