Skip to content

Commit c9a413a

Browse files
Added jrsh to the Vagrant scripts, cleaned up and optimized some settings
1 parent 4cbaac2 commit c9a413a

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

Vagrant/bootstrap.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ then
2121
echo "Ansible installed"
2222
fi
2323

24+
sudo apt-get install unzip
25+
2426
echo "Running Ansible"
2527
bash -c "ansible-playbook /vagrant/playbook.yml --connection=local"

Vagrant/playbook.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
33
remote_user: vagrant
44
tasks:
55
- name: download Jasper Server
6-
get_url: url=http://sourceforge.net/projects/jasperserver/files/JasperServer/JasperReports%20Server%20Community%20Edition%206.1.0/jasperreports-server-cp-6.1.0-linux-x64-installer.run dest=/home/vagrant/jasperreports-server-cp-6.1.0-linux-x64-installer.run mode=755
6+
get_url:
7+
url=http://sourceforge.net/projects/jasperserver/files/JasperServer/JasperReports%20Server%20Community%20Edition%206.1.0/jasperreports-server-cp-6.1.0-linux-x64-installer.run
8+
dest=/home/vagrant/jasperreports-server-cp-6.1.0-linux-x64-installer.run
9+
mode=755
710
- name: setup Jasper Server
811
shell: printf '\n\n\n\ny\n\n/home/vagrant/jrs/\n\nn\nn\n' | ./jasperreports-server-cp-6.1.0-linux-x64-installer.run
912
args:
1013
chdir: /home/vagrant/
1114
creates: /home/vagrant/jrs/
1215
- name: run Jasper Server
1316
command: sh /home/vagrant/jrs/ctlscript.sh start
14-
sudo: yes
17+
sudo: yes
18+
- name: download jrsh
19+
get_url:
20+
url=http://github.com/Jaspersoft/jrsh/archive/master.zip
21+
dest=/home/vagrant/master.zip
22+
mode=755
23+
- name: setup jrsh
24+
unarchive:
25+
src=/home/vagrant/master.zip
26+
dest=/home/vagrant/
27+
copy=no

Vagrantfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
Vagrant.configure(2) do |config|
2323

2424
config.vm.box = "JasperSoft/JasperServer6.1.0"
25-
config.vm.box_check_update = false
25+
config.vm.box_check_update = true
2626
config.ssh.pty = true
2727

2828
config.vm.network "forwarded_port", guest: 8080, host: 8090
2929
config.vm.network "forwarded_port", guest: 5432, host: 5430
3030

31-
config.vm.provision "shell", inline: "su vagrant -l -c '/bin/sh /home/vagrant/jasperreports-server-cp-6.1.0/ctlscript.sh start'"
31+
config.vm.provision "shell", inline: "/bin/sh /home/vagrant/jrs/ctlscript.sh start"
3232

3333
end

0 commit comments

Comments
 (0)