Skip to content

add fixture for the certificate config#100

Merged
evgeni merged 2 commits intomasterfrom
testcerts
Mar 7, 2025
Merged

add fixture for the certificate config#100
evgeni merged 2 commits intomasterfrom
testcerts

Conversation

@evgeni
Copy link
Copy Markdown
Member

@evgeni evgeni commented Mar 5, 2025

No description provided.

@evgeni evgeni marked this pull request as ready for review March 6, 2025 14:35
env = Environment(loader=FileSystemLoader("."), autoescape=select_autoescape())
template = env.get_template("./vars/default_certificates.yml")
context = {'certificates_ca_directory': '/root/certificates',
'ansible_fqdn': 'quadlet.example.com'}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this reuse ssh_config["hostname"] like we do in foremanapi?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, no. ssh_config["hostname"] is the HostName field of the ssh config, but that contains an IP address in our case, so while it's good to connect to, it is not for the cert name.

@evgeni evgeni merged commit 3dacb45 into master Mar 7, 2025
3 checks passed
@evgeni evgeni deleted the testcerts branch March 7, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants