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

Calico IP cleanup hammer deployment code #273

Merged
merged 1 commit into from
Jan 24, 2024
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: 7 additions & 0 deletions roles/hammers/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
hammers_config_path: /etc/hammers
hammers_docker_image: "ghcr.io/chameleoncloud/hammers:latest"
hammers_env_file: /etc/hammers/hammers.env
hammers_kubeconfig_path: /etc/hammers/kubeconfig.yml
hammers_mysql_user: cc_hammers
hammers_mysql_host: "{{ database_address }}"

Expand Down Expand Up @@ -62,4 +63,10 @@ hammers:
calendar: hourly
enabled: "{{ enable_blazar | bool }}"

# Kubernetes/Edge
calico_ip_cleanup:
cmd: "k8s-calico-ip-cleanup --kubeconfig_path {{ hammers_kubeconfig_path }} --dry-run"
calendar: daily
enabled: "{{ enable_k3s | bool}}"

hammers_slack_webhook: "{{ slack_api_url }}"
7 changes: 7 additions & 0 deletions roles/hammers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
path: "{{ hammers_config_path }}"
state: directory

- name: Copy kubeconfig.yml file
become: yes
copy:
src: "{{ kubeconfig_path }}/kubeconfig.yml"
dest: "{{ hammers_kubeconfig_path }}"
mode: 0600

- name: Configure Hammers docker bash wrapper
become: yes
template:
Expand Down
Loading