Commit Graph

8 Commits

Author SHA1 Message Date
Ghanshyam Mann 565e1d0c46 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I1a42c6119429e588a8dbb24fb8687dcc4ed2a3a5
2024-02-24 11:40:40 -08:00
James Slagle 9528e8a0b7 Add tasks for run and sync to chrony role
- Moves some of the tasks from config.yml that are actually used to run
  the chronyd into a new dedicated run.yml tasks file.
- Adds a sync.yml with tasks for actually syncing using chronyc.
- Adds some install tasks to install.yml to disable ntpd in case it is
  running as it's not compatible when chronyd is also running.
- Refactors the distro variable loading into a common tasks vars.yml
  that can be reused by the other tasks files
- Adds a symbolic link 'chrony' to the top level directory of the
  project, since the role is named 'chrony', and ansible searches for a
  directory with that name.

Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: I673ce4fc17dd98aa251fdffce73bf9a096aad6fb
2022-09-30 14:37:16 -04:00
Alex Schultz 14b34c20e5 Create chrony-online service
NetworkManager has a dispatcher which may cause the sources to be marked
as disabled. If you don't have any interfaces actually managed with
NetworkManager, we need to have a way to ensure that the sources get
marked enabled on boot. This change adds a chrony-online service that
waits for the network-online.target in order to be able to make chronyd
source online.

Change-Id: Ib1d91852d281c63b2458fc3c0199a5d5fed17056
2022-01-18 09:34:29 -07:00
Alex Schultz 28193e49e6 Use ansible_facts
ansible_distribution and ansible_os_family rely on the facts being
injected as vars. This change switches our vars file lookup to use
ansible_facts instead.

Change-Id: Ia6636bf0223f7e51b6b50950a5c8c1413b4a54b0
2021-02-22 16:27:53 +00:00
Cédric Jeanneret 71b73d6406 Avoid hard-coded value in a generic ansible role
The service will be enabled if and only if its state is set to "running"
or "started".

This change addresses comment in this change:
https://review.opendev.org/#/c/669365/1/tasks/config.yml@14

Change-Id: Ic25772c04047bcd3aaa3e8abc5b947feb66bcbbb
2019-07-08 17:00:52 +02:00
Cédric Jeanneret e289119ba1 Ensure service is enabled
With older tripleo versions, we did disable the service since we were
using ntpd.
If we upgrade from a version using ntpd, the chronyd service won't be
active upon reboot.

Change-Id: Ic59374afdf5ace02ba8243f5163d0950e527ec52
Closes-Bug: #1835368
2019-07-05 16:37:36 +02:00
Alex Schultz 068668b4bb Force chrony restart on config change
We've seen handlers being inconsitently being ignored for some
deployments when we force a handler flush mid-playbook. We'll need to
ensure the config is properly loaded if we want to follow up with
subsequent chronyc application so it's best to always invoke the restart
when the configuration actually changes.

Change-Id: I5292f1b1bd65cef340e1e9742463620effc30d26
2019-03-26 16:52:23 -06:00
Alex Schultz f3352cd634 Initial commit 2018-08-01 17:58:45 -06:00