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

1.1.0 is "always changed" #13

Open
532910 opened this issue Jan 15, 2023 · 3 comments
Open

1.1.0 is "always changed" #13

532910 opened this issue Jan 15, 2023 · 3 comments

Comments

@532910
Copy link

532910 commented Jan 15, 2023

TASK [andrewsomething.do-agent : create temporary file for public key] ******************
changed: [host]

TASK [andrewsomething.do-agent : download public key] ***********************************
changed: [host]

TASK [andrewsomething.do-agent : install public key to keyring] *************************
changed: [host]
@532910 532910 changed the title 1.1.0 is always changed 1.1.0 is "always changed" Jan 15, 2023
@andrewsomething
Copy link
Owner

Not entirely sure how best to handle this. We need to:

  • Downloaded the ASCII armored key from https://repos.insights.digitalocean.com/sonar-agent.asc
  • Convert it to binary format with gpg --dearmor
  • Then install that to /usr/share/keyrings/digitalocean-agent-keyring.gpg

It seems if it is downloaded to a tmp location, Ansible will always download it. Perhaps we can save the ASCII armored key to a permanent location.

@532910
Copy link
Author

532910 commented Jan 16, 2023

BTW

  1. DO provides droplet-agent-keyring packet, could it help somehow? (eg install it without key checking)
  2. Is this ansible role still actual at all? DO provides a checkbox to install it on droplet creation time, and will update sources.list on postinstall: https://docs.digitalocean.com/products/monitoring/how-to/install-agent/

@andrewsomething
Copy link
Owner

Is this ansible role still actual at all? DO provides a checkbox to install it on droplet creation time

Right. That is generally how I install it myself. I originally wrote the role to migrate from the legacy agent to the current one which required manual intervention: https://docs.digitalocean.com/products/monitoring/how-to/upgrade-legacy-agent/ But I've continued to maintain the role as it seems that some people find it useful.

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

2 participants