Hi List,

After installing the puppetlabs-dhcp module and trying to run the 
tests/init.pp file I receive and error see below for sequence:


puppet module install zleslie/dhcp
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/etc/puppet/modules
âââ zleslie-dhcp (v1.1.0)


(**Needed to install the concat dependacy for the Puppetlabs-dhcp module. 
 Raised a github issue (#17) to include the dependency in the module**)

puppet module install ripienaar/concat
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/etc/puppet/modules
âââ ripienaar-concat (v0.2.0)



puppet apply /etc/puppet/modules/dhcp/tests/init.pp --verbose
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in 
/etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in 
/etc/puppet/modules/concat/lib/facter/concat_basedir.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: Failed to parse template dhcp/dhcpd.pool.erb:
  Filepath: /etc/puppet/modules/dhcp/templates/dhcpd.pool.erb
  Line: 7
  Detail: undefined method `each' for "10.1.1.100 10.1.1.200":String
 at /etc/puppet/modules/dhcp/manifests/pool.pp:15 on node creator.mgnt.local
Error: Failed to parse template dhcp/dhcpd.pool.erb:
  Filepath: /etc/puppet/modules/dhcp/templates/dhcpd.pool.erb
  Line: 7
  Detail: undefined method `each' for "10.1.1.100 10.1.1.200":String
 at /etc/puppet/modules/dhcp/manifests/pool.pp:15 on node creator.mgnt.local





My question is what could be causing this?  I assume that this is something 
to do with Puppet's DSL?

Thanks,

Peter



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/6FOeU4PaEQYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to