Skip to content

Update grafana to v10 using Ark rpms #664

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

Merged
merged 10 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/fatimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- LEAFCLOUD
- SMS
- ARCUS
cleanup_on_failure:
description: Cleanup Packer resources on failure
type: boolean
required: true
default: true

jobs:
openstack:
Expand Down Expand Up @@ -78,7 +83,7 @@ jobs:
packer init .

PACKER_LOG=1 packer build \
-on-error=${{ vars.PACKER_ON_ERROR }} \
-on-error=${{ github.event.inputs.cleanup_on_failure && 'cleanup' || 'abort' }} \
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
-var "source_image_name=${{ matrix.build.source_image_name }}" \
-var "image_name=${{ matrix.build.image_name }}" \
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/dnf_repos/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ dnf_repos_filenames:
appstream: 'Rocky-AppStream'
crb: 'Rocky-PowerTools'
extras: 'Rocky-Extras'
grafana: 'grafana'
'9':
baseos: 'rocky'
appstream: 'rocky'
crb: 'rocky'
extras: 'rocky-extras'
grafana: 'grafana'

dnf_repos_version_filenames: "{{ dnf_repos_filenames[ansible_distribution_major_version] }}"

Expand All @@ -33,6 +35,9 @@ dnf_repos_default_repolist:
- file: ceph
name: Ceph
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.ceph[ansible_distribution_major_version] | appliances_repo_to_subpath }}"
- file: "{{ dnf_repos_version_filenames.grafana }}"
name: grafana
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.grafana[ansible_distribution_major_version] | appliances_repo_to_subpath }}"

dnf_repos_openhpc_repolist:
- name: OpenHPC
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/pulp_site/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pulp_site_rpm_info:
subpath: "{{ appliances_pulp_repos.openhpc_updates[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}"
- name: "ceph-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.ceph[pulp_site_target_distribution_version_major].timestamp }}"
subpath: "{{ appliances_pulp_repos.ceph[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}"
- name: "grafana-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.grafana.timestamp[pulp_site_target_distribution_version_major].timestamp }}
subpath: "{{ appliances_pulp_repos.grafana[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}"

pulp_site_rpm_repo_defaults:
remote_username: "{{ pulp_site_upstream_username }}"
Expand Down
4 changes: 2 additions & 2 deletions environments/.stackhpc/tofu/cluster_image.auto.tfvars.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cluster_image": {
"RL8": "openhpc-RL8-250423-1606-b61e2f1a",
"RL9": "openhpc-RL9-250423-1606-b61e2f1a"
"RL8": "openhpc-RL8-250506-1259-abb6394b",
"RL9": "openhpc-RL9-250506-1259-abb6394b"
}
}
11 changes: 11 additions & 0 deletions environments/common/files/grafana/grafana.repo.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ ansible_managed | comment }}
[grafana]
baseurl = {{ appliances_pulp_url }}/pulp/content/{{ appliances_pulp_repos.grafana[ansible_distribution_major_version] | appliances_repo_to_subpath }}
enabled = 0
name = grafana
async = 1
gpgcheck = 0
{% if 'dnf_repos' in group_names and dnf_repos_password is defined %}
password = {{ dnf_repos_password }}
username = {{ dnf_repos_username }}
{% endif %}
5 changes: 4 additions & 1 deletion environments/common/inventory/group_vars/all/grafana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# See: https://github.com/cloudalchemy/ansible-grafana
# for variable definitions.
grafana_version: '9.5.21'
grafana_version: '10.4.18'

# need to copy some role defaults here so we can use in inventory:
grafana_port: 3000
Expand Down Expand Up @@ -108,3 +108,6 @@ _grafana_auth_anon_cfg:
org_role: Viewer
grafana_auth: "{{ _grafana_auth_anon_cfg if grafana_auth_anonymous | bool else {} }}"
_grafana_auth_is_anonymous: "{{ grafana_auth.anonymous | default({}) | length > 0 }}"

# use ark or pulp for grafana as upstream packages disappear:
grafana_yum_repo_template: "{{ appliances_repository_root }}/environments/common/files/grafana/grafana.repo.j2"
7 changes: 7 additions & 0 deletions environments/common/inventory/group_vars/all/timestamps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,10 @@ appliances_pulp_repos:
'9':
path: OpenHPC/3/updates/EL_9
timestamp: 20241218T154614
grafana:
'8':
path: grafana/oss/rpm
timestamp: 20250505T025259
'9':
path: grafana/oss/rpm
timestamp: 20250505T025259