Commit Graph

20 Commits

Author SHA1 Message Date
Alfredo Moralejo c867490aa7 Disable auto-discovery for setuptools
Since setuptools release (61.0.0) ansible-role-lunasa-hsm's
package build command (python3 setup.py sdist bdist_wheel) is
finding 'defaults' directory as a python module and including
it in the built package. That's not correct as defaults is just
providing data files properly managed as data_files and there is no
actual python module, setup.py is just used as build/install tooling.

Change-Id: I759d63ede6b9d5ebedf3ccc7dcb808055a0d009a
2024-03-14 12:13:09 +01:00
Douglas Mendizábal 5c101144bc Fix vtl verification
This patch fixes a couple of issues that were causing the NTLS
connection to fail:

* Changed the CN used in the client cert to be the FQDN to ensure that
  the CN and hostname match.

* Modified the scp commands to add the '-O' option to use the legacy scp
  protocol.

Change-Id: I8996872d917ba9cbeaeb2a1c9a25e9db98713252
2023-10-06 11:53:47 -04:00
Douglas Mendizábal 02d9642368 Fix permissions error during client installation
This patch fixes a permissions issue when attempting to run the
installation script from a /tpm directory with the 'noexec' bit set.

Change-Id: If9a2aebaaaf1435db615b15e02e8dc790d1a4781
2023-09-26 13:43:33 -04:00
jiangzhilin 1ae2b5a261 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: Id5f05171b1aa67e4f234ae60b2194031011343ec
2023-09-22 19:05:50 +00:00
Douglas Mendizábal 60bc79198d Fix lint errors
This patch fixes all lint errors to get the linter gate passing again.

Change-Id: I13b1f3fbffae4b75472ef3edae73a701b4d4972d
2023-09-22 13:13:07 -04:00
Dave Wilde (d34dh0r53) 26da379c3a Remove use of ansible_fqdn
The ansible_fqdn fact is no longer passed into the individual roles
in order to speed up deployments [0].  This changes alters the role
to use ansible_facts['fqdn'] which is the same.

* Updated tox.ini to include requirements.txt as well
* Updated tox.ini to skip no-changed-when error

[0]: https://bugs.launchpad.net/tripleo/+bug/1915761

Related-Bug: 1915761
Change-Id: I1314b0e39c4a36740c8ef0c867bbc6fe60409289
2021-06-02 14:43:41 -05:00
Douglas Mendizábal b3981c6f8b Add task to remove clients from HSM
Change-Id: I87f7cb2435f77814169fbad3bd0814d370a546a1
2020-12-08 13:47:42 -06:00
Douglas Mendizábal 1f79d940a6 Ignore mode warning for unarchive
We added "mode: preserve" to the unarchive task to make the linter
happy, but it seems that it does not work as advertised as it
gives an error that "preserve" is an invalid value.

Change-Id: I0a9136857229411101028928948b69ad0f4ad921
2020-09-01 14:30:30 -05:00
Douglas Mendizábal 99dc088753 Fix certificate file name
This patch fixes the file name used for the certificate
generated for each client.

Change-Id: I92390347656e223bcfe270397d33da45fb2566da
2020-08-31 17:12:18 -05:00
Douglas Mendizábal b4eaaeb9cc Add support for High Availability
This patch adds the ability to configure the Luna Network HSM
client to use more than one HSM for high availability (HA) mode.

Change-Id: If0eb393ca970206cc95c7453641f33781eb698b2
2020-07-13 15:41:50 -05:00
Andreas Jaeger ce3e955a1d Small cleanups
setup.cfg: Remove obsolete sections.

tox.ini: Fix typo, set basepython as well.

Change-Id: I44105c3d472493b1821a37e2c2dbe9aff9828cbb
2020-04-29 22:15:32 +02:00
Douglas Mendizábal 235bfe94ed Use underscore instead of dash
Use underscore (_) for the role's directory name instead of using
a dash (-).

Change-Id: I4e8a734147f683ec87cdb27a990a5ad26906608d
2020-04-29 14:43:44 -05:00
Douglas Mendizábal d131542f87 Set ha_slot fact
Change-Id: I77cb76c1d1066ce4bddb50747b0f6f45f5fc1815
2020-04-28 16:45:40 -05:00
Douglas Mendizábal ad607397a4 Use ansible expect task instead of expect command
Change-Id: Iba56ceb85278563d00a0cb3f019a9097c06a2066
2020-04-28 10:57:27 -05:00
Douglas Mendizábal 7e610873a9 Add zuul jobs
Change-Id: I825abea71dc1f9bcee038a60ac6d23b66c05c7df
2020-04-27 18:47:07 -05:00
Douglas Mendizábal c33a9a7844 Remove WIP hieradata tasks 2020-04-27 11:58:31 -05:00
Douglas Mendizábal 4049e84bc3 Fix yaml syntax errors 2020-04-27 10:54:34 -05:00
Douglas Mendizábal a29bb30fb9 Check for errors in lunacm commands
Also stop using password for the list-ha-groups script since we don't
care about the sync status.
2020-04-23 16:31:29 -05:00
Douglas Mendizábal 95fb95bc97 Remove zuul config 2020-04-23 12:03:57 -05:00
Ade Lee a0dbe15912 Initial commit 2020-04-23 15:01:05 +00:00