Add call_highstate function to the state minion module

This commit is contained in:
Thomas S Hatch 2011-05-28 09:50:04 -06:00
parent 81829e3d7b
commit e52aca24a8

View File

@ -50,3 +50,12 @@ def template_str(tem):
st_ = salt.state.State(__opts__)
return st_.call_template_str(tem)
def highstate():
'''
Retrive the state data from the salt master for this minion and execute it
CLI Example:
salt '*' state.highstate
'''
st_ = salt.state.State(__opts__)
return st_.call_highstate()