diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d92d06..e3b3e0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # cisco.intersight Ansible Collection Changelog +## Version 2.0.16 +- Fixes #133 to add support for Power Policies in Server Profiles + ## Version 2.0.15 - Add CI workflow and workaround for ansible-test sanity failures diff --git a/galaxy.yml b/galaxy.yml index b71f977..33bf5e1 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -10,7 +10,7 @@ namespace: cisco name: intersight # The version of the collection. Must be compatible with semantic versioning -version: 2.0.15 +version: 2.0.16 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/playbooks/intersight_server_profile.yml b/playbooks/intersight_server_profile.yml index 0fda01e..811f8b5 100644 --- a/playbooks/intersight_server_profile.yml +++ b/playbooks/intersight_server_profile.yml @@ -56,6 +56,7 @@ lan_connectivity_policy: "{{ lan_connectivity_policy | default(omit) }}" local_user_policy: "{{ local_user_policy | default(omit) }}" ntp_policy: "{{ ntp_policy | default(omit) }}" + power_policy: "{{ power_policy | default(omit) }}" san_connectivity_policy: "{{ san_connectivity_policy | default(omit) }}" serial_over_lan_policy: "{{ serial_over_lan_policy | default(omit) }}" snmp_policy: "{{ snmp_policy | default(omit) }}" diff --git a/plugins/modules/intersight_server_profile.py b/plugins/modules/intersight_server_profile.py index b55ba1e..16a4e76 100644 --- a/plugins/modules/intersight_server_profile.py +++ b/plugins/modules/intersight_server_profile.py @@ -104,6 +104,10 @@ description: - Name of NTP Policy to associate with this profile. type: str + power_policy: + description: + - Name of Power Policy to associated with this profile. + type: str san_connectivity_policy: description: - Name of SAN Connectivity Policy to associate with this profile. @@ -272,6 +276,7 @@ def main(): lan_connectivity_policy=dict(type='str'), local_user_policy=dict(type='str'), ntp_policy=dict(type='str'), + power_policy=dict(type='str'), san_connectivity_policy=dict(type='str'), serial_over_lan_policy=dict(type='str'), snmp_policy=dict(type='str'), @@ -345,6 +350,8 @@ def main(): post_profile_to_policy(intersight, moid, resource_path='/iam/EndPointUserPolicies', policy_name=intersight.module.params['local_user_policy']) if moid and intersight.module.params['ntp_policy']: post_profile_to_policy(intersight, moid, resource_path='/ntp/Policies', policy_name=intersight.module.params['ntp_policy']) + if moid and intersight.module.params['power_policy']: + post_profile_to_policy(intersight, moid, resource_path='/power/Policies', policy_name=intersight.module.params['power_policy']) if moid and intersight.module.params['san_connectivity_policy']: post_profile_to_policy(intersight, moid, resource_path='/vnic/SanConnectivityPolicies', policy_name=intersight.module.params['san_connectivity_policy']) if moid and intersight.module.params['serial_over_lan_policy']: diff --git a/releases/cisco-intersight-2.0.16.tar.gz b/releases/cisco-intersight-2.0.16.tar.gz new file mode 100644 index 0000000..0cfeb50 Binary files /dev/null and b/releases/cisco-intersight-2.0.16.tar.gz differ