From 53339129f1e94da492cd0f2f77daaa01e3c5edfd Mon Sep 17 00:00:00 2001 From: kencho Date: Mon, 9 Sep 2024 15:24:08 +0800 Subject: [PATCH] refactr: make the cnhk url working --- ops/infrastructure/inventories/hosts | 2 +- ops/scripts/ansible_init.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/infrastructure/inventories/hosts b/ops/infrastructure/inventories/hosts index 634e34b40e..d2384b079b 100644 --- a/ops/infrastructure/inventories/hosts +++ b/ops/infrastructure/inventories/hosts @@ -19,7 +19,7 @@ grafana_contact_smtp_from_name = "{{ lookup('ini', 'grafana_contact_smtp_from_na [type_aws_instance:vars] gitlab_url = "https://gitlab.com/api/v4/projects/{{ lookup('ini', 'gitlab_project type=properties file=ansible.properties') | urlencode | regex_replace('/','%2F') }}" -gitlab_misc_url = "https://gitlab.com/api/v4/projects/gigascience{{ lookup('ini', 'gitlab_misc type=properties file=ansible.properties') | urlencode | regex_replace('/','%2F') }}" +gitlab_misc_url = "https://gitlab.com/api/v4/projects/{{ lookup('ini', 'gitlab_misc type=properties file=ansible.properties') | urlencode | regex_replace('/','%2F') }}" ansible_ssh_private_key_file = "{{ lookup('ini', 'ssh_private_key_file type=properties file=ansible.properties') }}" ansible_ssh_common_args="-o ProxyCommand='ssh -W %h:%p -q {{ lookup('ini', 'ec2_bastion_login_account type=properties file=ansible.properties') }} -i {{ lookup('ini', 'ssh_private_key_file type=properties file=ansible.properties') }}'" ansible_user = "centos" diff --git a/ops/scripts/ansible_init.sh b/ops/scripts/ansible_init.sh index 2e18abccc9..8bd9818435 100755 --- a/ops/scripts/ansible_init.sh +++ b/ops/scripts/ansible_init.sh @@ -76,7 +76,7 @@ echo "wasabi_secret_access_key = $wasabi_secret_access_key" >> ansible.propertie echo "deployment_target = $deployment_target" >> ansible.properties echo "gitlab_project = $gitlab_project" >> ansible.properties -echo "gitlab_misc = cnhk-infra" >> ansible.properties +echo "gitlab_misc = gigascience/cnhk-infra" >> ansible.properties echo "ssh_private_key_file = $aws_ssh_key" >> ansible.properties echo "gitlab_private_token= $GITLAB_PRIVATE_TOKEN" >> ansible.properties