Commit 7e77bc42 authored by Yannik Potdevin's avatar Yannik Potdevin

Merge branch 'master' of build.se.informatik.uni-kiel.de:antibiotic-stewardship/abs

Keine Ahnung
parents 174f3a36 e530752c
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
config.vm.hostname = "sopro"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "4096", "--cpus", "2", "--name", "SoPro14"]
end
config.vm.synced_folder "salt/roots/", "/srv/salt/"
config.vm.provision :salt do |salt|
salt.minion_config = "salt/minion"
salt.run_highstate = true
end
end
tomcat6:
pkg:
- installed
service:
- running
- require:
- pkg: tomcat6
base:
'*':
- tomcat
- monit
- users
{% for id in range(10) %}
group{{id+1}}:
group.present:
- addusers:
- tomcat6
user:
- present
- shell: /bin/bash
- home: /home/group{{id+1}}
- groups:
- group{{id+1}}
/home/group{{id+1}}:
file.directory:
- file_mode: 740
- dir_mode: 750
- require:
- user: group{{id+1}}
/var/lib/tomcat6/conf/Catalina/localhost/group{{id+1}}.xml:
cmd.run:
- name: echo "<Context docBase=\"/home/group{{id+1}}/BabsiWeb.war\" unpackWAR=\"true\" path=\"/group{{id+1}}\" reloadable=\"true\" />" > /var/lib/tomcat6/conf/Catalina/localhost/group{{id+1}}.xml
usermod -a -G group{{id+1}} tomcat6:
cmd.run
{% endfor %}
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
config.vm.provider :virtualbox do |vb|
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024", "--cpus", "2", "--name", "BabsiWeb Development"]
end
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder "salt/roots/", "/srv/salt/"
config.vm.provision :salt do |salt|
salt.minion_config = "salt/minion"
salt.run_highstate = true
end
end
grails 2.2.4 installation:
cmd.run:
- name: |
wget http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.4.zip -O tmp.zip
unzip tmp.zip
rm tmp.zip
- cwd: /opt
- require:
- pkg: unzip
- pkg: wget
- unless: test -d /opt/grails-2.2.4
/etc/profile.d/grails.sh:
file.touch
set_grails_path:
file.append:
- name: /etc/profile.d/grails.sh
- text: export PATH=$PATH:/opt/grails-2.2.4/bin
- onlyif: test /etc/profile.d/grails.sh
wget:
pkg.installed
unzip:
pkg.installed
openjdk-6-jdk:
pkg.installed
/etc/profile.d/java.sh:
file.touch
set_java_home:
file.append:
- name: /etc/profile.d/java.sh
- text: export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
- onlyif: test /etc/profile.d/java.sh
base:
'*':
- java
- grails
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