diff options
-rw-r--r-- | CHANGELOG | 4 | ||||
-rw-r--r-- | lib/puppet/type/interface.rb | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ + Obviated 'target' in interfaces, as all file paths were automatically + calculated anyway. The parameter is still there, but it's + not used and just generates a warning. + Fixing some of the problems with interface management on Red Hat. Puppet now uses the :netmask property and does not try to set the bootproto (#762). diff --git a/lib/puppet/type/interface.rb b/lib/puppet/type/interface.rb index a077f55f3..2f6c28ad3 100644 --- a/lib/puppet/type/interface.rb +++ b/lib/puppet/type/interface.rb @@ -52,8 +52,9 @@ Puppet::Type.newtype(:interface) do end newparam(:target) do + include Puppet::Util::Warnings desc "The path to the file this resource creates." - defaultto { @resource.provider.file_path } + munge { |value| warnonce "Interface targets are deprecated and no longer have any function" } end end |