alloy(role): pull in alloy role that works from fux #112
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
renovate
waiting on upstream
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Blocks
#90
alloy role needs documentation
CCCHH/ansible-infra
Reference
CCCHH/ansible-infra!112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/alloy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
You can view your changes at https://staging.infra-docs.hamburg.ccc.de/pr112/
+555 -19211 👀
Das Review krieg ich erst nach der Kassenprüfung hin, sorry
scnr
0b5fa03ac325bf4da29dVery nice moving away from the upstream role to a much simpler custom role!
Please see the comments and also please provide an argument_specs as well as a README, see the
forgejo_runnerroles README as well as thecertbotroles README as references.@ -0,0 +12,4 @@- name: Run cache updateansible.builtin.apt:update_cache: trueThis can be moved into the next step or is there a reason to have this in a separate step?
This is best practice to avoid conflicts
@ -20,1 +1,3 @@when: alloy__additional_configs_dir is defined and alloy__additional_configs_dir != ""---- name: Deploy Grafana Alloy with configtags: [ alloy ]Let's leave the tags at the playbook level.
The tag is still here, we already have the alloy tag in the playbook, so it can just be removed.
@ -23,2 +5,2 @@ansible.builtin.apt:name: rsync- name: Install Alloy on Debianwhen: ansible_facts['distribution'] == "Debian"We only have the Debian case, so having this be distro-specific isn't needed. I would rather have this role just fail, if someone tries to run it on an unsupported platform, instead of just no
alloypackage existing being installed.@ -0,0 +1,76 @@---- name: Install and Setup unpollerDo we want/need unpoller support? If not, I would rather keep this role simpler and remove it.
alloyrole needs documentationThanks for implementing the changes, some small comments.
@ -0,0 +9,4 @@## Required Arguments- `alloy_config_default`: The default Alloy configuration. Recomanded for configuration that hosts of a groupe share.Recomanded -> Recommended
Since
alloy_config_defaulthas a default configuration set, it should be listed under Optional Arguments. I guess another option would be to truly have this as a required configuration and then just setting the config, which is quite specific to the Chaosknoten use case as a group var maybe?@ -0,0 +13,4 @@## Optional Arguments- `alloy_config_additional`: Additional Alloy configuration appended to the default config. Recomanded for per host configurationRecomanded -> Recommended
@ -5,3 +8,3 @@basic_auth {username = "chaos"password = "chaos_password"password = "{{ metrics__chaos_password }}"Maybe have this be an alloy variable which is documented in the README as well? See the comment in the README, if we move this config to the group vars then the this variable can be kept as is.
@ -0,0 +3,4 @@options:alloy_config_default:type: strrequired: trueThis doesn't do anything as a default is provided.
Awesome! Just the removing the tag remaining in the
main.yamland then we can merge this. :3Oops, should have been a request changes :D
Nice, let's go!
147737c7a234f6cfc186alloyrole needs documentation #90