diff options
author | Jonathan Bauer | 2018-08-21 18:23:49 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-08-21 18:23:49 +0200 |
commit | 782c29d293fd0b36770ad9cc23b43dcd78345732 (patch) | |
tree | 154424644aa5fa4ebd4f2a5fe79d47c5fbbdcf26 | |
parent | initial commit (diff) | |
download | ansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.tar.gz ansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.tar.xz ansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.zip |
initial state
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | mltk-bwlp/meta/main.yml | 3 | ||||
-rw-r--r-- | mltk-bwlp/tasks/distro.yml | 15 | ||||
-rw-r--r-- | mltk-bwlp/tasks/main.yml | 11 | ||||
-rw-r--r-- | mltk-core/tasks/main.yml | 14 | ||||
-rw-r--r-- | mltk-core/tasks/repo.yml | 5 | ||||
-rw-r--r-- | mltk-nvidia/meta/main.yml | 3 | ||||
-rw-r--r-- | mltk-nvidia/tasks/main.yml | 10 | ||||
-rw-r--r-- | setup-bwlp.yml | 6 |
10 files changed, 79 insertions, 1 deletions
@@ -1 +1,9 @@ -TODO +Collection of small roles to use mltk to build and install the bwLehrool environment. + +Split between: +* mltk-core: just sets the git repository variables, depended by other mltk related roles +* mltk-bwlp: builds and installs the bwlp mltk target +* mltk-nvidia: builds and installed the nvidia as mltk addon + +Main playbook: +* setup-bwlp.yml @@ -0,0 +1,3 @@ +** Configurable kernel version for mltk's kernel-vanilla module +* Native Linux desktop environments +* Configuration thereof for bwLehrpool purposes diff --git a/mltk-bwlp/meta/main.yml b/mltk-bwlp/meta/main.yml new file mode 100644 index 0000000..74efe31 --- /dev/null +++ b/mltk-bwlp/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: mltk-core } diff --git a/mltk-bwlp/tasks/distro.yml b/mltk-bwlp/tasks/distro.yml new file mode 100644 index 0000000..1db174d --- /dev/null +++ b/mltk-bwlp/tasks/distro.yml @@ -0,0 +1,15 @@ +--- +# TODO other distros if needed +- set_fact: + pkgnames: + - build-essential + - automake + - cmake + - lsof + - m4 + - rsync + - pkg-config + - xserver-xorg + when: + - ansible_distribution == "Ubuntu" +# TODO QT diff --git a/mltk-bwlp/tasks/main.yml b/mltk-bwlp/tasks/main.yml new file mode 100644 index 0000000..e6e7cf7 --- /dev/null +++ b/mltk-bwlp/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- import_tasks: tasks/distro.yml + +- name: mltk | Install dependencies + package: + name: "{{ item }}" + state: present + with_items: "{{ pkgnames }}" + +- name: mltk | Build and install bwlp target + shell: "{{ mltk_git_target }}/mltk bwlp -b -i" diff --git a/mltk-core/tasks/main.yml b/mltk-core/tasks/main.yml new file mode 100644 index 0000000..95a7cd7 --- /dev/null +++ b/mltk-core/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- import_tasks: tasks/repo.yml + +- name: mltk | Install git + package: + name: git + state: present + +- name: mltk | Checkout repository + git: + repo: "{{ mltk_git_source }}" + dest: "{{ mltk_git_target }}" + version: "{{ mltk_git_branch }}" + depth: 1 diff --git a/mltk-core/tasks/repo.yml b/mltk-core/tasks/repo.yml new file mode 100644 index 0000000..b16f97a --- /dev/null +++ b/mltk-core/tasks/repo.yml @@ -0,0 +1,5 @@ +--- +- set_fact: + mltk_git_source: "git://git.openslx.org/openslx-ng/mltk" + mltk_git_target: "/opt/mltk" + mltk_git_branch: "installer" diff --git a/mltk-nvidia/meta/main.yml b/mltk-nvidia/meta/main.yml new file mode 100644 index 0000000..74efe31 --- /dev/null +++ b/mltk-nvidia/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: mltk-core } diff --git a/mltk-nvidia/tasks/main.yml b/mltk-nvidia/tasks/main.yml new file mode 100644 index 0000000..a4d4296 --- /dev/null +++ b/mltk-nvidia/tasks/main.yml @@ -0,0 +1,10 @@ +--- +- name: mltk | Checkout repository + git: + repo: "{{ mltk_git_source }}" + dest: "{{ mltk_git_target }}" + version: "{{ mltk_git_branch }}" + depth: 1 + +- name: mltk | Build bwlp target + shell: "{{ mltk_git_target }}/mltk nvidia_libs -b -i" diff --git a/setup-bwlp.yml b/setup-bwlp.yml new file mode 100644 index 0000000..d5cd680 --- /dev/null +++ b/setup-bwlp.yml @@ -0,0 +1,6 @@ +--- +- hosts: "all" + gather_facts: yes + roles: + - { role: "mltk-bwlp" } + - { role: "mltk-nvidia" } |