Skip to content

Commit

Permalink
Make vagrant box use haveged entropy service and add remote access to…
Browse files Browse the repository at this point in the history
… postgres
  • Loading branch information
barnabycourt committed Mar 1, 2017
1 parent a47c939 commit 636ed35
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion vagrant/roles/candlepin-root/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- python-psycopg2
- libxml2-python
- wget
- haveged
tags:
- candlepin-root

Expand All @@ -46,7 +47,15 @@
- candlepin-root
- system_update

- name: Add remote debugging config to tomcat
- name: Enable & Start the haveged entropy service
service:
name: haveged
enabled: yes
state: started
tags:
- candlepin-root

- name: Add remote debugging & urandom config to tomcat
lineinfile:
dest: /etc/tomcat/tomcat.conf
line: "JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
Expand Down Expand Up @@ -106,6 +115,22 @@
tags:
- candlepin-root

- name: Add postgresql remote access from 192.168.*.*
lineinfile:
dest: /var/lib/pgsql/data/pg_hba.conf
line: 'host all all 192.168.0.1 255.255.0.0 trust'
tags:
- candlepin-root

- name: Set postgresql to allow connections over the network
replace:
dest: /var/lib/pgsql/data/postgresql.conf
regexp: "^#listen_addresses = 'localhost'"
replace: "listen_addresses = '*'"
backup: yes
tags:
- candlepin-root

- name: Start PostgreSQL and enable at boot
service:
name: postgresql
Expand Down

0 comments on commit 636ed35

Please sign in to comment.