Download step client deb file

This commit is contained in:
Patrik Lundin 2024-10-08 13:33:32 +02:00
parent aca8dd1b22
commit 49ff235bc4
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -51,6 +51,18 @@ class cdn::ca(
content => file('cdn/ca/set-provisioner-pw'), content => file('cdn/ca/set-provisioner-pw'),
} }
file { '/opt/step-ca/init/deb':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
}
exec { 'curl -LO https://dl.smallstep.com/gh-release/cli/gh-release-header/v0.27.4/step-cli_0.27.4-1_amd64.deb':
cwd => '/opt/step-ca/init/deb',
creates => '/opt/step-ca/init/deb/step-cli_0.27.4-1_amd64.deb',
}
if $ca_secrets { if $ca_secrets {
if $ca_secrets['key_password'] { if $ca_secrets['key_password'] {
file { '/opt/step-ca/init/secrets/key-password': file { '/opt/step-ca/init/secrets/key-password':