Add ntpstat role

This patch adds the ntpstat role created from
validations/ntpstat.yaml.

Change-Id: I9af242427b513c38b3a2ed9e931500941c3a51df
Implements: blueprint validation-framework
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2019-02-25 15:08:38 +01:00
parent 3476db026e
commit c00fec7366
4 changed files with 57 additions and 0 deletions

14
playbooks/ntpstat.yaml Normal file
View File

@ -0,0 +1,14 @@
---
- hosts: overcloud
vars:
metadata:
name: Verify all deployed nodes have their clock synchronised
description: >
Each overcloud node should have their clocks synchronised.
The deployment should configure and run ntpd. This validation verifies
that it is indeed running and connected to an NPT server on all nodes.
groups:
- post-deployment
roles:
- ntpstat

View File

@ -0,0 +1,28 @@
galaxy_info:
author: TripleO Validations Team
company: Red Hat
license: Apache
min_ansible_version: 2.4
platforms:
- name: CentOS
versions:
- 7
- name: RHEL
versions:
- 7
categories:
- cloud
- baremetal
- system
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []

View File

@ -0,0 +1,5 @@
---
- name: Run ntpstat
# ntpstat returns 0 if synchronised and non-zero otherwise:
command: ntpstat
changed_when: False

View File

@ -0,0 +1,10 @@
---
metadata:
name: Verify all deployed nodes have their clock synchronised
description: >
Each overcloud node should have their clocks synchronised.
The deployment should configure and run ntpd. This validation verifies
that it is indeed running and connected to an NPT server on all nodes.
groups:
- post-deployment