Hi, Recently i''ve studying puppet by reading and doing the examples from this book: "Pro puppet". books.sysadmins.su/system/files/Pro.Puppet.pdf On page 145 from this book there is example about Exporting Load Balancer Worker Resources. I created the files inside already existing apache module. /etc/puppet/modules/apache/manifests/balancermember.pp define apache::balancermember($url) { file { "/etc/httpd/conf.d.members/worker_${name}.conf": ensure => file, owner => 0, group => 0, mode => "644", content => " Balancermember $url \n", } } /etc/puppet/modules/apache/manifests/worker.pp class apache::worker { @@balancermember { "${fqdn}": url => "http://${fqdn}:18140", } } /etc/puppet/modules/apache/manifests/loadbalancer_members.pp class apache::loadbalancer_members { Balancermember <<| |>> {notify => Service ["apache"], } } When I run puppet agent I get this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Resource type balancermember doesn''t exist at /etc/puppet/modules/apache/manifests/loadbalancer_members.pp:3 on node mail-test.sicom.pl After that I added include apache::worker line to this file. /etc/puppet/modules/apache/manifests/loadbalancer_members.pp class apache::loadbalancer_members { *include apache::worker* Balancermember <<| |>> {notify => Service ["apache"], } } And I got this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type balancermember at /etc/puppet/modules/apache/manifests/worker.pp:4 on node mail-test.nr.sicom.pl On page 143 of this book there is very similar example with host keys management and it works like that on the same puppet master. What should I do to make it work ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Kent R. Spillner
2013-Aug-02 12:21 UTC
Re: [Puppet Users] Exporting Load Balancer Worker Resources
On Aug 2, 2013, at 1:39, fuzzy186 <fuzzy186@o2.pl> wrote:> Hi, > Recently i''ve studying puppet by reading and doing the examples from this book: "Pro puppet". > books.sysadmins.su/system/files/Pro.Puppet.pdf...> What should I do to make it work ?The problem is you''re using a pirated copy of that book. You need to buy your own copy (http://www.apress.com/9781430230571) for it to work. Good luck! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Hi, Recently i''ve studying puppet by reading and doing the examples from this book: "Pro puppet". books.sysadmins.su/system/files/Pro.Puppet.pdf On page 145 from this book there is example about Exporting Load Balancer Worker Resources. I created the files inside already existing apache module. /etc/puppet/modules/apache/manifests/balancermember.pp define apache::balancermember($url) { file { "/etc/httpd/conf.d.members/worker_${name}.conf": ensure => file, owner => 0, group => 0, mode => "644", content => " Balancermember $url \n", } } /etc/puppet/modules/apache/manifests/worker.pp class apache::worker { @@balancermember { "${fqdn}": url => "http://${fqdn}:18140", } } /etc/puppet/modules/apache/manifests/loadbalancer_members.pp class apache::loadbalancer_members { Balancermember <<| |>> {notify => Service ["apache"], } } When I run puppet agent I get this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Resource type balancermember doesn''t exist at /etc/puppet/modules/apache/manifests/loadbalancer_members.pp:3 on node mail-test.sicom.pl After that I added include apache::worker line to this file. /etc/puppet/modules/apache/manifests/loadbalancer_members.pp class apache::loadbalancer_members { include apache::worker Balancermember <<| |>> {notify => Service ["apache"], } } And I got this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type balancermember at /etc/puppet/modules/apache/manifests/worker.pp:4 on node mail-test.nr.sicom.pl On page 143 of this book there is very similar example with host keys management and it works like that on the same puppet master. What should I do to make it work ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.