Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

allow options passed to an action #44

Closed
thedavidwhiteside opened this issue Jun 21, 2016 · 2 comments
Closed

allow options passed to an action #44

thedavidwhiteside opened this issue Jun 21, 2016 · 2 comments
Assignees
Milestone

Comments

@thedavidwhiteside
Copy link
Collaborator

allow options passed to an action, to resolve in the action dict. if an action was defined to use limit={{option.limit}}, this should be definable through options in limit=something.

For example:
outbit> actions add category=/services/webserver action=restart plugin=ansible source_url=”git://...” git_login={{ gitlogin }} git_key={{ gitkey }} playbook=test.yml sudo=yes user={{ login.name }} private-key={{ login.key }} limit={{ option.limit }}

should be usable where the limit is set to testservers
outbit> services webserver restart limit=testservers

@thedavidwhiteside
Copy link
Collaborator Author

example:
outbit> actions add category=/testing action=dw plugin=command command_run="{{option.cmd}}" name=testingdlw desc="testing dlw"

outbit> testing dw cmd=pwd
.../user/bin

@thedavidwhiteside
Copy link
Collaborator Author

{{secret.rootpw}} is now how secret variables are accessed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant