On Tue, Aug 7, 2012 at 10:45 AM, Nan Liu <n...@puppetlabs.com> wrote:
> On Mon, Aug 6, 2012 at 2:58 PM, Paul Archer <geek65...@gmail.com> wrote:
>> [First, I'm an experienced Linux admin, but new to puppet.]
>> I'm trying to setup razor, which really needs a DHCP server. So I'm 
>> following the guide here ( http://puppetlabs.com/blog/puppet-razor-module/ 
>> ), which points to a DHCP module. That module has a line in tests/init.pp 
>> ("require      => Bind::Key[ $ddnskeyname ],") which fails out when I try to 
>> run puppet:
>> root@razor:/etc/puppet/modules# puppet apply dhcp/tests/init.pp
>> Could not find dependency Bind::Key[dhcp_updater] for Class[Dhcp] at 
>> /etc/puppet/modules/dhcp/tests/init.pp:15
>>
>> I'm assuming that there's a module that supplies this class(?), but I have 
>> no idea which module to use:
>> root@razor:/etc/puppet/modules# puppet module search bind
>> Searching http://forge.puppetlabs.com ...
>> NAME                 DESCRIPTION                                             
>>                                                 AUTHOR         KEYWORDS
>> DavidSchmitt-bind    Manages ISC's bind and its zones line-by-line.          
>>                                                 @DavidSchmitt  bind 
>> nameserver dns zones
>> ghoneycutt-bind      class bind         - base class for all bind server 
>> types                                               @ghoneycutt    repo svn 
>> bind dns zones caching services
>> freiheit-bindserver  Module for configuring bind servers on RHEL5            
>>                                                 @freiheit      redhat bind 
>> dns resolver caching rhel
>> ingent-bind          This module manages BIND and its master DNS zones.      
>>                                                 @ingent        bind initr 
>> networking dns
>> blkwolf-bind         Installs and configures a master bind dns server.       
>>                                                 @blkwolf       bind dns
>> thias-bind           Install and enable a BIND DNS server, create and manage 
>> DNS zone files.                                 @thias         bind dns rhel 
>> CentOS networking
>> root@razor:/etc/puppet/modules# puppet module search dns
>> Searching http://forge.puppetlabs.com ...
>> NAME                  DESCRIPTION                                            
>>                                                AUTHOR          KEYWORDS
>> DavidSchmitt-bind     Manages ISC's bind and its zones line-by-line.         
>>                                                @DavidSchmitt   bind 
>> nameserver dns zones
>> DavidSchmitt-dnsmasq  Manage dnsmasq, the lightweight DHCP and DNS server    
>>                                                @DavidSchmitt   networking 
>> dns dhcp dnsmasq
>> ghoneycutt-dnsclient  manages /etc/resolv.                                   
>>                                                @ghoneycutt     dns resolver 
>> networking
>> ghoneycutt-bind       class bind         - base class for all bind server 
>> types                                             @ghoneycutt     repo svn 
>> bind dns zones caching services
>> freiheit-bindserver   Module for configuring bind servers on RHEL5           
>>                                                @freiheit       redhat bind 
>> dns resolver caching rhel
>> vchoi-dnsclient       Puppet module to manage dns resolver in puppet         
>>                                                @vchoi          dns resolver 
>> resolv_conf resolv resolvconf
>> ingent-bind           This module manages BIND and its master DNS zones.     
>>                                                @ingent         bind initr 
>> networking dns
>> blkwolf-bind          Installs and configures a master bind dns server.      
>>                                                @blkwolf        bind dns
>> blkwolf-dhcpd         Install and configure dhcpd server with ddns to master 
>> dns server                                     @blkwolf        dns dhcp
>> saz-dnsmasq           Manage dnsmasq via Puppet                              
>>                                                @saz            debian ubuntu 
>> dns dnsmasq networking dhcp
>> saz-resolv_conf       Manage resolv.                                         
>>                                                @saz            debian ubuntu 
>> nameserver dnsmasq resolv resolvconf
>> larstobi-dns          This is the Puppet DNS module.                         
>>                                                @larstobi       dns aws 
>> route53
>> zleslie-unbound       A module to deploy and manage the Unbound caching 
>> resolver.                                           @zleslie        dns 
>> unbound
>> crashdummyMCH-dynect  puppet module to manage dynect dns through puppet and 
>> the ruby dynect_rest gem module.                @crashdummyMCH  dns dynect
>> thias-bind            Install and enable a BIND DNS server, create and 
>> manage DNS zone files.                               @thias          bind 
>> dns rhel CentOS networking
>> sessionm-djbdns       Puppet module for installing DJBDNS
>>
>>
>> Can anyone tell me which module to use, and more importantly, how to figure 
>> out which module to use? Or if it's not a module I need, then point me 
>> towards what I need to get past this error?
>
> The blog post gave an example dhcp manifests, and you should adjust
> the settings to match your environment prior to deployment. The
> dhcp/tests/init.pp manifest is just an example, and for the purpose of
> using Razor you don't really need either lines below (they enable
> dynamic dns updates
> https://github.com/puppetlabs/puppetlabs-dhcp/blob/master/templates/dhcpd.conf.ddns.erb):
>
>   dnsupdatekey => "/etc/bind/keys.d/$ddnskeyname",
>   require      => Bind::Key[ $ddnskeyname ],
>
> You want to review dhcp::pool and dhcp::host settings as well.
>
> If you simply want to try it out, Stephen Johnson, one of Puppet Labs'
> professional service engineer, create a vagrant demo environment based
> on Ben Burkert demo from github:
>
> https://github.com/stephenrjohnson/razor-puppet-puppetdb-demo
> https://github.com/benburkert/razor-vagrant-demo/
>
> Stephen's demo should be boiled down to a simple rake task and
> 'vagrant up' command.

One last thing, you can Stephen's manifests as an example since it deploys dhcp:
https://github.com/stephenrjohnson/razor-puppet-puppetdb-demo/blob/master/manifests/provision.pp

All the dependencies are listed in the librarian-puppet file:
https://github.com/stephenrjohnson/razor-puppet-puppetdb-demo/blob/master/Puppetfile

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to