Ask Your Question

How to exit from Puppet Module execution ?

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

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

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

lavaman gravatar image

You want the fail function:

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


Asked: 2015-03-20 00:12:42 -0600

Seen: 1,687 times

Last updated: Mar 20 '15