https://github.com/jay7x/puppet-sf_facts
Puppet facts related to Solarflare NICs
https://github.com/jay7x/puppet-sf_facts
puppet puppet-module solarflare
Last synced: 24 days ago
JSON representation
Puppet facts related to Solarflare NICs
- Host: GitHub
- URL: https://github.com/jay7x/puppet-sf_facts
- Owner: jay7x
- License: apache-2.0
- Created: 2025-01-21T06:26:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T06:30:36.000Z (over 1 year ago)
- Last Synced: 2025-03-09T20:54:50.124Z (over 1 year ago)
- Topics: puppet, puppet-module, solarflare
- Language: Ruby
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Puppet sf_facts module
## Table of Contents
1. [Description](#description)
1. [Usage - Configuration options and additional functionality](#usage)
1. [Limitations - OS compatibility, etc.](#limitations)
1. [Links](#links)
## Description
This module contains Puppet facts related to Solarflare NICs.
### solarflare_adapters fact
This fact returns Array of physical adapters, each containing an Array of network interface names, belonging to the physical card.
## Usage
Please find some examples below.
### Example 1. Check if there is any Solarflare NIC in the system
```puppet
if $facts.get('solarflare_adapters', []).length > 0 {
# Do something if any Solarflare NIC is present
}
```
### Example 2. Configure each Solarflare NIC using `jay7x/sfboot` module
```puppet
$facts.get('solarflare_adapters', []).each |$nics| {
# Use 1st NIC of a physical card to configure global parameters
sfboot_adapter { $nics[0]:
boot_image => 'all',
firmware_variant => 'full-feature',
}
# Configure per-NIC parameters
$nics.each |$nic| {
sfboot_adapter { $nic:
boot_type => 'pxe',
switch_mode => 'partitioning-with-sriov',
vf_count => 2,
pf_count => 4,
pf_vlans => [0, 100, 110, 120],
}
}
}
```
## Limitations
* This module was tested on the following OS list at the moment:
* Debian 11, 12
## Links
* `jay7x/sfboot` module: