diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore index d89180c..5ae6edf 100644 --- a/.ansible-lint-ignore +++ b/.ansible-lint-ignore @@ -1 +1,7 @@ -roles/get_bmc_facts/tasks/main.yml var-naming[no-jinja] +roles/bmc_factory_reset/defaults/main.yml var-naming[no-role-prefix] +roles/bmc_fw_update/defaults/main.yml var-naming[no-role-prefix] +roles/bmc_reboot/defaults/main.yml var-naming[no-role-prefix] +roles/bmc_session/defaults/main.yml var-naming[no-role-prefix] +roles/enable_secure_boot/defaults/main.yml var-naming[no-role-prefix] +roles/get_bmc_facts/defaults/main.yml var-naming[no-role-prefix] +roles/update_bmc_password/defaults/main.yml var-naming[no-role-prefix] \ No newline at end of file diff --git a/roles/bmc_factory_reset/defaults/main.yml b/roles/bmc_factory_reset/defaults/main.yml index 82f10f8..b4d43f8 100644 --- a/roles/bmc_factory_reset/defaults/main.yml +++ b/roles/bmc_factory_reset/defaults/main.yml @@ -1,2 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. + --- # defaults file for bmc_factory_reset + +https_port: 443 diff --git a/roles/bmc_factory_reset/meta/argument_specs.yml b/roles/bmc_factory_reset/meta/argument_specs.yml new file mode 100644 index 0000000..df92474 --- /dev/null +++ b/roles/bmc_factory_reset/meta/argument_specs.yml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. +--- +argument_specs: + main: + version_added: "1.0.0" + short_description: Factory reset of DPU BMC + description: + - Reset all states of the DPU BMC to factory defaults. + options: + hostname: + required: true + type: str + description: + - DPU BMC IP Address. + username: + type: str + description: + - DPU BMC username. + password: + type: str + description: + - DPU BMC user password. + https_port: + type: int + description: + - DPU BMC port. + default: 443 diff --git a/roles/bmc_fw_update/defaults/main.yml b/roles/bmc_fw_update/defaults/main.yml index 8de1cd2..2636db8 100644 --- a/roles/bmc_fw_update/defaults/main.yml +++ b/roles/bmc_fw_update/defaults/main.yml @@ -9,3 +9,4 @@ bmc_fw_update_job_wait: true bmc_fw_update_inventory_name: bmc_firmware bmc_fw_update_image_file: /tmp/bf3-bmc-24.01-5_opn.fwpkg bmc_fw_update_image_url: https://content.mellanox.com/BlueField/BMC/24.01-5-Jan-2024/{{ bmc_fw_update_image_file | basename }} +https_port: 443 diff --git a/roles/bmc_fw_update/meta/argument_specs.yml b/roles/bmc_fw_update/meta/argument_specs.yml index 09857a9..9b23d40 100644 --- a/roles/bmc_fw_update/meta/argument_specs.yml +++ b/roles/bmc_fw_update/meta/argument_specs.yml @@ -8,6 +8,24 @@ argument_specs: description: - Update the Firmware of the DPU BMC from URL or local file. options: + hostname: + required: true + type: str + description: + - DPU BMC IP Address. + username: + type: str + description: + - DPU BMC username. + password: + type: str + description: + - DPU BMC user password. + https_port: + type: int + description: + - DPU BMC port. + default: 443 bmc_fw_update_reboot: description: - Provides the option to apply the update packages immediately or in the next reboot. diff --git a/roles/bmc_reboot/defaults/main.yml b/roles/bmc_reboot/defaults/main.yml index 9d51a65..97b1a9d 100644 --- a/roles/bmc_reboot/defaults/main.yml +++ b/roles/bmc_reboot/defaults/main.yml @@ -1,2 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. + --- # defaults file for bmc_reboot + +https_port: 443 diff --git a/roles/bmc_reboot/meta/argument_specs.yml b/roles/bmc_reboot/meta/argument_specs.yml new file mode 100644 index 0000000..e5dd564 --- /dev/null +++ b/roles/bmc_reboot/meta/argument_specs.yml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. +--- +argument_specs: + main: + version_added: "1.0.0" + short_description: Role to reset and restart DPU BMC + description: + - Role to reset and restart DPU BMC. + options: + hostname: + required: true + type: str + description: + - DPU BMC IP Address. + username: + type: str + description: + - DPU BMC username. + password: + type: str + description: + - DPU BMC user password. + https_port: + type: int + description: + - DPU BMC port. + default: 443 diff --git a/roles/bmc_session/defaults/main.yml b/roles/bmc_session/defaults/main.yml index f77e96a..0988218 100644 --- a/roles/bmc_session/defaults/main.yml +++ b/roles/bmc_session/defaults/main.yml @@ -1,2 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. + --- # defaults file for bmc_session + +https_port: 443 diff --git a/roles/bmc_session/meta/argument_specs.yml b/roles/bmc_session/meta/argument_specs.yml new file mode 100644 index 0000000..a632359 --- /dev/null +++ b/roles/bmc_session/meta/argument_specs.yml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. +--- +argument_specs: + main: + version_added: "1.0.0" + short_description: Role to manage DPU BMC session + description: + - Role to manage (create and delete) the DPU BMC authentication session. + options: + hostname: + required: true + type: str + description: + - DPU BMC IP Address. + username: + type: str + description: + - DPU BMC username. + password: + type: str + description: + - DPU BMC user password. + https_port: + type: int + description: + - DPU BMC port. + default: 443 diff --git a/roles/enable_secure_boot/defaults/main.yml b/roles/enable_secure_boot/defaults/main.yml index 408041d..38b19eb 100644 --- a/roles/enable_secure_boot/defaults/main.yml +++ b/roles/enable_secure_boot/defaults/main.yml @@ -1,2 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. + --- # defaults file for enable_secure_boot + +https_port: 443 diff --git a/roles/enable_secure_boot/meta/argument_specs.yml b/roles/enable_secure_boot/meta/argument_specs.yml new file mode 100644 index 0000000..a6b2d6f --- /dev/null +++ b/roles/enable_secure_boot/meta/argument_specs.yml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. +--- +argument_specs: + main: + version_added: "1.0.0" + short_description: Enable DPU secure boot + description: + - This role enables DPU secure boot. + options: + hostname: + required: true + type: str + description: + - DPU BMC IP Address. + username: + type: str + description: + - DPU BMC username. + password: + type: str + description: + - DPU BMC user password. + https_port: + type: int + description: + - DPU BMC port. + default: 443 diff --git a/roles/get_bmc_facts/defaults/main.yml b/roles/get_bmc_facts/defaults/main.yml index 78f080a..513d7a5 100644 --- a/roles/get_bmc_facts/defaults/main.yml +++ b/roles/get_bmc_facts/defaults/main.yml @@ -1,2 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. + --- # defaults file for get_bmc_facts + +https_port: 443 diff --git a/roles/get_bmc_facts/meta/argument_specs.yml b/roles/get_bmc_facts/meta/argument_specs.yml new file mode 100644 index 0000000..79d7b8c --- /dev/null +++ b/roles/get_bmc_facts/meta/argument_specs.yml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. +--- +argument_specs: + main: + version_added: "1.0.0" + short_description: Gathers facts about DPU BMC Inventory. + description: + - This role Gathers facts about DPU BMC software and firmware Inventory. + options: + hostname: + required: true + type: str + description: + - DPU BMC IP Address. + username: + type: str + description: + - DPU BMC username. + password: + type: str + description: + - DPU BMC user password. + https_port: + type: int + description: + - DPU BMC port. + default: 443 diff --git a/roles/update_bmc_password/defaults/main.yml b/roles/update_bmc_password/defaults/main.yml index f02d4fd..900829f 100644 --- a/roles/update_bmc_password/defaults/main.yml +++ b/roles/update_bmc_password/defaults/main.yml @@ -1,2 +1,7 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries. + --- # defaults file for update_bmc_password + +https_port: 443 diff --git a/roles/update_bmc_password/meta/argument_specs.yml b/roles/update_bmc_password/meta/argument_specs.yml index a63b1d0..294a839 100644 --- a/roles/update_bmc_password/meta/argument_specs.yml +++ b/roles/update_bmc_password/meta/argument_specs.yml @@ -8,6 +8,24 @@ argument_specs: description: - Update Password of DPU BMC for a given user. options: + hostname: + required: true + type: str + description: + - DPU BMC IP Address. + username: + type: str + description: + - DPU BMC username. + password: + type: str + description: + - DPU BMC user password. + https_port: + type: int + description: + - DPU BMC port. + default: 443 update_bmc_password_login_name: type: str description: DPU BMC username to change.