Module to provide Cisco UCS compatibility to Salt
Spencer Ervin <spencer_ervin@hotmail.com>
new
none
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:
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.
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 adapters 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.
name (str) -- The name of the volume on the CIMC device.
remote_share (str) -- The file share link that will be used to mount the share. This can be NFS, CIFS, or WWW. This
file. (must be the directory path and not the full path to the remote) --
remote_file (str) -- The name of the remote file to mount. It must reside within remote_share.
mount_type (str) -- The type of share to mount. Valid options are nfs, cifs, and www.
username (str) -- An optional requirement to pass credentials to the remote share. If not provided, an
made. (unauthenticated connection attempt will be) --
password (str) -- An optional requirement to pass a password to the remote share. If not provided, an
made. --
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.
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.
CLI Example:
salt '*' cimc.set_logging_levels remote=error local=notice
Sets the NTP servers configuration. This will also enable the client NTP service.
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.
policy (str) -- The action to be taken when chassis power is restored after
following (delayed with this option. This can be one of the) --
reset: The server is allowed to boot up normally when power is restored. The server can restart immediately or, optionally, after a fixed or random delay.
stay-off: The server remains off until it is manually restarted.
last-state: The server restarts and the system attempts to restore any processes that were running before power was lost.
delayType (str) -- If the selected policy is reset, the restart can be
following --
fixed: The server restarts after a fixed delay.
random: The server restarts after a random delay.
delayValue (int) -- If a fixed delay is selected, once chassis power is
rebooting (restored and the Cisco IMC has finished) --
for (the system waits) --
an (the specified number of seconds before restarting the server. Enter) --
240. (integer between 0 and) --
CLI Example:
salt '*' cimc.set_power_configuration stay-off
salt '*' cimc.set_power_configuration reset fixed 0
Set the SYSLOG server on the host.
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.
CLI Example:
salt '*' cimc.set_user 11 username=admin password=foobar priv=admin active
Update the BIOS firmware through TFTP.
CLI Example:
salt '*' cimc.tftp_update_bios foo.bar.com HP-SL2.cap
Update the CIMC firmware through TFTP.
CLI Example:
salt '*' cimc.tftp_update_cimc foo.bar.com HP-SL2.bin