ansible: Add physical hosts with minimal common configuration
authorKienan Stewart <kstewart@efficios.com>
Thu, 25 May 2023 20:41:59 +0000 (16:41 -0400)
committerkstewart <kstewart@efficios.com>
Mon, 5 Jun 2023 14:51:09 +0000 (10:51 -0400)
Change-Id: I32e94782853288021303fb9fd9fbe48afd1c96ee

automation/ansible/group_vars/host.yml [new file with mode: 0644]
automation/ansible/group_vars/node.yml
automation/ansible/hosts
automation/ansible/hosts.yml
automation/ansible/roles/common/tasks/setup-Debian.yml
automation/ansible/roles/common/vars/Debian.yml

diff --git a/automation/ansible/group_vars/host.yml b/automation/ansible/group_vars/host.yml
new file mode 100644 (file)
index 0000000..02a0ca6
--- /dev/null
@@ -0,0 +1,2 @@
+---
+jenkins_user: true
index 02a0ca6fcee84d1a68e58d0334c1744c84612800..3a17f75f88316380e10f2a2f64584cb82f4e864a 100644 (file)
@@ -1,2 +1,22 @@
 ---
 jenkins_user: true
+packages_Debian:
+  - autoconf
+  - automake
+  - bison
+  - build-essential
+  - clang
+  - clang-tools
+  - cloc
+  - default-jdk-headless
+  - flex
+  - gettext
+  - git
+  - libssl-dev
+  - libtap-harness-archive-perl
+  - libtool-bin
+  - lzop
+  - pbzip2
+  - sudo
+  - vim
+  - virtualenv
index f148b4496b8657ef0b7d36fd979535c9e9f3503f..d8dec19d49fdfc5f149f1b75d9867d646e0ff834 100644 (file)
@@ -1,13 +1,14 @@
 localhost ansible_connection=local ansible_python_interpreter=python3
 
 [hosts]
-#cloud01.internal.efficios.com
+cloud01.internal.efficios.com
 cloud02.internal.efficios.com
 cloud03.internal.efficios.com
 cloud04.internal.efficios.com
 cloud05.internal.efficios.com
-#cloud06.internal.efficios.com
-#cloud07.internal.efficios.com
+cloud06.internal.efficios.com
+cloud07.internal.efficios.com
+# This host is used for tests via lava and is running ephemereal installs only
 #cloud08.internal.efficios.com
 ci-host-win11-arm64-01.internal.efficios.com
 
index f38a87e894ebb63162be3fa4ebfc25efac2cab13..c02b6df0e1c2827ac7fc9ccae86be2258e07b870 100644 (file)
@@ -1,2 +1,3 @@
 - hosts: hosts
   roles:
+    - common
index 0f70202a8e208e652d89793d1823a5d30dc2c844..54a7a4f9cfeeb162813a78494d204960735c82ad 100644 (file)
@@ -20,4 +20,8 @@
   apt: update_cache=yes cache_valid_time=86400
 
 - name: Ensure common packages are installed.
-  apt: "name={{ common_packages }} state=present"
+  apt: "name={{ common_packages + packages_Debian|default([]) }} state=present"
+
+- name: Debug common packages
+  debug:
+    msg: "{{ common_packages + packages_Debian|default([]) }}"
index 475b75480bff14a0d6da26aae34e28630038c237..8b688b2097c20702f2b2e9638a90397a1c614c41 100644 (file)
@@ -1,29 +1,13 @@
 ---
 common_packages:
-  - autoconf
-  - automake
-  - bison
-  - build-essential
-  - clang
-  - clang-tools
-  - cloc
   - curl
-  - default-jdk-headless
   - emacs-nox
-  - flex
-  - gettext
   - git
   - htop
   - jq
-  - libssl-dev
-  - libtap-harness-archive-perl
-  - libtool-bin
-  - lzop
   - openssh-server
-  - pbzip2
   - psmisc
   - rsync
   - sudo
   - tree
   - vim
-  - virtualenv
This page took 0.02591 seconds and 4 git commands to generate.