Ask Your Question

How can I make an mcollective agent's action require a filter at all times?

asked 2013-10-21 01:37:18 -0600

Eleazar gravatar image

updated 2013-10-21 01:39:04 -0600

I have an mcollective agent in which some actions are dangerous if performed without identity filters (like say, restoring a backup).

Is it possible for an agent's action to always require an identity filter, and otherwise, report an error if no identity filter is provided?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-21 05:32:35 -0600

Wrapping it in an MCollective application gives you this option, see for example the package or service applications for how to do this. They both test to see whether the filter is empty and raise a query to the user if so.

edit flag offensive delete link more


Thanks a lot! Gonna make an app then.

Eleazar gravatar imageEleazar ( 2013-10-21 16:07:47 -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

1 follower


Asked: 2013-10-21 01:37:18 -0600

Seen: 99 times

Last updated: Oct 21 '13