Commit 3a7b97de authored by Pullyvan Krishnamoorthy's avatar Pullyvan Krishnamoorthy
Browse files

Initial commit

parents
Pipeline #40137 failed with stages
---
language: python
python: "2.7"
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
\ No newline at end of file
# Role Mathematica
Ansible role to install silently Mathematica 12 without licenses. Other versions will come later
Compatibility
------------
This role can be used on all Linux OS
Variables Used
------------
You can find in defaults/main.yml all variables used in tasks
| Variable | Default Value | Type | Description |
| -------------- | :-------------------------- | :----- | ---------------------------------- |
| mathematica_sh | Mathematica_12.0.0_LINUX.sh | String | Mathematica installer |
| dest_folder | /tmp | String | Path where the installer is stored |
## Activating license
To activate the license, you must to connect via ssh via your export display like:
```bash
ssh username@serverhostname -X
```
Then you'll have to start mathematica by using this command:
```bash
mathematica
```
In the opened windows, you'll have to fill with your informations & activation key.
### Get an activation key
You have to connect on go.epfl.ch/wolfram. Then connect with your gaspar account. You'll be able then to activate an activation key on your user portal
## Author Information
Written by [Dimitri Colier](mailto:dimitri.colier@epfl.ch) for EPFL - STI school of engineering
\ No newline at end of file
---
# defaults file for mathematica
s3_base_url: https://s3.epfl.ch/10282-70726cc2c34fcfe7d4325ef7ea151411
mathematica_install_version: mathematica_12
mathematica_versions:
mathematica_12:
url: Mathematica_12.0.0_LINUX.zip
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
64323030316331323831633262623766656363613831336366663533383839353938323235373635
6565366339656434313834366665313765313931363630390a343732326631363737386638626636
33313436366537303733353461643366353632383130303038643330363433306436373737646664
6164353739633236380a656634626338616233373238316335313239346236336562643961303563
37326164376163373330656465396437326232386131346662653836363939313466643430373433
62613833636362393261343662316563643833343832626439373233643030393933633034313062
666661663337613766343565323332623734
mathematica: Mathematica_12.0.0_LINUX.sh
\ No newline at end of file
---
# handlers file for mathematica
\ No newline at end of file
---
galaxy_info:
author: Dimitri Colier
description: Install Mathematica 12 on ubuntu
company: EPFL
issue_tracker_url: https://support.epfl.ch
min_ansible_version: 2.9
platforms:
- name: Ubuntu
versions:
- bionic
galaxy_tags:
- Mathematica
- linux
dependencies: []
---
# tasks file for mathematica
- name: Download {{ mathematica_install_version }}.zip & Unzip
unarchive:
dest: /tmp
src: "{{ s3_base_url }}/{{ mathematica_versions[mathematica_install_version]['url'] }}"
remote_src: yes
extra_opts:
- -P
- "{{ mathematica_versions[mathematica_install_version]['password'] }}"
- name: Chmod on mathematica installer
command:
cmd: "chmod +x {{ mathematica }}"
chdir: "/tmp"
- name: install mathematica in silent
become: yes
command:
cmd: "./{{ mathematica }} -- -silent"
chdir: "/tmp"
\ No newline at end of file
sti-cluster-node-01.vagrant ansible_host=192.168.50.10
---
- hosts: all
remote_user: root
roles:
- ../../mathematica
\ No newline at end of file
---
# vars file for mathematica
\ No newline at end of file
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