Commit 679ccd81 authored by rdecoupe's avatar rdecoupe
Browse files

Tree project

parents
### Ansible ###
*.retry
### Vagrant ###
biotex-rest-deployment/vagrant/.vagrant/
### Sublime Workspace ###
biotex-rest.sublime-*
\ No newline at end of file
---
- name: deploy a biotex API Rest
hosts: biotex-rest
roles:
- biotex-java
# - biotex-api-rest
- name: Full upgrade for the system
become: yes
apt:
update_cache: yes
upgrade: yes
autoclean: yes
autoremove: yes
- name: Install dependencies
become: yes
apt:
name:
- maven
- python-dev
- python-pip
- unzip
- tree
- htop
- vim
- name: Install java 8
become: yes
apt:
name:
- openjdk-8-jdk
- name: Prepare Download directory
become: yes
file:
state: directory
path: /root/ansible-dl
- name: "POS : Download TreeTagger"
get_url:
url: "https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/tree-tagger-linux-3.2.2.tar.gz"
dest: "~"
- name: "POS : DownloadTreeTagger tagging scripts"
get_url:
url: "https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/tagger-scripts.tar.gz"
dest: "~"
- name: "POS : Download TreeTagger install script"
get_url:
url: "https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/install-tagger.sh"
dest: "~"
- name: "POS : Download French package"
get_url:
url: "hhttps://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/french.par.gz"
dest: "~"
- name: "POS : install TreeTagger"
command: "sh ~/install-tagger.sh"
\ No newline at end of file
# -*- mode: ruby -*-
# vi: set ft=ruby :
### Configuration parameters ###
ENTREPRISE_NETWORK_DNS_RULE = true
DNS_server_1 = "172.16.1.1"
DNS_server_2 = "172.16.1.2"
### end of Configuration parameters ###
Vagrant.configure("2") do |config|
config.vm.box = "generic/debian9"
config.vm.define "biotex-rest"
config.vm.hostname = "biotex-rest"
if ENTREPRISE_NETWORK_DNS_RULE == true
config.vm.provision "shell", inline: <<-SHELL
systemctl stop resolvconf
echo "nameserver 172.16.1.1" > /etc/resolv.conf
echo "nameserver 172.16.1.2" >> /etc/resolv.conf
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
SHELL
end
config.vm.network :private_network, ip: "10.0.0.9"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "../ansible/playbook/biotex-wrapper.yml"
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment