Skip to content

Commit

Permalink
Remove deprecated ocpkey
Browse files Browse the repository at this point in the history
this key should not be used anywhere by now
  • Loading branch information
fridim committed Dec 12, 2024
1 parent 50bc457 commit a83ed79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
4 changes: 0 additions & 4 deletions playbooks/roles/infra-aws-sandbox/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ ddns_server: ipaserver
# yamllint disable-line rule:line-length
opentlc_admin_backdoor: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvZvn+GL0wTOsAdh1ikIQoqj2Fw/RA6F14O347rgKdpkgOQpGQk1k2gM8wcla2Y1o0bPIzwlNy1oh5o9uNjZDMeDcEXWuXbu0cRBy4pVRhh8a8zAZfssnqoXHHLyPyHWpdTmgIhr0UIGYrzHrnySAnUcDp3gJuE46UEBtrlyv94cVvZf+EZUTaZ+2KjTRLoNryCn7vKoGHQBooYg1DeHLcLSRWEADUo+bP0y64+X/XTMZOAXbf8kTXocqAgfl/usbYdfLOgwU6zWuj8vxzAKuMEXS1AJSp5aeqRKlbbw40IkTmLoQIgJdb2Zt98BH/xHDe9xxhscUCfWeS37XLp75J

# yamllint disable-line rule:line-length
ocpkey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8c3m39CoyA3bbgQUui3MGlJOryfg98NwIj8UUOv+PCuTRiyNanZeirRnPzWBtPzrVXeqtfenJo1ehDt0SRoqlUvpE7IUgnJsM7XJaUmKiVJMI4WslgMQMsZQGol7n2h0jwvtXIQp44jTtX61G7HMIUoFjJNXCO5GCrj3w2SVAKMYcznKUXpVmrkjdiHTZHmDxArHKZ7Kew2jCNUMgEq+mcaINPovUybjD17rCiKJDV4JQvLFQH89BFTVkVBsc0+QAe9LoW6l0rMDSemTvFeHy7tD0qGxYehvnHreOH6Nn9j9iOlG0f4R9+M+8KaI3uqibjOhn/kOQLK/1mphg2NnJ

####################################
# variable for RESET operation
####################################
Expand Down Expand Up @@ -101,7 +98,6 @@ aws_nuke_filters_default:

EC2KeyPair:
- opentlc_admin_backdoor
- ocpkey

CloudFormationStack:
- roles
Expand Down
17 changes: 0 additions & 17 deletions playbooks/roles/infra-aws-sandbox/tasks/keypair.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# TODO: create a list of keys and loop over it instead of doing one by one
- name: Import OPENTLC backdoor key
ec2_key:
name: opentlc_admin_backdoor
Expand All @@ -15,19 +14,3 @@
retries: 5
delay: "{{ 30|random(start=3, step=1) }}"
until: r_import is succeeded

- name: Import OPENTLC ocpkey
ec2_key:
name: ocpkey
region: "{{ _region }}"
key_material: "{{ ocpkey }}"
aws_access_key: "{{ assumed_role.sts_creds.access_key }}"
aws_secret_key: "{{ assumed_role.sts_creds.secret_key }}"
session_token: "{{ assumed_role.sts_creds.session_token }}"
loop: "{{ all_regions }}"
loop_control:
loop_var: _region
register: r_import2
retries: 5
delay: "{{ 30|random(start=3, step=1) }}"
until: r_import2 is succeeded

0 comments on commit a83ed79

Please sign in to comment.