diff options
author | Mickaël Canévet <mickael.canevet@camptocamp.com> | 2015-11-04 10:51:53 +0100 |
---|---|---|
committer | Mickaël Canévet <mickael.canevet@camptocamp.com> | 2015-11-04 11:05:00 +0100 |
commit | 4846943c29c116f223a4187fc177a467b0e9ac89 (patch) | |
tree | c252440ebc30a52e53ff297c631b80b09fe3ebc5 | |
parent | 3d06981f4037ca508666a8818e88005d013427a4 (diff) | |
download | puppet-dhcp-4846943c29c116f223a4187fc177a467b0e9ac89.tar.gz puppet-dhcp-4846943c29c116f223a4187fc177a467b0e9ac89.tar.bz2 |
Fix missing notification
-rw-r--r-- | manifests/subnet.pp | 2 | ||||
-rw-r--r-- | spec/defines/dhcp_subnet_spec.rb | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/manifests/subnet.pp b/manifests/subnet.pp index e7c72dd..1f069af 100644 --- a/manifests/subnet.pp +++ b/manifests/subnet.pp @@ -34,6 +34,8 @@ define dhcp::subnet( $is_shared = false ) { + Dhcp::Subnet[$title] ~> Class['dhcp::server::service'] + include ::dhcp::params $ip_re = '^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$' diff --git a/spec/defines/dhcp_subnet_spec.rb b/spec/defines/dhcp_subnet_spec.rb index b0f7ab7..f3ea284 100644 --- a/spec/defines/dhcp_subnet_spec.rb +++ b/spec/defines/dhcp_subnet_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' describe 'dhcp::subnet' do let (:title) { '1.2.3.4' } + let(:pre_condition) do + "class { '::dhcp::server': }" + end + on_supported_os.each do |os, facts| context "on #{os}" do let(:facts) do |