Skip to content

Commit

Permalink
packer-rocm: list 'niccli' reqs in 'vars', not 'defaults'
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlay2amd committed Nov 8, 2024
1 parent 2522ffb commit 37d1676
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 39 deletions.
39 changes: 0 additions & 39 deletions packer-rocm/playbooks/roles/niccli/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,3 @@ niccli_url: 'https://docs.broadcom.com/docs-and-downloads/ethernet-network-adapt
# install the CLI and driver by default, may opt out
niccli_driver: true
niccli_wanted: true

niccli_requirements: # mapped by 'ansible_os_family' fact
common:
- automake # only 'suggested' by 'build-essential' metapkg, not mentioned by 'Development Tools' group
- autoconf # "
- dkms
- infiniband-diags
- pciutils
- rdma-core
- strace
- unzip
Debian:
- build-essential
- ibverbs-providers
- ibverbs-utils
- libaio-dev
- libibverbs1
- libibverbs-dev
- libstdc++-12-dev
- libelf-dev
- libibumad-dev
- librdmacm-dev
- linux-headers-generic
- "linux-headers-{{ ansible_kernel }}"
- "linux-modules-extra-{{ ansible_kernel }}"
- pkg-config
- rdmacm-utils
RedHat:
- '@Development Tools' # group notation (@...) requires quoting
- kernel-headers
- kernel-devel-matched
- kernel-modules-extra
- libstdc++-devel
- libaio-devel
- libibumad
- libibverbs
- libibverbs-utils
- elfutils-libelf-devel
- librdmacm-utils
40 changes: 40 additions & 0 deletions packer-rocm/playbooks/roles/niccli/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,43 @@ niccli_pkg_anyarch:
niccli_pkg_ext:
Debian: '.deb'
RedHat: '.rpm'

# distribution packages to install before those for 'niccli'; mapped by 'ansible_os_family' fact
niccli_requirements:
common:
- automake # only 'suggested' by 'build-essential' metapkg, not mentioned by 'Development Tools' group
- autoconf # "
- dkms
- infiniband-diags
- pciutils
- rdma-core
- strace
- unzip
Debian:
- build-essential
- ibverbs-providers
- ibverbs-utils
- libaio-dev
- libibverbs1
- libibverbs-dev
- libstdc++-12-dev
- libelf-dev
- libibumad-dev
- librdmacm-dev
- linux-headers-generic
- "linux-headers-{{ ansible_kernel }}"
- "linux-modules-extra-{{ ansible_kernel }}"
- pkg-config
- rdmacm-utils
RedHat:
- '@Development Tools' # group notation (@...) requires quoting
- kernel-headers
- kernel-devel-matched
- kernel-modules-extra
- libstdc++-devel
- libaio-devel
- libibumad
- libibverbs
- libibverbs-utils
- elfutils-libelf-devel
- librdmacm-utils

0 comments on commit 37d1676

Please sign in to comment.