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:
parent
3476db026e
commit
c00fec7366
14
playbooks/ntpstat.yaml
Normal file
14
playbooks/ntpstat.yaml
Normal 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
|
28
roles/ntpstat/meta/main.yml
Normal file
28
roles/ntpstat/meta/main.yml
Normal 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: []
|
5
roles/ntpstat/tasks/main.yml
Normal file
5
roles/ntpstat/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Run ntpstat
|
||||
# ntpstat returns 0 if synchronised and non-zero otherwise:
|
||||
command: ntpstat
|
||||
changed_when: False
|
10
roles/ntpstat/vars/main.yml
Normal file
10
roles/ntpstat/vars/main.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user