??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
ßUdac @` s° d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d d
l Z d d
l
Z
d d l m Z d d l
m Z d
„ Z d „ Z e d k r¬ e ƒ n d
S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_byso
---
module: riak
short_description: This module handles some common Riak operations
description:
- This module can be used to join nodes to a cluster, check
the status of the cluster.
version_added: "1.2"
author:
- "James Martin (@jsmartin)"
- "Drew Kerrigan (@drewkerrigan)"
options:
command:
description:
- The command you would like to perform against the cluster.
choices: ['ping', 'kv_test', 'join', 'plan', 'commit']
config_dir:
description:
- The path to the riak configuration directory
default: /etc/riak
http_conn:
description:
- The ip address and port that is listening for Riak HTTP queries
default: 127.0.0.1:8098
target_node:
description:
- The target node for certain operations (join, ping)
default: riak@127.0.0.1
wait_for_handoffs:
description:
- Number of seconds to wait for handoffs to complete.
wait_for_ring:
description:
- Number of seconds to wait for all nodes to agree on the ring.
wait_for_service:
description:
- Waits for a riak service to come online before continuing.
choices: ['kv']
validate_certs:
description:
- If C(no), SSL certificates will not be validated. This should only be used
on personally controlled sites using self-signed certificates.
type: bool
default: 'yes'
version_added: 1.5.1
s
# Join's a Riak node to another node
- riak:
command: join
target_node: riak@10.1.1.1
# Wait for handoffs to finish. Use with async and poll.
- riak:
wait_for_handoffs: yes
# Wait for riak_kv service to startup
- riak:
wait_for_service: kv
N( t
AnsibleModule( t fetch_urlc C` sF d | } | j | ƒ \ } } } | d k r> d | k r> t St Sd S( Ns %s ringreadyi s TRUE All nodes agree on the ring( t run_commandt Truet False( t modulet riak_admin_bint cmdt rct outt err( ( sF /usr/lib/python2.7/site-packages/ansible/modules/database/misc/riak.pyt
ring_checkU s
c C` s) t d t d t d t d d d d d d d d
g ƒ d t d d d
d ƒ d t d t d d ƒ d t d d d t ƒ d t d t d
d ƒ d t d t d
d ƒ d t d t d d d d g ƒ d t d d d
d ƒ ƒ ƒ } | j j d ƒ } | j j d ƒ } | j j d ƒ } | j j d ƒ } | j j d ƒ } | j j d ƒ } | j d ƒ } | j d ƒ } t j ƒ d } x t rõt j ƒ | k r | j d d ƒ n t
| d | d! t d" d# ƒ\ }
} | d$ d% k rå|
j ƒ } Pn t j d# ƒ quWy t
j | ƒ }
Wn! t k
r,| j d d&