From 2a9ea4cf09ce4194b7e1c8e6ccad803aad64fe6e Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Thu, 24 Oct 2024 13:52:45 +0200 Subject: [PATCH] chore: remove references to crater-azure --- .../envs/dev-example/group_vars/crater.yml | 12 --------- ansible/envs/dev-example/hosts | 3 --- ansible/envs/prod/group_vars/crater.yml | 11 -------- .../crater-azure-1.infra.rust-lang.org.yml | 7 ----- .../crater-azure-2.infra.rust-lang.org.yml | 7 ----- ansible/envs/prod/hosts | 4 --- ansible/playbooks/crater.yml | 27 ------------------- 7 files changed, 71 deletions(-) delete mode 100644 ansible/envs/dev-example/group_vars/crater.yml delete mode 100644 ansible/envs/prod/group_vars/crater.yml delete mode 100644 ansible/envs/prod/host_vars/crater-azure-1.infra.rust-lang.org.yml delete mode 100644 ansible/envs/prod/host_vars/crater-azure-2.infra.rust-lang.org.yml delete mode 100644 ansible/playbooks/crater.yml diff --git a/ansible/envs/dev-example/group_vars/crater.yml b/ansible/envs/dev-example/group_vars/crater.yml deleted file mode 100644 index f1c3fc04b..000000000 --- a/ansible/envs/dev-example/group_vars/crater.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- - -vars_crater_url: http://crater-agent.local -vars_aws_credentials: - role_arn: arn:aws:iam::890664054962:role/crater-agent - # Unfortunately it's not possible to access ECR without an AWS authentication - # token, and there is no way about that. If you have access to AWS feel free - # to put your own token there, otherwise ask the infra team what they can do. - access_key_id: FOOBAR - secret_access_key: FOOBAR -vars_crater_token: example -vars_crater_threads: 2 diff --git a/ansible/envs/dev-example/hosts b/ansible/envs/dev-example/hosts index 4edb6a139..b14d51e42 100644 --- a/ansible/envs/dev-example/hosts +++ b/ansible/envs/dev-example/hosts @@ -3,6 +3,3 @@ [monitoring] # monitoring-server.local - -[crater] -# crater-agent.local diff --git a/ansible/envs/prod/group_vars/crater.yml b/ansible/envs/prod/group_vars/crater.yml deleted file mode 100644 index faec9efa3..000000000 --- a/ansible/envs/prod/group_vars/crater.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- - -# Fetch all the group params from AWS SSM -ssm_crater: "{{ lookup('aws_ssm', '/prod/ansible/crater/', region='us-west-1', shortnames=true, bypath=true, recursive=true) }}" - -vars_aws_credentials: - role_arn: arn:aws:iam::890664054962:role/crater-agent - access_key_id: "{{ ssm_crater['aws-access-key-id'] }}" - secret_access_key: "{{ ssm_crater['aws-secret-access-key'] }}" - -vars_crater_url: https://crater.rust-lang.org diff --git a/ansible/envs/prod/host_vars/crater-azure-1.infra.rust-lang.org.yml b/ansible/envs/prod/host_vars/crater-azure-1.infra.rust-lang.org.yml deleted file mode 100644 index 3cdeaf772..000000000 --- a/ansible/envs/prod/host_vars/crater-azure-1.infra.rust-lang.org.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -# Fetch all the group params from AWS SSM -ssm_crater_azure_1: "{{ lookup('aws_ssm', '/prod/ansible/crater-azure-1/', region='us-west-1', shortnames=true, bypath=true, recursive=true) }}" - -vars_crater_token: "{{ ssm_crater_azure_1['crater-token'] }}" -vars_crater_threads: 15 diff --git a/ansible/envs/prod/host_vars/crater-azure-2.infra.rust-lang.org.yml b/ansible/envs/prod/host_vars/crater-azure-2.infra.rust-lang.org.yml deleted file mode 100644 index fa8980f64..000000000 --- a/ansible/envs/prod/host_vars/crater-azure-2.infra.rust-lang.org.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -# Fetch all the group params from AWS SSM -ssm_crater_azure_2: "{{ lookup('aws_ssm', '/prod/ansible/crater-azure-2/', region='us-west-1', shortnames=true, bypath=true, recursive=true) }}" - -vars_crater_token: "{{ ssm_crater_azure_2['crater-token'] }}" -vars_crater_threads: 15 diff --git a/ansible/envs/prod/hosts b/ansible/envs/prod/hosts index 76f38c40c..10ca2498c 100644 --- a/ansible/envs/prod/hosts +++ b/ansible/envs/prod/hosts @@ -4,10 +4,6 @@ bastion.infra.rust-lang.org [monitoring] monitoring.infra.rust-lang.org -[crater] -crater-azure-1.infra.rust-lang.org -crater-azure-2.infra.rust-lang.org - [playground] play-2.infra.rust-lang.org diff --git a/ansible/playbooks/crater.yml b/ansible/playbooks/crater.yml deleted file mode 100644 index c1d4db334..000000000 --- a/ansible/playbooks/crater.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- - -- hosts: crater - become: yes - become_user: root - - roles: - - - role: common - papertrail_url: "{{ vars_papertrail_url }}" - collect_metrics_from: "{{ global_collect_metrics_from }}" - sudo_users: "{{ global_sudo_users }}" - - - role: docker - images: - region: us-west-1 - update_every: 5min - aws_credentials: "{{ vars_aws_credentials }}" - containers: - crater-agent: - image: 890664054962.dkr.ecr.us-west-1.amazonaws.com/crater:latest - exec: "agent {{ vars_crater_url }} {{ vars_crater_token }} --threads {{ vars_crater_threads }}" - mounts: - "/var/lib/crater-agent-workspace": "/workspace" - "/var/run/docker.sock": "/var/run/docker.sock" - env: - RUST_LOG: crater=trace,rustwide=info