nim – Server setup, install packages, update SP or TL.¶
Requirements¶
The below requirements are needed on the host that executes this module.
- AIX >= 7.1 TL3
- Python >= 2.7
Parameters¶
- force (optional, bool, False)
- Forces action.
- description (optional, str, None)
- Describes the NIM operation (informational only).
- script (optional, str, None)
- NIM script resource.
- lpp_source (optional, str, None)
Indicates the lpp_source to apply to the targets.
latest_tl,latest_sp,next_tlandnext_spcan be specified; based on the NIM server resources, nim will determine the actual oslevel necessary to update the targets.- group (optional, str, None)
- NIM group resource.
- action (True, str, None)
Specifies the action to perform.
updateto update NIM clients with a specifiedlpp_source.
master_setupto setup a NIM master.
checkto retrieve theCstateof each NIM client.
compareto compare installation inventories of the NIM clients.
scriptto apply a script to customize NIM clients.
allocateto allocate a resource to specified NIM clients.
deallocateto deallocate a resource for specified NIM clients.
bos_instto install a given list of NIM clients.
define_scriptto define a script NIM resource.
removeto remove a specified NIM resource.
resetto reset theCstateof a NIM client.
rebootto reboot the given NIM clients if they are running.
maintenanceto perform a maintenance operation on NIM clients.- asynchronous (optional, bool, False)
- If set to
no, NIM client will be completely installed before starting the installation of another NIM client.- location (optional, str, None)
- Specifies the full path name of the script resource file.
- device (optional, str, None)
- The device (or directory) where to find the lpp source to install.
- resource (optional, str, None)
- NIM resource.
- operation (optional, str, None)
- NIM maintenance operation.
- targets (optional, list, None)
Specifies the NIM clients to perform the action on.
foo*designates all the NIM clients with name starting byfoo.
foo[2:4]designates the NIM clients among foo2, foo3 and foo4.
*orALLdesignates all the NIM clients.
Examples¶
- name: Install using group resource
nim:
action: bos_inst
targets: nimclient01
group: basic_res_grp
- name: Check the Cstate of all NIM clients
nim:
action: check
- name: Define a script resource on NIM master
nim:
action: define_script
resource: myscript
location: /tmp/myscript.sh
- name: Execute a script on all NIM clients synchronously
nim:
action: script
script: myscript
asynchronous: no
targets: all
Return Values¶
- msg (always, str, )
- Status information.
- nim_output (always, str, )
- Output from nim commands.
- nim_node (always, dict, {‘nim_node’: {‘master’: {‘cstate’: ‘ready for a NIM operation’, ‘type’: ‘master’}, ‘vios’: {}, ‘lpp_source’: {‘723lpp_res’: ‘/export/nim/lpp_source/723lpp_res’}, ‘standalone’: {‘nimclient02’: {‘cstate’: ‘ready for a NIM operation’, ‘ip’: ‘nimclient02.mydomain.com’, ‘type’: ‘standalone’}, ‘nimclient01’: {‘cstate’: ‘ready for a NIM operation’, ‘ip’: ‘nimclient01.mydomain.com’, ‘type’: ‘standalone’}}}})
NIM node info.
- master (always, dict, )
- NIM master.
- vios (always, dict, )
- List of VIOS NIM resources.
- lpp_source (always, dict, )
- List of lpp sources.
- standalone (always, dict, )
- List of standalone NIM resources.