Ask Your Question
0

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

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

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

Comments

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 -0500 )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 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Comments

That makes sense, nice find!

DarylW gravatar imageDarylW ( 2018-10-19 07:54:01 -0500 )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

Stats

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

Seen: 38 times

Last updated: Oct 18