Ask Your Question
1

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

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

Eleazar gravatar image

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

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?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Comments

Thanks a lot! Gonna make an app then.

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

Stats

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

Seen: 97 times

Last updated: Oct 21 '13