From 782c29d293fd0b36770ad9cc23b43dcd78345732 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 21 Aug 2018 18:23:49 +0200 Subject: initial state --- README | 10 +++++++++- TODO | 3 +++ mltk-bwlp/meta/main.yml | 3 +++ mltk-bwlp/tasks/distro.yml | 15 +++++++++++++++ mltk-bwlp/tasks/main.yml | 11 +++++++++++ mltk-core/tasks/main.yml | 14 ++++++++++++++ mltk-core/tasks/repo.yml | 5 +++++ mltk-nvidia/meta/main.yml | 3 +++ mltk-nvidia/tasks/main.yml | 10 ++++++++++ setup-bwlp.yml | 6 ++++++ 10 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 TODO create mode 100644 mltk-bwlp/meta/main.yml create mode 100644 mltk-bwlp/tasks/distro.yml create mode 100644 mltk-bwlp/tasks/main.yml create mode 100644 mltk-core/tasks/main.yml create mode 100644 mltk-core/tasks/repo.yml create mode 100644 mltk-nvidia/meta/main.yml create mode 100644 mltk-nvidia/tasks/main.yml create mode 100644 setup-bwlp.yml diff --git a/README b/README index 1333ed7..67953eb 100644 --- a/README +++ b/README @@ -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 diff --git a/TODO b/TODO new file mode 100644 index 0000000..1d1651d --- /dev/null +++ b/TODO @@ -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" } -- cgit v1.2.3-55-g7522