After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745098 - Linting HTTPD module
Linting HTTPD module
Status: RESOLVED FIXED
Product: sysadmin
Classification: Infrastructure
Component: Apprentices
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Blocks:
 
 
Reported: 2015-02-24 17:06 UTC by Daniel Mustieles
Modified: 2015-05-18 14:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make HTTPD module lint compliant (30.40 KB, patch)
2015-02-24 17:06 UTC, Daniel Mustieles
none Details | Review

Description Daniel Mustieles 2015-02-24 17:06:29 UTC
Created attachment 297786 [details] [review]
Make HTTPD module lint compliant

Here is a patch to make HTTPD module lint-compliant. I've splitted several classes and defines into separate files, but still got the error in autoload module in some of them, but I don't know why (I've followed the same steps I did with the sudo module...)

Also, there is a warning about referencing files with puppet:/// without modules/. I guess this is beacuse cert files and so were removed from this module's files folder so, to avoid this warnings, you have to use the --no-puppet_url_without_modules-check when running the puppet-lint command.

Maybe it would be interesstin to add this parameter to the pre-commit check I proposed in #744654 to avoid this check

Thanks!
Comment 1 matanya 2015-02-25 07:24:44 UTC
which class is not in autoload ?
Comment 2 Daniel Mustieles 2015-02-25 09:53:35 UTC
These are the errors shown when runinng the check:

apache_vhost.pp - ERROR: apache::vhost not in autoload module layout on line 3
httpd_redhat.pp - ERROR: httpd::redhat not in autoload module layout on line 3
httpd_vhost.pp - ERROR: httpd::vhost not in autoload module layout on line 3
Comment 3 matanya 2015-02-25 10:02:05 UTC
your includes at the end of the file are wrong.
they should be:

include httpd::apache_vhost

But in fact, you don't need to include them twice you already included them earlier.
Comment 4 Daniel Mustieles 2015-02-25 10:13:19 UTC
I doesn't seem to be ok (yes, I have included some clases twice, that was wrong) but the error is in the apache_vhost.pp and httpd_* files themselves, not related with init.pp.

There might be something wrong in that file, but can't see where...
Comment 5 matanya 2015-02-25 10:17:34 UTC
right, the define should be:

define httpd::apache::vhost

rename httpd_rehat to redhat.pp
rename httpd_vhost to vhost.pp
Comment 6 Andrea Veri 2015-05-18 14:45:49 UTC
Went ahead and cleaned up the httpd class. Thanks Daniel for your original patch!

https://infrastructure.gnome.org/browse/puppet/tree/modules/httpd/manifests