Ask Your Question
0

configure init.pp to deploy software to different OS versions

asked 2018-01-17 15:10:54 -0500

ck12986 gravatar image

I need to deploy two versions of repo files to servers with two RH versions, RH6 and RH7, how do I configure init.pp to accomplish this task

edit retag flag offensive close merge delete

Comments

You can use resource-like class declarations https://puppet.com/docs/puppet/latest/lang_classes.html#using-resource-like-declarations defining its parameters via conditionally evaluated variables.

Kai Burghardt gravatar imageKai Burghardt ( 2018-01-18 05:02:25 -0500 )edit

This is fine if it was an rpm to deploy, but the files I am trying to deploy are simple ASCII files where each file corresponds to their respective operating system.

ck12986 gravatar imageck12986 ( 2018-01-18 14:34:13 -0500 )edit
1

So? https://puppet.com/docs/puppet/latest/lang_conditional.html#case-statements A little more details would be perfect, you know. Till this day I have no idea what `init.pp` you're talking about, yeah.

Kai Burghardt gravatar imageKai Burghardt ( 2018-01-19 08:24:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-22 00:49:26 -0500

Mr_Sharma gravatar image

I guess this is the duplicate question which is answered here with few examples:

https://ask.puppet.com/question/33111/how-to-deploy-different-files-to-multiple-os/

In case, this question expecting a different answer which is explained above please edit your question to add more details.

edit flag offensive delete link more

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-01-17 15:10:54 -0500

Seen: 27 times

Last updated: Jan 22