Skip to content

Commit

Permalink
Merge pull request #273 from ChameleonCloud/soufianej-edge-ip-cleanup…
Browse files Browse the repository at this point in the history
…-hammer

Calico IP cleanup hammer deployment code
  • Loading branch information
JOUNAIDSoufiane committed Jan 24, 2024
2 parents 63ef866 + d4b9a56 commit e4ef2fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
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

0 comments on commit e4ef2fe

Please sign in to comment.