Add interface_for_ip function
authorDan Prince <dprince@redhat.com>
Fri, 29 May 2015 14:27:01 +0000 (10:27 -0400)
committerDan Prince <dprince@redhat.com>
Wed, 3 Jun 2015 14:51:29 +0000 (10:51 -0400)
commit10ac6980f93ca33e279359c29c3cc19151b79f32
treea909f97bf3c675f1d720ff5a0ad0feaa305d76e6
parent8b945b5e0ff93af2ec1c6540d6177739ab846c99
Add interface_for_ip function

This patch adds a custom Puppet function called interface_for_ip
This function will be used within the TripleO puppet implementation
to help obtain the correct interface for a given IP address.

Change-Id: I0979f69a49052fda888277fa64ebeadc038bc778
lib/puppet/parser/functions/interface_for_ip.rb [new file with mode: 0644]