Skip to content

Commit

Permalink
feat: packer file addition
Browse files Browse the repository at this point in the history
  • Loading branch information
RamaRaju-vj committed Jul 1, 2024
1 parent cc19871 commit 7a90f29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions jenkins.ami.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ build {
destination = "/home/ubuntu/Jenkinsfile"
}

provisioner "file" {
source = "./K8s_config/config.yaml"
destination = "/home/ubuntu/config.yaml"
}

provisioner "shell" {
scripts = [
"./scripts/install.sh",
Expand Down
3 changes: 1 addition & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ sudo rm /etc/caddy/Caddyfile
# Create new Caddyfile for Jenkins
sudo tee /etc/caddy/Caddyfile <<EOF
{
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}
cicd.ramaraju.cloud {
Expand Down Expand Up @@ -168,7 +168,6 @@ sudo apt-get update && sudo apt-get install kubectl -y
# Check Kubectl version
echo "Kubectl $(kubectl version --client)"

echo "$pwd"

# copy the config file to the jenkins container
cd /var/lib/jenkins # on jenkins container
Expand Down

0 comments on commit 7a90f29

Please sign in to comment.