Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/deploy-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:

- name: Scan VM Host Key
run: |
ssh-keyscan -H 135.116.196.120 >> ~/.ssh/known_hosts
ssh-keyscan -H 4.223.70.80 >> ~/.ssh/known_hosts

- name: Run Playbook
run: |
ansible-playbook -i infra/inventory.ini ansible/site.yml \
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ Thumbs.db

# Ansible
local_secrets.yml
id_rsa
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Rancher deployment (Kubernetes): https://devsecops.stud.k8s.aet.cit.tum.de

~Azure deployment (Docker Compose): http://135.116.196.120/~ _Currently unavailable since we ran out of credits, will be setup again soon_
Azure deployment (Docker Compose): http://4.223.70.80/

Coverage reports: https://aet-devops26.github.io/team-devsecops/

Expand Down
Empty file removed infra/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions infra/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions infra/id_rsa.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCEoD/FM5r6/dGFx5/5wu29zPXq7MyYe85wgCz7yXukKMBGjqcRhyzuiBDNxUON3SL3xL1T6H9/DA0wmSBoAvvY6QeKdBz5LTLl29Ot84ZI3WivwJdOo/uqokOqU+HDGHQ46yUWe6NcBndwha3QkBU7++HaSzt9WuLozUjvWWkplYWlGtB3khqngJGCDo8Oh63ekXuJYdbfwi7g/rAO9/ipVyCGsTg8oJAItPyQYd8MgBYQMmOoO3k073XDFaBI9TO+WZ3m8eSmzyTyV8pQlFn/Yl7d63SWOLcfGwgIHlFNWhUyoB+FlBKBF3LUpi+negOWbHzL5sKzaJGj9UMvT1MVPcAmd6Fgv7bHbtdhN8x4tCrYLlVKDHTEp1m8aIaa6Y7lIsyvL8R1hH9jAQU4xgN6do7d/fiIMxQrdWIeMSbbvDRGdYI/e51zF7m7Iq5l6gvu8IWU7tX40zyXIaLdPIAYH+DyhQOCCk2CY7QUlU9+Br3SrRGbcpcXV3Gj7IiIf6IDSrr4ZXlB8VbOMpQu9yywHhsdLTiu50HNEqtKMDriAPUzZqRlHj+ZZfQY+Xmbs0lPhPMy5hY3kxcOsnG26jwbEf2iY2z5I8YNM0Jxb6KP0CSHcKHiVlopBaofre3md9Yn0Wq7FWga0h3NfM8wpbooTTq4o5NGD6Y6LrEl4n9glw== dave@wolfsburg
4 changes: 2 additions & 2 deletions infra/inventory.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[web]
135.116.196.120
4.223.70.80

[all:vars]
ansible_user=azureuser
ansible_ssh_private_key_file=~/.ssh/id_rsa
ansible_ssh_common_args='-o StrictHostKeyChecking=no'
ansible_python_interpreter=/usr/bin/python3.10
ansible_python_interpreter=/usr/bin/python3.10
4 changes: 2 additions & 2 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "azurerm_linux_virtual_machine" "vm" {

admin_ssh_key {
username = "azureuser"
public_key = file("~/.ssh/id_rsa.pub")
public_key = file("./id_rsa.pub")
}

os_disk {
Expand Down Expand Up @@ -103,4 +103,4 @@ resource "azurerm_network_interface_security_group_association" "nsg_assoc" {

output "public_ip" {
value = azurerm_public_ip.pip.ip_address
}
}
Loading