Fix examples formatting (#345)

This commit is contained in:
Andrew Klychkov 2020-05-16 16:07:51 +03:00 committed by GitHub
commit a7c830f49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 330 additions and 334 deletions

View file

@ -57,7 +57,7 @@ EXAMPLES = '''
state: absent
name: logstash-filter-multiline
- name: install Logstash plugin with alternate heap size
- name: Install Logstash plugin with alternate heap size
logstash_plugin:
state: present
name: logstash-input-beats

View file

@ -129,7 +129,7 @@ author: "Anders Ingemann (@andsens)"
EXAMPLES = '''
# Fetch metrics about the CPU load every 60 seconds,
# the sensu server has a handler called 'relay' which forwards stats to graphite
- name: get cpu metrics
- name: Get cpu metrics
sensu_check:
name: cpu_load
command: /etc/sensu/plugins/system/cpu-mpstat-metrics.rb
@ -139,7 +139,7 @@ EXAMPLES = '''
interval: 60
# Check whether nginx is running
- name: check nginx process
- name: Check nginx process
sensu_check:
name: nginx_running
command: /etc/sensu/plugins/processes/check-procs.rb -f /var/run/nginx.pid
@ -150,7 +150,7 @@ EXAMPLES = '''
# Stop monitoring the disk capacity.
# Note that the check will still show up in the sensu dashboard,
# to remove it completely you need to issue a DELETE request to the sensu api.
- name: check disk
- name: Check disk
sensu_check:
name: check_disk_capacity
state: absent

View file

@ -51,11 +51,11 @@ reasons:
EXAMPLES = '''
# Subscribe to the nginx channel
- name: subscribe to nginx checks
- name: Subscribe to nginx checks
sensu_subscription: name=nginx
# Unsubscribe from the common checks channel
- name: unsubscribe from common checks
- name: Unsubscribe from common checks
sensu_subscription: name=common state=absent
'''