Skip to content

Commit

Permalink
Add hiera support for resource
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Oct 1, 2015
1 parent 21dbdc1 commit 447898e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
$option_static_route = undef,
$options = undef,
$authoritative = false,
$dhcp_root_group = $dhcp::params::root_group
$dhcp_root_group = $dhcp::params::root_group,
$pools = {},
$hosts = {},
) inherits dhcp::params {

# Incase people set interface instead of interfaces work around
Expand Down Expand Up @@ -107,6 +109,9 @@
order => '01',
}

create_resources('dhcp::pool', $pools)
create_resources('dhcp::host', $hosts)

service { $servicename:
ensure => running,
enable => true,
Expand Down

0 comments on commit 447898e

Please sign in to comment.