Ask Your Question

Is puppet-lint busted with respect to autoload module layout ?

asked 2018-10-04 08:31:33 -0600

It complains about this:

# Class: sandbox

class sandbox{ 
  # A Testing Sandbox for PUppet Code
  include 'stdlib'

  notify{'Hello from the Sandbox':}

puppet-lint 2.3.3 Came with pdk

edit retag flag offensive close merge delete


Can you elaborate? Is it because your above class isn't in the proper module structure? modules/sandbox/init.pp, with the contents above?

DarylW gravatar imageDarylW ( 2018-10-04 08:42:09 -0600 )edit

My apologies for not being clearer, but you hit the nail on the head. That is "modules/sandbox/init.pp"

LinuxDan gravatar imageLinuxDan ( 2018-10-04 15:17:02 -0600 )edit

Puppet-lint has the same complaint about a new module created by PDK. My opinion that this is busted is reinforced. Is there any documentation out there that defines/describes autoload module layout in a way that a n00b can understand it ?

LinuxDan gravatar imageLinuxDan ( 2018-10-09 11:42:08 -0600 )edit

@LinuxDan, does the description of the layout at this page clear things up? .

stefanlasiewski gravatar imagestefanlasiewski ( 2018-10-22 13:51:34 -0600 )edit

Not really. To use Code Manager with local modules, the git project name needs to be [user name]-[module name] and if you do a straight “git clone”, that’s what you get. I need to do it like this: git clone git:// foobar

LinuxDan gravatar imageLinuxDan ( 2018-10-22 17:19:30 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2018-10-18 08:59:07 -0600

I found the answer !

The module directory needs to be ONLY the module name, not forge_user-module_name

I think PDK changed its behavior recently because I tried

pdk new module linuxdan-foobar

and got a directory named foobar rather than linuxdan-foobar as I got previously

edit flag offensive delete link more


That makes sense, nice find!

DarylW gravatar imageDarylW ( 2018-10-19 07:54:01 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-10-04 08:31:33 -0600

Seen: 170 times

Last updated: Oct 18