mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Add Riak cluster join
This commit is contained in:
parent
ac537d9c26
commit
186530652a
@ -33,10 +33,24 @@ def start():
|
||||
|
||||
def stop():
|
||||
'''
|
||||
Stop riak
|
||||
Stop Riak
|
||||
|
||||
CLI Example::
|
||||
|
||||
salt '*' riak.stop
|
||||
'''
|
||||
return __salt__['cmd.retcode']('riak stop')
|
||||
|
||||
|
||||
def cluster_join(riak_user=None, riak_host=None):
|
||||
'''
|
||||
Join a Riak cluster
|
||||
|
||||
CLI Example::
|
||||
|
||||
salt '*' riak.cluster_join <user> <host>
|
||||
'''
|
||||
if not all((riak_user, riak_host)):
|
||||
return False
|
||||
return __salt__['cmd.retcode']('riak-admin cluster join {0}@{1}'.format(riak_user, riak_host))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user