Skip to content

Commit 387a609

Browse files
committed
Update LAMP Infrastructure example to work better on DO v2 API.
1 parent 9099222 commit 387a609

File tree

5 files changed

+190
-199
lines changed

5 files changed

+190
-199
lines changed

lamp-infrastructure/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ After everything is booted and configured, visit http://varnish.dev/ (if you con
5151

5252
## Build and configure the servers (DigitalOcean)
5353

54-
Pre-suppositions: You have a DigitalOcean account, and you have your v1 API Client ID and API Key from the account. Additionally, you have `dopy` and Ansible installed on your workstation (install `dopy` with `sudo pip install dopy`).
54+
Pre-suppositions: You have a DigitalOcean account, and you have a Personal Access Token for your account. Additionally, you have `dopy` and Ansible installed on your workstation (install `dopy` with `sudo pip install dopy`).
5555

5656
To build the droplets and configure them using Ansible, follow these steps (both from within this directory):
5757

58-
1. Set your DigitalOcean v1 Client ID: `export DO_CLIENT_ID=[client ID here]`
59-
2. Set your DigitalOcean v1 API Key: `export DO_API_KEY=[api key here]`
60-
3. Run `ansible-playbook provision.yml`.
58+
1. Set your DigitalOcean Personal Access Token: `export DO_API_TOKEN=[token here]`
59+
2. Run `ansible-playbook provision.yml`.
6160

6261
After everything is booted and configured, visit the IP address of the Varnish server that was created in your DigitalOcean account in a browser, and refresh a few times to see that Varnish, Apache, PHP, Memcached, and MySQL are all working properly!
6362

lamp-infrastructure/Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Vagrant.configure("2") do |config|
55
# Base VM OS configuration.
66
config.vm.box = "geerlingguy/centos6"
77
config.ssh.insert_key = false
8+
config.vm.synced_folder '.', '/vagrant', disabled: true
89

910
# General VirtualBox VM configuration.
1011
config.vm.provider :virtualbox do |v|

0 commit comments

Comments
 (0)