Skip to content
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
4 changes: 2 additions & 2 deletions docs/05-terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ resource "google_compute_instance" "raddit" {
}

resource "google_compute_project_metadata" "raddit" {
metadata {
metadata = {
ssh-keys = "raddit-user:${file("~/.ssh/raddit-user.pub")}" // path to ssh key file
}
}
Expand Down Expand Up @@ -240,7 +240,7 @@ Create another configuration file inside `terraform` directory and call it `outp

```
output "raddit_public_ip" {
value = "${google_compute_instance.raddit.network_interface.0.access_config.0.assigned_nat_ip}"
value = "${google_compute_instance.raddit.network_interface.0.access_config.0.nat_ip}"
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/06-ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ $ ansible-playbook deploy.yml

Access the application in your browser by its public IP (don't forget to specify the port 9292) and make sure application has been deployed and is functional.

## Futher Learning Ansible
## Further Learning Ansible

There's a whole lot to learn about Ansible. Try playing around with it more and create a `playbook` which provides the same system configuration as your `configuration.sh` script. Save it under the name `configuration.yml` inside the `ansible` folder, then use it inside [ansible provisioner](https://www.packer.io/docs/provisioners/ansible.html) instead of shell in your Packer template.

Expand Down