Calling external modules

35 views
Skip to first unread message

Tom Tucker

unread,
Oct 3, 2014, 1:06:20 PM10/3/14
to puppet...@googlegroups.com

I am trying to call another class that is not located in the current working directory.  What is the correct way of doing this?


$mypath/modules/web_app/init.pp

if $hostname =~ /^some_www_regex$/ {

    include some_class_A
    include some_class_B
    include app_tier::class_A  # Doesn't work...trying to call an external class...
 }


Thank you for your  time,



Tom Tucker

unread,
Oct 3, 2014, 2:10:14 PM10/3/14
to puppet...@googlegroups.com
Disregard...

In my app_tier::class_A file I needed to define the "class::module".

#cat class_A.pp
class app_tier::class_A {
<blah>

Reply all
Reply to author
Forward
0 new messages