salt.modules.ilo
Manage HP ILO
- depends
-
hponcfg (SmartStart Scripting Toolkit Linux Edition)
-
Reset a users password
CLI Example:
salt '*' ilo.change_password damianMyerscough
salt.modules.ilo.change_password(username, password)
-
Change a username
CLI Example:
salt '*' ilo.change_username damian diana
salt.modules.ilo.change_username(old_username, new_username)
-
Configure Network Interface
CLI Example:
salt '*' ilo.configure_network [IP ADDRESS] [NETMASK] [GATEWAY]
salt.modules.ilo.configure_network(ip, netmask, gateway)
-
Configure SNMP
CLI Example:
salt '*' ilo.configure_snmp [COMMUNITY STRING] [SNMP PORT] [SNMP TRAP PORT]
salt.modules.ilo.configure_snmp(community, snmp_port=161, snmp_trapport=161)
-
Create user
CLI Example:
salt '*' ilo.create_user damian secretagent VIRTUAL_MEDIA_PRIV
If no permissions are specify the user will only have a read-only account.
Supported privelges:
ADMIN_PRIV Enables the user to administer user accounts.
REMOTE_CONS_PRIV Enables the user to access the Remote Console functionality.
RESET_SERVER_PRIV Enables the user to remotely manipulate the server power setting.
VIRTUAL_MEDIA_PRIV Enables the user permission to access the virtual media functionality.
CONFIG_ILO_PRIV Enables the user to configure iLO settings.
salt.modules.ilo.create_user(name, password, *privileges)
-
Delete a users SSH key from the ILO
CLI Example:
salt '*' ilo.delete_user_sshkey damian
salt.modules.ilo.delete_ssh_key(username)
-
Delete a user
CLI Example:
salt '*' ilo.delete_user damian
salt.modules.ilo.delete_user(username)
-
Disable DHCP
CLI Example:
salt '*' ilo.disable_dhcp
salt.modules.ilo.disable_dhcp()
-
Disable the SSH daemon
CLI Example:
salt '*' ilo.disable_ssh
salt.modules.ilo.disable_ssh()
-
Enable DHCP
CLI Example:
salt '*' ilo.enable_dhcp
salt.modules.ilo.enable_dhcp()
-
Enable the SSH daemon
CLI Example:
salt '*' ilo.enable_ssh
salt.modules.ilo.enable_ssh()
-
Returns local user information, excluding the password
CLI Example:
salt '*' ilo.get_user damian
salt.modules.ilo.get_user(username)
-
Show global settings
CLI Example:
salt '*' ilo.global_settings
salt.modules.ilo.global_settings()
-
List all users
CLI Example:
salt '*' ilo.list_users
salt.modules.ilo.list_users()
-
List all users in detail
CLI Example:
salt '*' ilo.list_users_info
salt.modules.ilo.list_users_info()
-
Grab the current network settings
CLI Example:
salt '*' ilo.network
salt.modules.ilo.network()
-
Configure the port HTTP should listen on
CLI Example:
salt '*' ilo.set_http_port 8080
salt.modules.ilo.set_http_port(port=80)
-
Configure the port HTTPS should listen on
CLI Example:
salt '*' ilo.set_https_port 4334
salt.modules.ilo.set_https_port(port=443)
-
Configure SSH public keys for specific users
CLI Example:
salt '*' ilo.set_ssh_key "ssh-dss AAAAB3NzaC1kc3MAAACBA... damian"
The SSH public key needs to be DSA and the last argument in the key needs to be the username (case-senstive) of the ILO username.
salt.modules.ilo.set_ssh_key(public_key)
-
Enable SSH on a user defined port
CLI Example:
salt '*' ilo.set_ssh_port 2222
salt.modules.ilo.set_ssh_port(port=22)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.ilo.html