Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debops.apt]: Ability to write conf files anywhere in /etc/apt #2399

Open
GerMalaz opened this issue Aug 26, 2023 · 0 comments
Open

[debops.apt]: Ability to write conf files anywhere in /etc/apt #2399

GerMalaz opened this issue Aug 26, 2023 · 0 comments

Comments

@GerMalaz
Copy link

Scenario: Have a private repo protected by a client cert.

So have an entry in apt.conf.d like:

`Acquire::https::$repo {
CaInfo "/etc/apt/certs/$repo/ca.crt";

SslCert     "/etc/apt/certs/$repo/$host.crt";
SslKey      "/etc/apt/certs/$repo/host.key";

};`

/etc/apt/certs looks like a good place for these files.
However, I see no way to write these files using the apt role.

Can clone the apt__*conf variables (Generate additional APT configuration files) to write to
"/etc/apt/{{ (item.dest | d(item.path | d(item.name))) }}"

Is there a better way?

@GerMalaz GerMalaz changed the title apt: Ability to write conf files anywhere in /etc/apt [debops.apt]: Ability to write conf files anywhere in /etc/apt Aug 29, 2023
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

No branches or pull requests

1 participant