This cookbook will perform the HP SUM firmware update from a given SPP baseline. The cookbook utilises hpsum's centralized model to push the firmware and software to non-Chef client devices (~40 max).
The use model is to access the HP SUM software and the baseline over NFS. The cookbook will mount the NFS mount points provided by the attributes settings.
If the HP SUM NFS mount is "read-write", the HP SUM executables will run locally over the network. If the mount is "read-only", a copy of HP SUM will be stored on the local server, under a directory defined, and will then execute HP SUM from the local store. The local store of HP SUM software can then be re-used on subsequent runs.
NFS available filesystem of HP SUM software.
NFS avaliable filesystem of Firmware baseline.
NFS filesystems exported as use model requirements i.e. read-write or read-only
Attributes configured as required.
Update the hpsum.in.erb file with the desired HP SUM options.
Create data bags (for each hub Chef client) containing the node, user and password for each managed device. For example, the Chef client is "chefdomain", the managed device is called "puppetclient2":
{ "id": "16.83.62.253", "user": "root", "password": "xxxxxxxx" }
Key | Type | Description | Default |
---|---|---|---|
['hpsum']['nfs']['locallocation'] | String | Local server mount point for the HP SUM software | "mountpoint" |
['hpsum']['nfs']['remotelocation'] | String | Remote NFS server and exported filesystem for HP SUM software | "server:exported filesystem" |
['hpsum']['nfs']['type'] | String | HP SUM NFS mount type | "rw", "ro", or "local" |
['hpsum']['local']['clean'] | String | Clean local store repository before and after run | "nil" or "true" |
['hpsum']['local']['directory'] | String | Local store repository for copying HP SUM to server | "Directory" |
['hpsum']['baseline']['localfs'] | String | Local server mount point for firmware baseline | "mountpoint" |
['hpsum']['baseline']['remotefs'] | String | Remoe NFS server and exported filesystem for Firmware baseline | "server:exported filesystem" |
Call hp_sum_push
from wrapper cookbook which is then added to the server's run_list
:
(optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
e.g.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Robin Hart