Skip to content

Retries for installing neu apt key #11

@joerg

Description

@joerg

Keyservers tend to be offline from time to time and addidtional to iss #7 from hedgehog the apt-key adv should have a certain number of retries and a retry_delay
Somehting like:

execute "install-key #{new_resource.key}" do
   command "apt-key adv --keyserver #{new_resource.keyserver} --recv #{new_resource.key}"
   action :nothing
   retries 3
   retry_delay 5
end.run_action(:run)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions