Install base packages for all racadm usage
This commit is contained in:
parent
e3e72be257
commit
b81bc242ac
|
@ -4,3 +4,4 @@
|
||||||
### Features
|
### Features
|
||||||
* Add linux.dell.com repo
|
* Add linux.dell.com repo
|
||||||
* Set "present" state for Dell hardware
|
* Set "present" state for Dell hardware
|
||||||
|
* Install base packages for all racadm usage
|
||||||
|
|
|
@ -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__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__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
|
## Example Playbook
|
||||||
|
|
||||||
|
@ -34,6 +35,7 @@ openmanage__repositories** : List of APT repositories that can provide OpenMan
|
||||||
|
|
||||||
This role will :
|
This role will :
|
||||||
* Add an APT repository in order to provide OpenManage.
|
* Add an APT repository in order to provide OpenManage.
|
||||||
|
* Install basic packages for all racadm usage.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ openmanage__repositories:
|
||||||
else "absent" }}'
|
else "absent" }}'
|
||||||
# ]]]
|
# ]]]
|
||||||
# ]]]
|
# ]]]
|
||||||
# Packages and installation [[[
|
# Installation and Packages [[[
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
|
|
||||||
# .. envvar:: openmanage__deploy_state [[[
|
# .. envvar:: openmanage__deploy_state [[[
|
||||||
|
@ -49,4 +49,29 @@ openmanage__deploy_state: '{{ "present"
|
||||||
if (ansible_system_vendor is search("Dell"))
|
if (ansible_system_vendor is search("Dell"))
|
||||||
else "absent" }}'
|
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'
|
||||||
|
# ]]]
|
||||||
# ]]]
|
# ]]]
|
||||||
|
|
|
@ -33,3 +33,13 @@
|
||||||
when: (openmanage__deploy_state == "present") and
|
when: (openmanage__deploy_state == "present") and
|
||||||
(openmanage__register_repositories.changed or
|
(openmanage__register_repositories.changed or
|
||||||
openmanage__register_key.changed)
|
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 }}'
|
||||||
|
|
Loading…
Reference in New Issue