Unquote strings that do not need quotes and retab - clustering/consul.py (#18834)

pull/19076/head
Fabio Alessandro Locati 8 years ago committed by John R Barker
parent b811350f00
commit ee27c688fd

@ -172,59 +172,58 @@ options:
""" """
EXAMPLES = ''' EXAMPLES = '''
- name: register nginx service with the local consul agent - name: register nginx service with the local consul agent
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
- name: register nginx service with curl check - name: register nginx service with curl check
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
script: "curl http://localhost" script: curl http://localhost
interval: 60s interval: 60s
- name: register nginx with an http check - name: register nginx with an http check
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
interval: 60s interval: 60s
http: "http://localhost:80/status" http: http://localhost:80/status
- name: register external service nginx available at 10.1.5.23 - name: register external service nginx available at 10.1.5.23
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
service_address: 10.1.5.23 service_address: 10.1.5.23
- name: register nginx with some service tags - name: register nginx with some service tags
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
tags: tags:
- prod - prod
- webservers - webservers
- name: remove nginx service - name: remove nginx service
consul: consul:
service_name: nginx service_name: nginx
state: absent state: absent
- name: create a node level check to test disk usage - name: create a node level check to test disk usage
consul: consul:
check_name: Disk usage check_name: Disk usage
check_id: disk_usage check_id: disk_usage
script: "/opt/disk_usage.py" script: /opt/disk_usage.py
interval: 5m interval: 5m
- name: register an http check against a service that's already registered - name: register an http check against a service that's already registered
consul: consul:
check_name: nginx-check2 check_name: nginx-check2
check_id: nginx-check2 check_id: nginx-check2
service_id: nginx service_id: nginx
interval: 60s interval: 60s
http: "http://localhost:80/morestatus" http: http://localhost:80/morestatus
''' '''
try: try:

Loading…
Cancel
Save