Skip to content

Commit 37ab110

Browse files
committed
Fixes geerlingguy#87: DigitalOcean lamp-infrastructure example fails because of image and size.
1 parent 03e55e5 commit 37ab110

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

lamp-infrastructure/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ To build the droplets and configure them using Ansible, follow these steps (both
6060

6161
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!
6262

63+
> If you get an error like "Failed to connect to the host via ssh: Host key verification failed.", then you can temporarily disable host key checking. Run the command `export ANSIBLE_HOST_KEY_CHECKING=False` and then run the `provision.yml` playbook again.
64+
6365
### Notes
6466

6567
- Public IP addresses are used for all cross-droplet communication (e.g. PHP to MySQL/Memcached communication, MySQL master/slave replication). For better security and potentially a tiny performance improvement, you can use droplets' `private_ip_address` for cross-droplet communication.

lamp-infrastructure/configure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- include: playbooks/varnish/main.yml
3-
- include: playbooks/www/main.yml
4-
- include: playbooks/db/main.yml
5-
- include: playbooks/memcached/main.yml
2+
- import_playbook: playbooks/varnish/main.yml
3+
- import_playbook: playbooks/www/main.yml
4+
- import_playbook: playbooks/db/main.yml
5+
- import_playbook: playbooks/memcached/main.yml

lamp-infrastructure/provision.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Uncomment the provisioner you would like to use. For for Vagrant provisioning,
33
# use `vagrant up` instead of this playbook.
44

5-
- include: provisioners/digitalocean.yml
6-
# - include: provisioners/aws.yml
5+
- import_playbook: provisioners/digitalocean.yml
6+
# - import_playbook: provisioners/aws.yml
77

88
# Configure provisioned servers.
9-
- include: configure.yml
9+
- import_playbook: configure.yml

lamp-infrastructure/provisioners/digitalocean.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
command: droplet
2020
name: "{{ item.name }}"
2121
private_networking: yes
22-
size_id: "{{ item.size | default('512mb') }}"
23-
image_id: "{{ item.image | default('centos-6-5-x64') }}"
24-
region_id: "{{ item.region | default('nyc2') }}"
22+
size_id: "{{ item.size | default('s-1vcpu-1gb') }}"
23+
image_id: "{{ item.image | default('centos-6-x64') }}"
24+
region_id: "{{ item.region | default('nyc3') }}"
2525
# Customize this default for your account.
2626
ssh_key_ids: "{{ item.ssh_key | default('138954') }}"
2727
unique_name: yes

0 commit comments

Comments
 (0)