Module
- Harness Continuous Delivery
Environment
- Infrastructure: Harness Saas
- OS: Mac, Windows or Linux
Issue
I want to deploy an application and while executing, my pipeline failed with the error:
No eligible Delegate was able to confirm that it has the capability to perform [ terraform, GIT:[ https://github.com/******/*****.git](https://github.com/wings-software/terraform.git), tfgitdelegate, GIT:[ https://github.com/******/*****/](https://github.com/wings-software/terraform/), and 1 more... ]. How to resolve the issue?
Resolution
Delegate capability issues can be listed for multiple reasons and vary from use-case to use-case. By default, Terraform is installed at the Delegate startup except for a few versions of Terraform. In this case, you can install Terraform and Git on the Delegate cluster using a Shell Script step picked from Step Library on your Pipeline Studio using the following steps:
- Navigate to Add Step
- Choose Shell Script from Step Library
- Add this command in your shell script step.
- For installing Terraform
if which terraform; then
echo found terraform
else
curl -O https://releases.hashicorp.com/terraform/0.12.18/terraform_0.12.18_linux_amd64.zip
unzip terraform_0.12.18_linux_amd64.zip
chmod 755 terraform
mv terraform /usr/local/bin
fi
- For installing GIT
echo "yes" apt install git
apt update
- Once you add this step and then create a deployment step. Save and Run. You will not have this issue anymore.