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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Build 'virtualbox-iso' errored: ISO download failed.
```

* Run `cd virtualbox`
* Run `vagrant box add ubuntu-14.04.4-server-amd64-appserver_virtualbox.box --name devops-appserver`
* Run `vagrant box add ubuntu-18.04.1-server-amd64-appserver_virtualbox.box --name devops-appserver`
* Run `vagrant up`
* Run `vagrant ssh` to connect to the server

Expand Down
14 changes: 7 additions & 7 deletions packer-templates/application-server.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variables": {
"PACKER_OS_FLAVOUR": "ubuntu",
"PACKER_BOX_NAME": "ubuntu-14.04.4-server-amd64",
"PACKER_BOX_NAME": "ubuntu-18.04.1-server-amd64",
"AWS_ACCESS_KEY_ID": "{{env `AWS_ACCESS_KEY_ID`}}",
"AWS_SECRET_ACCESS_KEY": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"DIGITALOCEAN_API_TOKEN": "{{env `DIGITALOCEAN_API_TOKEN`}}"
Expand Down Expand Up @@ -39,9 +39,9 @@
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Ubuntu_64",
"http_directory": "http",
"iso_checksum": "07e4bb5569814eab41fafac882ba127893e3ff0bdb7ec931c9b2d040e3e94e7a",
"iso_checksum": "a5b0ea5918f850124f3d72ef4b85bda82f0fcd02ec721be19c1a6952791c8ee8",
"iso_checksum_type": "sha256",
"iso_url": "http://releases.ubuntu.com/trusty/{{ user `PACKER_BOX_NAME` }}.iso",
"iso_url": "http://cdimage.ubuntu.com/ubuntu/releases/bionic/release/{{ user `PACKER_BOX_NAME` }}.iso",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_port": 22,
Expand All @@ -60,7 +60,7 @@
"access_key": "{{ user `AWS_ACCESS_KEY_ID` }}",
"secret_key": "{{ user `AWS_SECRET_ACCESS_KEY` }}",
"region": "us-east-1",
"source_ami": "ami-10b68a78",
"source_ami": "ami-0ac019f4fcb7cb7e6s",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-app-server {{timestamp}}"
Expand All @@ -69,16 +69,16 @@
"type": "googlecompute",
"account_file": "account.json",
"project_id": "devops-intro-project",
"source_image": "ubuntu-1404-trusty-v20150316",
"source_image": "ubuntu-1804-bionic-v20181222",
"zone": "us-central1-a",
"image_name": "application-ubuntu-1404-{{timestamp}}",
"image_name": "application-ubuntu-1804-{{timestamp}}",
"machine_type": "n1-standard-1",
"ssh_username": "ubuntu"
},
{
"type": "digitalocean",
"api_token": "{{ user `DIGITALOCEAN_API_TOKEN` }}",
"image": "ubuntu-14-04-x64",
"image": "ubuntu-18.04.1-live-server-amd64",
"region": "tor1",
"size": "512mb",
"droplet_name": "udacity-devops",
Expand Down
10 changes: 5 additions & 5 deletions packer-templates/control-server.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variables": {
"PACKER_OS_FLAVOUR": "ubuntu",
"PACKER_BOX_NAME": "ubuntu-14.04.4-server-amd64",
"PACKER_BOX_NAME": "ubuntu-18.04.1-server-amd64",
"AWS_ACCESS_KEY_ID": "{{env `AWS_ACCESS_KEY_ID`}}",
"AWS_SECRET_ACCESS_KEY": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"DIGITALOCEAN_API_TOKEN": "{{env `DIGITALOCEAN_API_TOKEN`}}"
Expand Down Expand Up @@ -39,9 +39,9 @@
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Ubuntu_64",
"http_directory": "http",
"iso_checksum": "07e4bb5569814eab41fafac882ba127893e3ff0bdb7ec931c9b2d040e3e94e7a",
"iso_checksum": "a5b0ea5918f850124f3d72ef4b85bda82f0fcd02ec721be19c1a6952791c8ee8",
"iso_checksum_type": "sha256",
"iso_url": "http://releases.ubuntu.com/trusty/{{ user `PACKER_BOX_NAME` }}.iso",
"iso_url": "http://cdimage.ubuntu.com/ubuntu/releases/bionic/release/{{ user `PACKER_BOX_NAME` }}.iso",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_port": 22,
Expand Down Expand Up @@ -69,7 +69,7 @@
"type": "googlecompute",
"account_file": "account.json",
"project_id": "devops-intro-project",
"source_image": "ubuntu-1404-trusty-v20150316",
"source_image": "ubuntu-1804-bionic-v20181222",
"zone": "us-central1-a",
"image_name": "control-ubuntu-1404-{{timestamp}}",
"machine_type": "n1-standard-1",
Expand All @@ -78,7 +78,7 @@
{
"type": "digitalocean",
"api_token": "{{ user `DIGITALOCEAN_API_TOKEN` }}",
"image": "ubuntu-14-04-x64",
"image": "ubuntu-18.04.1-live-server-amd64",
"region": "tor1",
"size": "512mb",
"droplet_name": "udacity-devops",
Expand Down