Ask Your Question
0

How to pass parameters to a require module in profile ?

asked 2017-06-05 14:59:45 -0600

CBR gravatar image

Suppose, I have a module called rcb_jdk which installs jdk and it takes three parameters (rcb_jdk::source, rcb_jdk::target, rcb_jdk::user).

When I require this module in a profile class lets say, how do I pass source,target and user from within profile/data/*.yaml ?

class profile::jdkinstall () {
     require rcb_jdk
}

I just wanted to know if I can define those parameters from within puppet::/modules/profile/data/module.yaml file.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-06-11 06:00:13 -0600

CBR gravatar image

I'm answering my own question.

You have to mention full namespace that is profile::jdkinstall::rcb_jdk::source in the yaml files.

edit flag offensive delete link more
0

answered 2017-06-09 12:41:54 -0600

Red Cricket gravatar image

In one of your profile/data/*yaml files you would have these lines:

rcb_jdk::source: whatever
rcb_jdk::target: whatever
rcb_jdk::user: whoever
edit flag offensive delete link more

Comments

I figured that out after I posted this question. It doesn't work that way. You have to mention full namespace that is profile::jdkinstall::rcb_jdk::source in the yaml files.

CBR gravatar imageCBR ( 2017-06-11 05:58:54 -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

Stats

Asked: 2017-06-05 14:59:45 -0600

Seen: 105 times

Last updated: Jun 11