Install base packages for all racadm usage

This commit is contained in:
Jeremy Gardais 2018-11-26 11:48:59 +01:00
parent e3e72be257
commit b81bc242ac
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 40 additions and 2 deletions

View File

@ -4,3 +4,4 @@
### Features
* Add linux.dell.com repo
* Set "present" state for Dell hardware
* Install base packages for all racadm usage

View File

@ -16,8 +16,9 @@ A role to manage Openmanage installation and configuration.
* **
openmanage__repositories**: List of APT repositories that can provide OpenManage. Each entry is a dict [default: `See default/main.yml`].
* **openmanage__base_packages**: List of base packages in order to provide Openmanage [default: `openmanage`].
* **openmanage__deploy_state**: The desired state this role should achieve. [default for Dell hardware: `present`].
* **openmanage__install_recommends**: If recommended packages should be install. [default: `False`].
* **openmanage__base_packages**: List of base packages for all racadm base usage [default: `See default/main.yml`].
## Example Playbook
@ -34,6 +35,7 @@ openmanage__repositories**: List of APT repositories that can provide OpenMan
This role will:
* Add an APT repository in order to provide OpenManage.
* Install basic packages for all racadm usage.
## Development

View File

@ -32,7 +32,7 @@ openmanage__repositories:
else "absent" }}'
# ]]]
# ]]]
# Packages and installation [[[
# Installation and Packages [[[
# -----------------------------
# .. envvar:: openmanage__deploy_state [[[
@ -49,4 +49,29 @@ openmanage__deploy_state: '{{ "present"
if (ansible_system_vendor is search("Dell"))
else "absent" }}'
# ]]]
# .. envvar:: openmanage__install_recommends [[[
#
# If recommended packages should be install? Possible options:
#
# ``False``
# Default.
#
# ``True``
#
openmanage__install_recommends: False
# ]]]
# .. envvar:: openmanage__base_packages [[[
#
# List of base packages to install.
#
openmanage__base_packages:
- 'srvadmin-base'
- 'srvadmin-idracadm7'
- 'srvadmin-idrac-ivmcli'
- 'srvadmin-idrac-vmcli'
- 'srvadmin-omcommon'
- 'srvadmin-server-cli'
- 'srvadmin-server-snmp'
- 'srvadmin-storageservices'
# ]]]
# ]]]

View File

@ -33,3 +33,13 @@
when: (openmanage__deploy_state == "present") and
(openmanage__register_repositories.changed or
openmanage__register_key.changed)
# Manage packages [[[1
## Manage base system packages
- name: Ensure base packages are in there desired state
package:
name: '{{ item }}'
state: '{{ "present" if (openmanage__deploy_state == "present") else "absent" }}'
install_recommends: '{{ openmanage__install_recommends | bool }}'
with_flattened:
- '{{ openmanage__base_packages | to_nice_json }}'