Commit Graph

38 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
Francesco Pantano 0111661102
Add chrony_config_file_location default to avoid uncontrolled failures
This patch adds a missing config that let any playbook fail if no vars
are passed. Even though it's always good overriding variables, we should
provide defaults for config files like any other first citizen parameter.

Change-Id: I953296e22a6d8310aaf401fd9b13a71c35dbaf6a
2023-05-08 18:14:45 +02:00
James Slagle 62654c88fa Sync defaults for chrony with tripleo-heat-templates
Use the same defaults in the chrony role that are set when we use the
role from tripleo-heat-templates:
https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/deployment/timesync/chrony-baremetal-ansible.yaml

Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: I42c65495e51ecd24447341f1c1c4f02f88be5efe
2022-10-13 07:52:23 -04: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
rabi 7ccf873c82 Change chrony_role_action default to 'all'
As documented we should change the default to 'all'.
Also fixes tox-linters job.

Change-Id: I33bf616bcca62f68437a0c2520cb860194a3a203
2022-05-24 16:40:30 +05:30
Alex Schultz 0dd2ea062d Add centos9 converage
Change-Id: If1ca79b37c1dacf5ddc75b4c8ddd07f85f838616
2022-01-19 12:16:17 -07:00
David Vallee Delisle 1b82e87cdf Replacing chrony-helper with chronyc
There's no helper in centos9.

Change-Id: Iae81ee00baa323fbff3df93029253337b635ec7e
2022-01-19 14:14:20 -05: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 ae5374e14a Switch to centos8 standalone job
This repo still had the centos 7 standalone jobs defined. Let's upgrade
it to centos 8 for now.

Change-Id: I23f95be02a5a3fd025574a4aa68f0b89ed4ff57e
2022-01-17 12:12:15 -07:00
Jeremy Stanley 15ad50777e Correct the tox option for skipping sdist generation
The tox option to skip source distribution building is skipsdist,
but this seems to be often misspelled skipdist instead, which gets
silently ignored and so does not take effect. Correct it
everywhere, in hopes that new projects will finally stop copying
this mistake around.

See https://tox.readthedocs.io/en/latest/config.html#conf-skipsdist
and https://github.com/tox-dev/tox/issues/1388 for details.

Change-Id: I930b16a0834d893080386b40989fa517f1bc343b
2021-06-17 16:55:08 +00:00
jiangzhilin 5580549164 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I7112c11085d646e17fa2beb792a0aeed0d56e66b
2021-05-04 07:43:49 +00: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
Alex Schultz 24f495b820 Fix requirements
Cap ansible at <2.10 and fix hacking

Change-Id: I509b642e2c1ddb95c7d4a94a134f0c4e1b8ff8e2
2021-02-22 09:26:44 -07:00
Hervé Beraud b25e82c0e3 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: I5c93f7e942b1b73023e4e26cdf4a3e5ea957c925
2020-11-09 14:47:08 +00:00
Alex Schultz 9183f75953 Bump pyflakes
We need a python 3.9 compatible version.

Related PyCQA/pyflakes #367

Change-Id: Ief43d5fbad16f86737680841a35f3137e259a7f3
2020-11-09 07:45:36 -07:00
pengyuesheng 03e7fbe5da Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I36ab247a00acfb0cf6c586ef07e6298330e58a95
2019-09-29 11:01:29 +08:00
Zuul d0519724b3 Merge "Fix the misspelling of "configuration"" 2019-09-03 20:22:11 +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
Le Hou 494f3c4163 Update to opendev
Change-Id: Id4e76af62ff4c6d7de9d4085981c8d99133d3168
2019-04-23 10:12:31 +08:00
Zuul 27c1c83b0e Merge "Change openstack-dev to openstack-discuss" 2019-04-23 00:16:30 +00:00
OpenDev Sysadmins bece846c05 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:33:52 +00: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
lijunjie ba70bb0e6e Fix the misspelling of "configuration"
Change-Id: I7b9d0557a6abec1ae4de2ab9cc679238284b21d0
2018-12-27 15:29:35 +08:00
melissaml f1f09db62c Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Ic023d60e68522c1511a4b85334704a0b7fd12e7f
2018-12-05 23:33:33 +08:00
Zuul 550aa62372 Merge "Move default values to defaults" 2018-11-12 03:37:52 +00:00
Zuul f34652e4b0 Merge "Add tripleo-standalone for coverage" 2018-11-12 03:37:52 +00:00
Zuul 49133a8e2f Merge "Remove setup.py check from pep8 job" 2018-11-09 18:36:14 +00:00
Alex Schultz 9baecd0573 Move default values to defaults
The os specific variables are overriding the provided vars so we should
only define things that should not be overridable because they are OS
specific (service names, config file locations, etc)

Change-Id: I2af49137d91c34eeb68353d7438a5ee09c8166c9
Closes-Bug: #1802538
2018-11-09 18:30:05 +00:00
Alex Schultz 20f7d9f64e Add tripleo-standalone for coverage
Change-Id: Ibc496747375f92d8f7d4786ca86f40c58250c7ac
2018-11-09 11:26:37 -07:00
Sean McGinnis aa3f21c899 Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: If922868b53aaff788bc9439c0ce1b05340208704
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 10:11:24 -05:00
huang.zhiping 1c49217241 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I868084c1ba43fdf6487275d453471b8f996f8668
2018-10-19 02:29:54 +00:00
Alex Schultz ed0d7e3bf1 Fix missing folders
The vars, tests and handlers folders are not properly packaged. This
change updates the setup.cfg to include these folders for distribution.

Change-Id: I0d5784c01a681341b50418ef79888ac6d94a5344
2018-10-16 17:00:27 -06:00
Alex Schultz 3257982997 Fix .gitreview
It was imported with an incorrect gerrit url.

Change-Id: Ifc3ed7257b770ad440ba579627e3c2fee585ad50
2018-09-29 16:02:50 +00:00
Alex Schultz e1d3b78459 Add zuul configuration
Change-Id: I19cfad8b68b5a8c2228b3f71c7810b3864e1ad3a
2018-09-29 16:02:32 +00:00
Alex Schultz f9330aca2c Remove zuul configuration
In order to import this into project-config, we need to remove the zuul
configuration first. We'll revert this once imported.
2018-09-18 16:02:52 -06:00
Alex Schultz 9bf57a5b7d Fix gitignore 2018-09-18 16:02:27 -06:00
Alex Schultz f3352cd634 Initial commit 2018-08-01 17:58:45 -06:00