openstack-monitoring/playbooks/memcached-install.yml
Mohammed Naser 08fc5bcea1 initial commit
Change-Id: I87aa6de6ab5c8311ad76396cf4b35396f88d8735
2019-07-31 14:56:13 -04:00

36 lines
1.2 KiB
YAML

---
# Copyright 2019 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Monitor memcached
hosts: memcached
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
roles:
- role: sensu_common
tasks:
- import_tasks: common-tasks/install-plugins.yml
vars:
sensu_plugins: ['sensu-plugins-memcached']
- import_tasks: common-tasks/setup-checks.yml
vars:
sensu_checks:
- name: memcached-stats
command: "check-memcached-stats.rb -h {{ memcached_listen }} -p {{ memcached_port }}"
vars:
sensu_service: memcached
environment: "{{ deployment_environment_variables | default({}) }}"
tags:
- memcached