Compare commits
6 Commits
add-gitlab
...
add-grafan
| Author | SHA1 | Date | |
|---|---|---|---|
| 04179b04eb | |||
| 5cac062a21 | |||
| 45f51b67b1 | |||
| 09ffb32784 | |||
| 6fccc69e03 | |||
| bafa282482 |
@@ -2,6 +2,7 @@
|
||||
grafana_alloy_version: "1.17.1"
|
||||
grafana_alloy_config_dir: "/etc/alloy"
|
||||
grafana_alloy_data_dir: "/var/lib/alloy"
|
||||
grafana_alloy_ui_port: 12345
|
||||
grafana_alloy_loki_port: 3100
|
||||
grafana_alloy_loki_url: "http://localhost:{{ grafana_alloy_loki_port }}/loki/api/v1/push"
|
||||
grafana_alloy_log_paths:
|
||||
|
||||
@@ -15,6 +15,15 @@ platforms:
|
||||
cgroupns_mode: host
|
||||
privileged: true
|
||||
|
||||
- name: ubuntu
|
||||
image: geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2404}-ansible:latest
|
||||
pre_build_image: true
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
cgroupns_mode: host
|
||||
privileged: true
|
||||
|
||||
provisioner:
|
||||
name: ansible
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
# kics-scan ignore-block
|
||||
- name: "Check if Alloy is ready"
|
||||
ansible.builtin.uri:
|
||||
url: "http://localhost:12345/-/ready"
|
||||
url: "http://localhost:{{ grafana_alloy_ui_port }}/-/ready"
|
||||
return_content: true
|
||||
status_code: 200
|
||||
method: GET
|
||||
|
||||
@@ -37,6 +37,11 @@
|
||||
fail_msg: "alloy version {{ grafana_alloy_version }} is not installed or not working correctly"
|
||||
|
||||
rescue:
|
||||
- name: "Install | Update apt cache on Debian"
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
when: ansible_facts["os_family"] == "Debian"
|
||||
|
||||
- name: "Install | Ensure unzip is present"
|
||||
ansible.builtin.package:
|
||||
name: "unzip"
|
||||
|
||||
Reference in New Issue
Block a user