ansible: Add SLES support to developer role
authorKienan Stewart <kstewart@efficios.com>
Wed, 31 Jan 2024 19:26:13 +0000 (14:26 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 2 Feb 2024 14:07:03 +0000 (09:07 -0500)
Change-Id: I710a9fd8f84789bb2617255e045a36f4af784f37
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/developer/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/developer/vars/SLES-15.yml [new file with mode: 0644]

diff --git a/automation/ansible/roles/developer/tasks/setup-Suse.yml b/automation/ansible/roles/developer/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..1373dff
--- /dev/null
@@ -0,0 +1,7 @@
+---
+
+- name: Activate required products
+  when: ansible_distribution == 'SLES'
+  ansible.builtin.command:
+    argv: ['suseconnect', '-p', "{{item}}/{{ansible_distribution_version}}/{{ansible_architecture}}"]
+  with_items: "{{developer_sles_products|default([])}}"
diff --git a/automation/ansible/roles/developer/vars/SLES-15.yml b/automation/ansible/roles/developer/vars/SLES-15.yml
new file mode 100644 (file)
index 0000000..bb9375e
--- /dev/null
@@ -0,0 +1,14 @@
+---
+developer_tui_packages:
+  - emacs-nox
+  - gdb
+  - pkg-config
+  - tmux
+  # - vim-nox
+  - vim
+  # wget may be used by some vlttng commands
+  - wget
+
+developer_sles_products:
+  # provides tmux
+  - PackageHub
This page took 0.023488 seconds and 4 git commands to generate.