Skip to content

Commit d1dbe2f

Browse files
committed
Issue #229: Also make sure selinux dependencies installed for lamp-infra example.
1 parent a4e01fb commit d1dbe2f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lamp-infrastructure/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ 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-
6563
### Notes
6664

6765
- 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.
@@ -80,8 +78,6 @@ To build the droplets and configure them using Ansible, follow these steps (both
8078

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

83-
> 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.
84-
8581
### Notes
8682

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

lamp-infrastructure/playbooks/www/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
src: templates/index.php.j2
2525
dest: /var/www/html/index.php
2626

27+
- name: Ensure required SELinux dependency is installed.
28+
package:
29+
name: libsemanage-python
30+
state: present
31+
2732
- name: Configure SELinux to allow HTTPD connections.
2833
seboolean:
2934
name: "{{ item }}"
@@ -32,3 +37,4 @@
3237
with_items:
3338
- httpd_can_network_connect_db
3439
- httpd_can_network_memcache
40+
when: ansible_selinux.status == 'enabled'

0 commit comments

Comments
 (0)