Will S. G.
2011-Dec-20 09:07 UTC
[Puppet Users] camptocamp / puppet-apache can''t get it to work properly.
Hello, I''m attempting to use the camptocamp / puppet-apache module on one of my CentOS 6 hosts. I defined include apache on my node, imported the modules, and then executed puppetd to run. This is what I see when I run it: err: Could not retrieve catalog from remote server: Error 400 on SERVER: No matching value for selector param ''undef'' at /etc/puppet/ modules/apache/manifests/redhat.pp:85 on node The message is a bit cryptic to me since line 85 is not really referring to anything that''s substantially useful to my troubleshooting process. Given the lack of readme notes (most of it talks about auth), I don''t think I have the full scope, of how I''m supposed to set up the module. Has anyone else successfully deployed this module, let alone, on a CentOS 5/6 host? Thank you, Will -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Luke Bigum
2011-Dec-20 09:18 UTC
Re: [Puppet Users] camptocamp / puppet-apache can''t get it to work properly.
Hi Will,
I don''t use the module but every time I see the word
''undef'' in an error
I think "a variable is used before being defined".
Line 80:
file { "${apache::params::conf}/mods-available":
ensure => directory,
source => $lsbmajdistrelease ? {
5 =>
"puppet:///modules/apache/etc/httpd/mods-available/redhat5/",
6 =>
"puppet:///modules/apache/etc/httpd/mods-available/redhat6/",
},
recurse => true,
mode => 644,
owner => "root",
group => "root",
seltype => "httpd_config_t",
require => Package["apache"],
}
The only selector operator in there is:
source => $lsbmajdistrelease {
That is an LSB Fact. You can confirm that the Fact is available by
running "facter -p | grep lsb" on your Puppet Agent system.
IIRC you only get LSB Facts if you have the necessary LSB package,
which is redhat-lsb on RHEL I think.
On 20/12/11 09:07, Will S. G. wrote:> Hello,
>
> I''m attempting to use the camptocamp / puppet-apache module on one
of
> my CentOS 6 hosts. I defined include apache on my node, imported the
> modules, and then executed puppetd to run. This is what I see when I
> run it:
>
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: No matching value for selector param ''undef'' at
/etc/puppet/
> modules/apache/manifests/redhat.pp:85 on node
>
> The message is a bit cryptic to me since line 85 is not really
> referring to anything that''s substantially useful to my
> troubleshooting process.
>
> Given the lack of readme notes (most of it talks about auth), I
don''t
> think I have the full scope, of how I''m supposed to set up the
module.
> Has anyone else successfully deployed this module, let alone, on a
> CentOS 5/6 host?
>
> Thank you,
> Will
>
--
Luke Bigum
Information Systems
+44 (0) 20 3192 2520
Luke.Bigum@lmax.com | http://www.lmax.com
LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN
The information in this e-mail and any attachment is confidential and is
intended only for the named recipient(s). The e-mail may not be disclosed or
used by any person other than the addressee, nor may it be copied in any way. If
you are not a named recipient please notify the sender immediately and delete
any copies of this message. Any unauthorized copying, disclosure or distribution
of the material in this e-mail is strictly forbidden. Any view or opinions
presented are solely those of the author and do not necessarily represent those
of the company.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Will S. G.
2011-Dec-20 09:30 UTC
[Puppet Users] Re: camptocamp / puppet-apache can''t get it to work properly.
> IIRC you only get LSB Facts if you have the necessary LSB package, > which is redhat-lsb on RHEL I think.That was it; redhat-lsb package was missing, which begs the question, why not require it in the module? There is another error (Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type common::concatfilepart at / etc/puppet/modules/apache/manifests/listen.pp:30), but I''m sure I can figure it out. Thanks! -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Will S. G.
2011-Dec-20 09:41 UTC
[Puppet Users] Re: camptocamp / puppet-apache can''t get it to work properly.
I figured it out, I needed the puppet-common modules installed and included. Thank you for your help this morning. On Dec 20, 1:30 am, "Will S. G." <w...@arw.in> wrote:> > IIRC you only get LSB Facts if you have the necessary LSB package, > > which is redhat-lsb on RHEL I think. > > That was it; redhat-lsb package was missing, which begs the question, > why not require it in the module? > > There is another error (Puppet::Parser::AST::Resource failed with > error ArgumentError: Invalid resource type common::concatfilepart at / > etc/puppet/modules/apache/manifests/listen.pp:30), but I''m sure I can > figure it out. > > Thanks!-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Luke Bigum
2011-Dec-20 09:46 UTC
Re: [Puppet Users] Re: camptocamp / puppet-apache can''t get it to work properly.
"Invalid resource type" is exactly what it sounds. Consider the
following:
file { "/etc/passwd: }
woofwoof { "/tmp": }
service { "httpd": }
If you don''t have any extra Custom Types or Defined Types on your
Master, then the "woofwoof" resource type would give you the same
error.
What you''ll want to do is clone down the ''common''
module, probably from
the same GitHub account, which I''d guess will provide the
common::concatfilepart type (I know this because of the namespace of the
error is common:: so that''s where the apache module is expecting to
find
concatfilepart). This will be an implementation of
https://github.com/ripienaar/puppet-concat if you want to read up on
what it actually is.
On 20/12/11 09:30, Will S. G. wrote:>> IIRC you only get LSB Facts if you have the necessary LSB package,
>> which is redhat-lsb on RHEL I think.
> That was it; redhat-lsb package was missing, which begs the question,
> why not require it in the module?
>
> There is another error (Puppet::Parser::AST::Resource failed with
> error ArgumentError: Invalid resource type common::concatfilepart at /
> etc/puppet/modules/apache/manifests/listen.pp:30), but I''m sure I
can
> figure it out.
>
> Thanks!
>
--
Luke Bigum
Information Systems
+44 (0) 20 3192 2520
Luke.Bigum@lmax.com | http://www.lmax.com
LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN
The information in this e-mail and any attachment is confidential and is
intended only for the named recipient(s). The e-mail may not be disclosed or
used by any person other than the addressee, nor may it be copied in any way. If
you are not a named recipient please notify the sender immediately and delete
any copies of this message. Any unauthorized copying, disclosure or distribution
of the material in this e-mail is strictly forbidden. Any view or opinions
presented are solely those of the author and do not necessarily represent those
of the company.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.