Skip to content

Commit

Permalink
use user provided password to prime registry
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-shilimkar committed Nov 12, 2024
1 parent 6ecab8a commit 1090cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "aws_instance" "ec2-instance" {
docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged -e CATTLE_BOOTSTRAP_PASSWORD=${var.BTPASSWORD} rancher/rancher:${var.rancher_version}
elif [ "${var.registry}" == "prime" ]; then
#Install Rancher from prime repository
docker run -d --privileged --restart=unless-stopped -p 80:80 -p 443:443 -e CATTLE_AGENT_IMAGE=stgregistry.suse.com/rancher/rancher-agent:${var.rancher_version} stgregistry.suse.com/rancher/rancher:${var.rancher_version}
docker run -d --privileged --restart=unless-stopped -p 80:80 -p 443:443 -e CATTLE_BOOTSTRAP_PASSWORD=${var.BTPASSWORD} CATTLE_AGENT_IMAGE=stgregistry.suse.com/rancher/rancher-agent:${var.rancher_version} stgregistry.suse.com/rancher/rancher:${var.rancher_version}
else
echo "Invalid registry option. Exiting."
exit 1
Expand Down

0 comments on commit 1090cd5

Please sign in to comment.