Ask Your Question
0

How to exit from Puppet Module execution ?

asked 2015-03-20 00:12:42 -0500

ankur0101 gravatar image

Hi, Suppose I have a module which requires RHEL to be installed. Using facts I can come to know which linux distro is under the hood. What I want to do is,

if(OS != "RHEL") {

exit and stop execution

}

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-20 11:57:48 -0500

lavaman gravatar image

You want the fail function:

https://docs.puppetlabs.com/reference...

You just pass it a string for the error text.

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: 2015-03-20 00:12:42 -0500

Seen: 1,023 times

Last updated: Mar 20 '15