Skip to content

Commit

Permalink
Merge pull request #42 from dsoper2/ci
Browse files Browse the repository at this point in the history
Test CI for galaxy 1.11.0
  • Loading branch information
dsoper2 committed Aug 23, 2024
2 parents 5e5266e + ad22918 commit f2ae69b
Show file tree
Hide file tree
Showing 51 changed files with 509 additions and 316 deletions.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: cisco
name: ucs

# The version of the collection. Must be compatible with semantic versioning
version: 1.10.0
version: 1.11.0

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
7 changes: 5 additions & 2 deletions playbooks/ucs_ip_pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
parent_org_path: root
description: level1 org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Configure IPv4 and IPv6 address pool
cisco.ucs.ucs_ip_pool:
Expand All @@ -47,6 +47,7 @@
- ipv6_first_addr: fe80::1cae:7992:d7a1:ec07
ipv6_last_addr: fe80::1cae:7992:d7a1:ecfe
ipv6_default_gw: fe80::1cae:7992:d7a1:ecff
delegate_to: localhost

- name: Remove IPv4 and IPv6 address pool blocks
cisco.ucs.ucs_ip_pool:
Expand All @@ -61,18 +62,20 @@
- ipv6_first_addr: fe80::1cae:7992:d7a1:ec07
ipv6_last_addr: fe80::1cae:7992:d7a1:ecfe
state: absent
delegate_to: localhost

- name: Remove IPv4 and IPv6 address pool
cisco.ucs.ucs_ip_pool:
<<: *login_info
name: ip-pool-01
org_dn: org-root/org-level1
state: absent
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: level1
parent_org_path: root
state: absent
delegate_to: localhost
delegate_to: localhost
6 changes: 4 additions & 2 deletions playbooks/ucs_lan_connectivity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
parent_org_path: root
description: level1 org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Configure LAN Connectivity Policy
cisco.ucs.ucs_lan_connectivity:
Expand All @@ -50,18 +50,20 @@
overlay_vnic: eno3
iscsi_adapter_policy: default
vlan_name: Container-TNT-A-NFS
delegate_to: localhost

- name: Remove LAN Connectivity Policy
cisco.ucs.ucs_lan_connectivity:
<<: *login_info
name: Cntr-FC-Boot
org_dn: org-root/org-level1
state: absent
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: level1
parent_org_path: root
state: absent
delegate_to: localhost
delegate_to: localhost
6 changes: 4 additions & 2 deletions playbooks/ucs_mac_pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
parent_org_path: root
description: level1 org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Configure MAC address pool
cisco.ucs.ucs_mac_pool:
Expand All @@ -34,18 +34,20 @@
first_addr: 00:25:B5:00:66:00
last_addr: 00:25:B5:00:67:F3
order: sequential
delegate_to: localhost

- name: Remove MAC address pool
cisco.ucs.ucs_mac_pool:
<<: *login_info
name: mac-A
org_dn: org-root/org-level1
state: absent
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: level1
parent_org_path: root
state: absent
delegate_to: localhost
delegate_to: localhost
8 changes: 6 additions & 2 deletions playbooks/ucs_managed_objects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
parent_org_path: root
description: level1 org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Configure Network Control Policy
cisco.ucs.ucs_managed_objects:
Expand All @@ -39,6 +39,7 @@
lldp_receive: enabled
lldp_transmit: enabled
name: Enable-CDP-LLDP
delegate_to: localhost

- name: Remove Network Control Policy
cisco.ucs.ucs_managed_objects:
Expand All @@ -50,6 +51,7 @@
parent_mo_or_dn: org-root/org-level1
name: Enable-CDP-LLDP
state: absent
delegate_to: localhost

- name: Configure Boot Policy Using JSON objects list with children
cisco.ucs.ucs_managed_objects:
Expand Down Expand Up @@ -100,6 +102,7 @@
}
]
}
delegate_to: localhost

- name: Remove Boot Policy Using JSON objects list
cisco.ucs.ucs_managed_objects:
Expand All @@ -114,11 +117,12 @@
}
}
state: absent
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: level1
parent_org_path: root
state: absent
delegate_to: localhost
delegate_to: localhost
6 changes: 5 additions & 1 deletion playbooks/ucs_ntp_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,26 @@
ntp_server: 10.10.10.10
description: Internal NTP Server by IP address
state: present
delegate_to: localhost

- name: Configure NTP server
cisco.ucs.ucs_ntp_server:
<<: *login_info
ntp_server: pool.ntp.org
description: External NTP Server by hostname
state: present
delegate_to: localhost

- name: Remove NTP server
cisco.ucs.ucs_ntp_server:
<<: *login_info
ntp_server: 10.10.10.10
state: absent
delegate_to: localhost

- name: Remove NTP server
cisco.ucs.ucs_ntp_server:
<<: *login_info
ntp_server: pool.ntp.org
state: absent
state: absent
delegate_to: localhost
11 changes: 7 additions & 4 deletions playbooks/ucs_org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@
org_name: test
description: testing org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Update UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: test
description: Testing org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: test
state: absent
delegate_to: localhost
delegate_to: localhost

- name: Add UCS Organization
cisco.ucs.ucs_org:
Expand All @@ -47,7 +47,7 @@
parent_org_path: root
description: level1 org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Add UCS Organization
cisco.ucs.ucs_org:
Expand All @@ -56,6 +56,7 @@
parent_org_path: root/level1
description: level2 org
state: present
delegate_to: localhost

- name: Add UCS Organization
cisco.ucs.ucs_org:
Expand All @@ -64,10 +65,12 @@
parent_org_path: root/level1/level2
description: level3 org
state: present
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: level2
parent_org_path: root/level1
state: absent
delegate_to: localhost
8 changes: 4 additions & 4 deletions playbooks/ucs_query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
cisco.ucs.ucs_query:
<<: *login_info
class_ids: computeBlade
delegate_to: localhost
delegate_to: localhost
register: response

- name: show response
Expand All @@ -32,7 +32,7 @@
cisco.ucs.ucs_query:
<<: *login_info
class_ids: computeBlade, fabricVlan
delegate_to: localhost
delegate_to: localhost
register: response

- name: show response
Expand All @@ -43,7 +43,7 @@
cisco.ucs.ucs_query:
<<: *login_info
distinguished_names: org-root
delegate_to: localhost
delegate_to: localhost
register: response

- name: show response
Expand All @@ -54,7 +54,7 @@
cisco.ucs.ucs_query:
<<: *login_info
distinguished_names: org-root, sys/rack-unit-1, sys/chassis-1/blade-2
delegate_to: localhost
delegate_to: localhost
register: response

- name: show response
Expand Down
6 changes: 4 additions & 2 deletions playbooks/ucs_san_connectivity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
parent_org_path: root
description: level1 org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Configure SAN Connectivity Policy
cisco.ucs.ucs_san_connectivity:
Expand All @@ -39,18 +39,20 @@
- name: Fabric-B
vhba_template: vHBA-Template-B
adapter_policy: Linux
delegate_to: localhost

- name: Remove SAN Connectivity Policy
cisco.ucs.ucs_san_connectivity:
<<: *login_info
name: Cntr-FC-Boot
org_dn: org-root/org-level1
state: absent
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: level1
parent_org_path: root
state: absent
delegate_to: localhost
delegate_to: localhost
15 changes: 9 additions & 6 deletions playbooks/ucs_service_profile_association.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
delegate_to: localhost
register: result
until: result.assign_state == 'assigned' and result.assoc_state == 'associated'
retries: 10
delay: 60
retries: 1
delay: 2
ignore_errors: true

- name: Change Service Profile Association to Pool
cisco.ucs.ucs_service_profile_association:
Expand All @@ -38,8 +39,9 @@
delegate_to: localhost
register: result
until: result.assign_state == 'assigned' and result.assoc_state == 'associated'
retries: 10
delay: 60
retries: 1
delay: 2
ignore_errors: true

- name: Disassociate Service Profile
cisco.ucs.ucs_service_profile_association:
Expand All @@ -49,5 +51,6 @@
delegate_to: localhost
register: result
until: result.assign_state == 'unassigned' and result.assoc_state == 'unassociated'
retries: 10
delay: 60
retries: 1
delay: 2
ignore_errors: true
7 changes: 5 additions & 2 deletions playbooks/ucs_service_profile_from_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
parent_org_path: root
description: level1 org
state: present
delegate_to: localhost
delegate_to: localhost

- name: Configure Service Profile Template with LAN/SAN Connectivity and all other options defaulted
cisco.ucs.ucs_service_profile_template:
Expand All @@ -42,6 +42,7 @@
server_pool: Container-Pool
host_firmware_package: 3.1.2b
bios_policy: Docker
delegate_to: localhost

- name: Configure Service Profile from Template
cisco.ucs.ucs_service_profile_from_template:
Expand All @@ -51,18 +52,20 @@
user_label: SP Instance
power_state: down
source_template: sp-template
delegate_to: localhost

- name: Remove Service Profile Template
cisco.ucs.ucs_service_profile_template:
<<: *login_info
name: sp-template
org_dn: org-root/org-level1
state: absent
delegate_to: localhost

- name: Remove UCS Organization
cisco.ucs.ucs_org:
<<: *login_info
org_name: level1
parent_org_path: root
state: absent
delegate_to: localhost
delegate_to: localhost
Loading

0 comments on commit f2ae69b

Please sign in to comment.