Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- include: setup-RedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- include: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Configure Elasticsearch.
|
||||
template:
|
||||
src: elasticsearch.yml.j2
|
||||
dest: /etc/elasticsearch/elasticsearch.yml
|
||||
owner: root
|
||||
group: elasticsearch
|
||||
mode: 0750
|
||||
notify: restart elasticsearch
|
||||
|
||||
- name: Start Elasticsearch.
|
||||
service: name=elasticsearch state=started enabled=yes
|
||||
|
||||
- name: Make sure Elasticsearch is running before proceeding.
|
||||
wait_for: host={{ elasticsearch_network_host }} port={{ elasticsearch_http_port }} delay=3 timeout=300
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Add Elasticsearch apt key.
|
||||
apt_key:
|
||||
url: https://packages.elastic.co/GPG-KEY-elasticsearch
|
||||
state: present
|
||||
|
||||
- name: Add Elasticsearch repository.
|
||||
apt_repository:
|
||||
repo: 'deb http://packages.elastic.co/elasticsearch/2.x/debian stable main'
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Install Elasticsearch.
|
||||
apt: pkg=elasticsearch state=present
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Add Elasticsearch GPG key.
|
||||
rpm_key:
|
||||
key: https://packages.elastic.co/GPG-KEY-elasticsearch
|
||||
state: present
|
||||
|
||||
- name: Add Elasticsearch repository.
|
||||
copy:
|
||||
src: elasticsearch.repo
|
||||
dest: /etc/yum.repos.d/elasticsearch.repo
|
||||
mode: 0644
|
||||
|
||||
- name: Install Elasticsearch.
|
||||
yum: pkg=elasticsearch state=installed
|
Loading…
Add table
Add a link
Reference in a new issue