equal
deleted
inserted
replaced
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 require 'ipaddr' |
26 require 'ipaddr' |
27 require 'puppet/property/list' |
27 require 'puppet/property/list' |
28 |
28 |
81 newproperty(:securenets) do |
81 newproperty(:securenets) do |
82 desc "Entries for /var/yp/securenets. Each entry must be a hash. |
82 desc "Entries for /var/yp/securenets. Each entry must be a hash. |
83 The first element in the hash is either a host or a netmask. |
83 The first element in the hash is either a host or a netmask. |
84 The second element must be an IP network address. Specify |
84 The second element must be an IP network address. Specify |
85 multiple entries as separate entries in the hash." |
85 multiple entries as separate entries in the hash." |
|
86 |
|
87 def insync?(is) |
|
88 is = {} if is == :absent or is.nil? |
|
89 is.sort == self.should.sort |
|
90 end |
|
91 |
|
92 def should_to_s(newvalue) |
|
93 newvalue.to_s |
|
94 end |
|
95 |
|
96 def is_to_s(currentvalue) |
|
97 currentvalue.to_s |
|
98 end |
86 end |
99 end |
87 |
100 |
88 newproperty(:use_broadcast) do |
101 newproperty(:use_broadcast) do |
89 desc "Send a broadcast datagram requesting needed bind information for |
102 desc "Send a broadcast datagram requesting needed bind information for |
90 a specific NIS server." |
103 a specific NIS server." |