Skip to content

Commit

Permalink
Merge pull request #134 from dsoper2/pow
Browse files Browse the repository at this point in the history
Fixes #133 to add support for Power Policies in Server Profiles
  • Loading branch information
dsoper2 authored Aug 26, 2024
2 parents d1bd91f + 3e6d3bc commit eb8c570
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions playbooks/intersight_server_profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}"
Expand Down
7 changes: 7 additions & 0 deletions plugins/modules/intersight_server_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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'),
Expand Down Expand Up @@ -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']:
Expand Down
Binary file added releases/cisco-intersight-2.0.16.tar.gz
Binary file not shown.

0 comments on commit eb8c570

Please sign in to comment.