Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: i have removed test file #35

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 01-jenkins-setup/ansible/jenkins-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: all
become: true
remote_user: ubuntu

#variable
vars:
public_key_path: "/devops-tools/jenkins/id_rsa.pub"

Expand Down
21 changes: 7 additions & 14 deletions 01-jenkins-setup/terraform/agent/main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
provider "aws" {
region = "us-west-2"
}

module "ec2_instance" {
source = "../modules/ec2"

instance_name = "jenkins-agent"
ami_id = "ami-0e68ab34763bcba1f"
instance_type = "t2.small"
key_name = "techiescamp"
subnet_ids = ["subnet-058a7514ba8adbb07", "subnet-0dbcd1ac168414927", "subnet-032f5077729435858"]
instance_count = 1
}
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACAPcUFi6318XkLWRArufbfmVG0mcAAsxXo2eOyvRENh4QAAAKCqPl7Lqj5e
ywAAAAtzc2gtZWQyNTUxOQAAACAPcUFi6318XkLWRArufbfmVG0mcAAsxXo2eOyvRENh4Q
AAAECVlLmW0tQp/6jh8BGVmkQJRDEQJJt685k3fOq7/P6t7Q9xQWLrfXxeQtZECu59t+ZU
bSZwACzFejZ47K9EQ2HhAAAAF3NhaGl0aGlrYW1pZGlAZ21haWwuY29tAQIDBAUG
-----END OPENSSH PRIVATE KEY-----
1 change: 1 addition & 0 deletions 01-jenkins-setup/terraform/agent/main.tf.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA9xQWLrfXxeQtZECu59t+ZUbSZwACzFejZ47K9EQ2Hh [email protected]