Skip to content

Commit 558874b

Browse files
committed
Added extra package installs to bootstrap
1 parent 4de581c commit 558874b

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

ansible/bootstrap.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,15 @@
216216
msg: "{{ updates.results | length }} changes to packages - see {{ update_log_path }} for details"
217217
when: "update_enable | default('false') | bool"
218218

219+
- hosts: extra_packages
220+
become: yes
221+
tags:
222+
- extra_packages
223+
tasks:
224+
dnf:
225+
- name: "{{ appliances_extra_packages }}"
226+
when: appliances_mode != 'configure' or appliances_packages_during_configure
227+
219228
- hosts:
220229
- selinux
221230
- update

environments/common/inventory/group_vars/all/defaults.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,23 @@ appliances_local_users_default:
7979
appliances_local_users_extra: [] # see format of appliances_local_users_default above
8080
appliances_local_users: "{{ appliances_local_users_default + appliances_local_users_extra }}"
8181

82-
###########################################################################################
82+
################## bootstrap: extra package installs ######################################
83+
84+
appliances_default_extra_packages:
85+
- htop
86+
- nano
87+
- screen
88+
- tmux
89+
- wget
90+
- bind-utils
91+
- net-tools
92+
- postfix
93+
- git
94+
- "{{ 'python36' if ansible_distribution_version == '8.9' else 'python312' }}"
95+
96+
97+
appliances_packages_during_configure: false
98+
99+
appliances_other_extra_packages: []
100+
101+
appliances_extra_packages: "{{ appliances_default_extra_packages + appliances_other_extra_packages }}"

environments/common/inventory/groups

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,8 @@ freeipa_client
144144

145145
[lustre]
146146
# Hosts to run lustre client
147+
148+
[extra_packages:children]
149+
# Hosts to install specified additional packages on
150+
cluster
151+
builder

0 commit comments

Comments
 (0)