example42 / psick

Puppet Systems Infrastructure Construction Kit: The control-repo

Home Page:http://www.example42.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not find resource type apache::virtualhost::custom

gerapeldoorn opened this issue · comments

Hi

I think this is a bug, but am not certain.

Error:
---------------%<---------------
[root@svr100 ~]# puppetd --test
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource type apache::virtualhost::custom at /etc/puppet/modules/apache/manifests/virtualhost.pp:88 on node svr100.domain.nl
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
---------------%<---------------

config ('borrowed' from example)
---------------%<---------------
node 'svr100.domain.nl' inherits devel {
$role = "drupal"
include apache
apache::virtualhost { "wwwl.domain.com": templatefile => "virtualhost.conf.erb" }
}
---------------%<---------------

This is where it fails:
---------------%<---------------
# This define manage different roles and projects
apache::virtualhost::custom { "$name":
templatefile => $templatefile,
documentroot => $documentroot,
enable => $enable,
filename => $filename,
aliases => $aliases,
}
---------------%<---------------

Any help is very much appreciated!

Regards,
Ger.

Definitively a bug, due to an import from another puppet environment.
Thanks for the feedback, please keep on sending any similar bug report. (I should definitively set up an automatic testing environment for these modules...)

Does closing mean that this issue is fixed in git?

(i've done a 'git pull', but it states that it's already up to date)

Yes, it has been fixed in this commit 6a9c4ed

Ah... I've updated the file by hand now.

Shouldn't git pull update it?

Yes, it should. Do you see the commit in the history (git log )?

No, it doesn't show.

It's probably something really silly, I'm not used to git... :)

I tried this:
---------------%<---------------
rm apache/manifests/virtualhost.pp
git checkout apache/manifests/virtualhost.pp
---------------%<---------------
and it gives me the old version back... :/

Latest updates from git log are from june 25th.

by the way, this is the git repo I used (from the manual)

git clone git://www.example42.com/example42modules /etc/puppet/modules

Is that right?

Nope! :-D
I recently switched the main git repo on github, so the git://www.example42.com is not updated anymore (that explains the missing update).
You should use the github url...

(and btw, I definitively have to update the docs...)

Indeed; I made new git-clones and all should be well now...

Thanks again!