GNOME Bugzilla – Bug 745037
Make sudo module lint-compliant
Last modified: 2015-03-27 14:35:36 UTC
Created attachment 297693 [details] [review] Sudo module linted Fixed all the errors and warnings, but there is still one I don't know how to fix: ERROR: sudo::extra not in autoload module layout on line 58 Could you please help me with it?
In a module layout, each class or define needs to be in a separate .pp file and called as needed. so you would want to take this define into a file called extra.pp and have the define there.
Created attachment 297756 [details] [review] Patch updated Right, here is the patch updated. Hope now it's ok. Thanks!
Patch has been merged, thanks Daniel! https://infrastructure.gnome.org/browse/puppet/commit/?id=fb55344bdc7134f120d5209fbbbcfa0f83aae811
As a side note, make sure to not include items that are not classes as you did with sudo::extra, these are defined types which are actually explicitly called from the node files themselves.