Skip to content

Commit 77a0304

Browse files
committed
Merge pull request #19 from fangohr/feat-017
Feat 017
2 parents 6e6b1f3 + 269ccd4 commit 77a0304

7 files changed

+228
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ full:
1111
lite:
1212
ansible-playbook master.yml -c local -i localhost, -v -k --extra-vars="vm_name=virtualmicromagnetics-lite playbook=provision_virtualmicromagnetics_lite.yml hookbook=hook.yml extra_resources_dir=guest_resources/"
1313

14+
# This target builds a virtual hard disk file containing an OOMMF
15+
# installation.
16+
oommf:
17+
ansible-playbook master.yml -c local -i localhost, -v -k --extra-vars="vm_name=virtualmicromagnetics-oommf playbook=provision_virtualmicromagnetics_oommf.yml hookbook=hook.yml extra_resources_dir=guest_resources/"
18+
19+
# This target builds a virtual hard disk file containing a Magpar
20+
# installation.
21+
magpar:
22+
ansible-playbook master.yml -c local -i localhost, -v -k --extra-vars="vm_name=virtualmicromagnetics-magpar playbook=provision_virtualmicromagnetics_magpar.yml hookbook=hook.yml extra_resources_dir=guest_resources/"
23+
24+
# This target builds a virtual hard disk file containing a Nmag
25+
# installation.
26+
nmag:
27+
ansible-playbook master.yml -c local -i localhost, -v -k --extra-vars="vm_name=virtualmicromagnetics-nmag playbook=provision_virtualmicromagnetics_nmag.yml hookbook=hook.yml extra_resources_dir=guest_resources/"
28+
1429
# This target builds a virtual hard disk file containing a fidimag
1530
# installation.
1631
fidimag:
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# This vagrantfile is not to be used to create a virtual machine using this
5+
# repository. Instead, it is a vagrantfile that is to be embedded (built in) to
6+
# the box file created by 'make full'. For more information about built-in
7+
# vagrantfiles, see:
8+
#
9+
# https://docs.vagrantup.com/v2/vagrantfile/index.html#load-order
10+
#
11+
# This particular vagrant file changes the user credentials that connects to
12+
# the Virtual Micromagnetics environment with, and enables a GUI by default.
13+
14+
VAGRANTFILE_API_VERSION = "2"
15+
16+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
17+
18+
config.vm.provider :virtualbox do |vb|
19+
vb.gui = true
20+
end
21+
22+
config.ssh.username = "virtualmicromagnetics"
23+
config.ssh.password = "virtualmicromagnetics"
24+
25+
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# This vagrantfile is not to be used to create a virtual machine using this
5+
# repository. Instead, it is a vagrantfile that is to be embedded (built in) to
6+
# the box file created by 'make full'. For more information about built-in
7+
# vagrantfiles, see:
8+
#
9+
# https://docs.vagrantup.com/v2/vagrantfile/index.html#load-order
10+
#
11+
# This particular vagrant file changes the user credentials that connects to
12+
# the Virtual Micromagnetics environment with, and enables a GUI by default.
13+
14+
VAGRANTFILE_API_VERSION = "2"
15+
16+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
17+
18+
config.vm.provider :virtualbox do |vb|
19+
vb.gui = true
20+
end
21+
22+
config.ssh.username = "virtualmicromagnetics"
23+
config.ssh.password = "virtualmicromagnetics"
24+
25+
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# This vagrantfile is not to be used to create a virtual machine using this
5+
# repository. Instead, it is a vagrantfile that is to be embedded (built in) to
6+
# the box file created by 'make full'. For more information about built-in
7+
# vagrantfiles, see:
8+
#
9+
# https://docs.vagrantup.com/v2/vagrantfile/index.html#load-order
10+
#
11+
# This particular vagrant file changes the user credentials that connects to
12+
# the Virtual Micromagnetics environment with, and enables a GUI by default.
13+
14+
VAGRANTFILE_API_VERSION = "2"
15+
16+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
17+
18+
config.vm.provider :virtualbox do |vb|
19+
vb.gui = true
20+
end
21+
22+
config.ssh.username = "virtualmicromagnetics"
23+
config.ssh.password = "virtualmicromagnetics"
24+
25+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# This Ansible playbook is a provision playbook designed to be used with
3+
# vagrant. This playbook provisions a machine suitable for micromagnetic
4+
# simulation with magpar. It is executed by the virtual machine.
5+
6+
- hosts: all
7+
8+
# We install docutils here instead of using the role directly, so that the
9+
# welcome file can be created before the superuser is added.
10+
pre_tasks:
11+
12+
- name: Install pip.
13+
apt:
14+
pkg=python-pip
15+
state=latest
16+
update_cache=yes
17+
cache_valid_time=86400
18+
sudo: yes
19+
20+
- name: Install docutils for Python to build documentation.
21+
pip:
22+
name=docutils
23+
sudo: yes
24+
25+
- name: Define directory in which to place welcome file.
26+
set_fact:
27+
WELCOME_DIR: /etc/skel/Desktop
28+
29+
- name: Create welcome directory.
30+
file:
31+
name={{ WELCOME_DIR }}
32+
state=directory
33+
sudo: yes
34+
35+
- name: Convert documentation to HTML and place in welcome directory.
36+
shell: rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+
chdir={{ WELCOME_DIR }}
38+
creates={{ WELCOME_DIR }}/Welcome.html
39+
sudo: yes
40+
41+
roles:
42+
- magpar
43+
- magpar_examples
44+
- xserver
45+
- { role: add_super_user, AUTOLOGIN: true }
46+
- { role: set_hostname, HOSTNAME: virtualmicromagnetics-magpar }
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# This Ansible playbook is a provision playbook designed to be used with
3+
# vagrant. This playbook provisions a machine suitable for micromagnetic
4+
# simulation with nmag. It is executed by the virtual machine.
5+
6+
- hosts: all
7+
8+
# We install docutils here instead of using the role directly, so that the
9+
# welcome file can be created before the superuser is added.
10+
pre_tasks:
11+
12+
- name: Install pip.
13+
apt:
14+
pkg=python-pip
15+
state=latest
16+
update_cache=yes
17+
cache_valid_time=86400
18+
sudo: yes
19+
20+
- name: Install docutils for Python to build documentation.
21+
pip:
22+
name=docutils
23+
sudo: yes
24+
25+
- name: Define directory in which to place welcome file.
26+
set_fact:
27+
WELCOME_DIR: /etc/skel/Desktop
28+
29+
- name: Create welcome directory.
30+
file:
31+
name={{ WELCOME_DIR }}
32+
state=directory
33+
sudo: yes
34+
35+
- name: Convert documentation to HTML and place in welcome directory.
36+
shell: rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+
chdir={{ WELCOME_DIR }}
38+
creates={{ WELCOME_DIR }}/Welcome.html
39+
sudo: yes
40+
41+
roles:
42+
- nmag
43+
- nmag_examples
44+
- xserver
45+
- { role: add_super_user, AUTOLOGIN: true }
46+
- { role: set_hostname, HOSTNAME: virtualmicromagnetics-nmag }
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# This Ansible playbook is a provision playbook designed to be used with
3+
# vagrant. This playbook provisions a machine suitable for micromagnetic
4+
# simulation with OOMMF. It is executed by the virtual machine.
5+
6+
- hosts: all
7+
8+
# We install docutils here instead of using the role directly, so that the
9+
# welcome file can be created before the superuser is added.
10+
pre_tasks:
11+
12+
- name: Install pip.
13+
apt:
14+
pkg=python-pip
15+
state=latest
16+
update_cache=yes
17+
cache_valid_time=86400
18+
sudo: yes
19+
20+
- name: Install docutils for Python to build documentation.
21+
pip:
22+
name=docutils
23+
sudo: yes
24+
25+
- name: Define directory in which to place welcome file.
26+
set_fact:
27+
WELCOME_DIR: /etc/skel/Desktop
28+
29+
- name: Create welcome directory.
30+
file:
31+
name={{ WELCOME_DIR }}
32+
state=directory
33+
sudo: yes
34+
35+
- name: Convert documentation to HTML and place in welcome directory.
36+
shell: rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+
chdir={{ WELCOME_DIR }}
38+
creates={{ WELCOME_DIR }}/Welcome.html
39+
sudo: yes
40+
41+
roles:
42+
- oommf
43+
- oommf_examples
44+
- xserver
45+
- { role: add_super_user, AUTOLOGIN: true }
46+
- { role: set_hostname, HOSTNAME: virtualmicromagnetics-oommf }

0 commit comments

Comments
 (0)