Module to provide Cisco UCS compatibility to Salt
codeauthor: | Spencer Ervin <[email protected]> |
---|---|
maturity: | new |
depends: | none |
platform: | unix |
This module accepts connection configuration details either as parameters, or as configuration settings in pillar as a Salt proxy. Options passed into opts will be ignored if options are passed into pillar.
See also
This execution module was designed to handle connections to a Cisco UCS server. This module adds support to send connections directly to the device through the rest API.
Activates the firmware backup image.
CLI Example:
Parameters: | reset (bool) -- Reset the CIMC device on activate. |
---|
salt '*' cimc.activate_backup_image salt '*' cimc.activate_backup_image reset=True
Create a CIMC user with username and password.
Parameters: |
---|
CLI Example:
salt '*' cimc.create_user 11 username=admin password=foobar priv=admin
Get the default values of BIOS tokens.
CLI Example:
salt '*' cimc.get_bios_defaults
Get the C240 server BIOS token values.
CLI Example:
salt '*' cimc.get_bios_settings
Retrieves the configured boot order table.
CLI Example:
salt '*' cimc.get_boot_order
Get the CPU product ID details.
CLI Example:
salt '*' cimc.get_cpu_details
Get the HDD product ID details.
CLI Example:
salt '*' cimc.get_disks
Get the adapter Ethernet interface details.
CLI Example:
salt '*' cimc.get_ethernet_interfaces
Get the adapter fibre channel interface details.
CLI Example:
salt '*' cimc.get_fibre_channel_interfaces
Retrieves the current running firmware versions of server components.
CLI Example:
salt '*' cimc.get_firmware
Retrieves the hostname from the device.
New in version 2019.2.0.
CLI Example:
salt '*' cimc.get_hostname
Retrieves LDAP server details.
CLI Example:
salt '*' cimc.get_ldap
Retrieve the management interface details.
CLI Example:
salt '*' cimc.get_management_interface
Get the memory RAS BIOS token.
CLI Example:
salt '*' cimc.get_memory_token
Get the IMM/Memory unit product ID details.
CLI Example:
salt '*' cimc.get_memory_unit
Get the list of network adapaters and configuration details.
CLI Example:
salt '*' cimc.get_network_adapters
Retrieves the current running NTP configuration.
CLI Example:
salt '*' cimc.get_ntp
Get the PCI adapter product ID details.
CLI Example:
salt '*' cimc.get_disks
Get the configuration of the power settings from the device. This is only available on some C-Series servers.
New in version 2019.2.0.
CLI Example:
salt '*' cimc.get_power_configuration
Retrieves the power supply unit details.
CLI Example:
salt '*' cimc.get_power_supplies
Get the snmp configuration details.
CLI Example:
salt '*' cimc.get_snmp_config
Get the Syslog client-server details.
CLI Example:
salt '*' cimc.get_syslog
Get the Syslog configuration settings from the system.
New in version 2019.2.0.
CLI Example:
salt '*' cimc.get_syslog_settings
Get the system information.
CLI Example:
salt '*' cimc.get_system_info
Get the CIMC users.
CLI Example:
salt '*' cimc.get_users
Get the VIC adapter general profile details.
CLI Example:
salt '*' cimc.get_vic_adapters
Get the VIC adapter uplink port details.
CLI Example:
salt '*' cimc.get_vic_uplinks
Mounts a remote file through a remote share. Currently, this feature is supported in version 1.5 or greater. The remote share can be either NFS, CIFS, or WWW.
Communication between mounted media and target stays local (inside datacenter) Media mounts can be scripted/automated No vKVM requirements for media connection Multiple share types supported Connections supported through all CIMC interfaces
Note: CIMC Mounted vMedia is enabled through BIOS configuration.
Parameters: |
|
---|
CLI Example:
salt '*' cimc.mount_share name=WIN7 remote_share=10.xxx.27.xxx:/nfs remote_file=sl1huu.iso salt '*' cimc.mount_share name=WIN7 remote_share=10.xxx.27.xxx:/nfs remote_file=sl1huu.iso username=bob password=badpassword
Power cycling the server.
CLI Example:
salt '*' cimc.reboot
Sets the hostname on the server.
New in version 2019.2.0.
Parameters: | hostname (str) -- The new hostname to set. |
---|
CLI Example:
salt '*' cimc.set_hostname foobar
Sets the logging levels of the CIMC devices. The logging levels must match the following options: emergency, alert, critical, error, warning, notice, informational, debug.
New in version 2019.2.0.
Parameters: |
---|
CLI Example:
salt '*' cimc.set_logging_levels remote=error local=notice
Sets the NTP servers configuration. This will also enable the client NTP service.
Parameters: |
---|
CLI Example:
salt '*' cimc.set_ntp_server 10.10.10.1 salt '*' cimc.set_ntp_server 10.10.10.1 foo.bar.com
Sets the power configuration on the device. This is only available for some C-Series servers.
New in version 2019.2.0.
Parameters: |
|
---|
CLI Example:
salt '*' cimc.set_power_configuration stay-off salt '*' cimc.set_power_configuration reset fixed 0
Set the SYSLOG server on the host.
Parameters: |
---|
CLI Example:
salt '*' cimc.set_syslog_server foo.bar.com salt '*' cimc.set_syslog_server foo.bar.com primary salt '*' cimc.set_syslog_server foo.bar.com secondary
Sets a CIMC user with specified configurations.
New in version 2019.2.0.
Parameters: |
---|
CLI Example:
salt '*' cimc.set_user 11 username=admin password=foobar priv=admin active
Update the BIOS firmware through TFTP.
Parameters: |
---|
CLI Example:
salt '*' cimc.tftp_update_bios foo.bar.com HP-SL2.cap
Update the CIMC firmware through TFTP.
Parameters: |
---|
CLI Example:
salt '*' cimc.tftp_update_cimc foo.bar.com HP-SL2.bin
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cimc.html