-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure V3 Elastigroup support in Ansible spot.cloud_modules (#9)
* Draft * Draft * updated version * Fixing documentation * Documentation Fixes * Fix type of preferred_zone parameter * debugging * reverting the MI changes made for debugging * Minor changes * Minor changes * updated version * Deletion Config Fixed * Fixing Tests * Fixing some of the lint Issues reported by sanity test run * Updating broken links in the README.md * Fixing module_utils location * Documentation Fixes * initial version * corrected the documentation * Updating python version in workflows * Intermediate version check-in * Correcting Image field dicts * Fixing the list parameters. * Changing HAS_ANSIBLE_MODULE to use global scope * azure v3 changes * Minor Fixes in data-types * Lint Fixes * Static Analysis Fixes * Static Analysis fixes * Update changelog.rst * Changelog update * review comments fixed * Resolved the module import error * module_utils fixes * Removed temporary debug statements --------- Co-authored-by: John Samuel <john.samuel@netapp.com>
- Loading branch information
1 parent
6c28347
commit 032fe70
Showing
12 changed files
with
1,789 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
- hosts: localhost | ||
tasks: | ||
- name: azure_elastigroup_sample | ||
spot.cloud_modules.azure_elastigroup: | ||
state: present | ||
uniqueness_by: "id" | ||
do_not_update: | ||
- region | ||
- resource_group_name | ||
- compute.os | ||
elastigroup: | ||
name: "ansible-azure-elastigroup-example" | ||
description: "a sample Azure Elastigroup created via Ansible" | ||
region: "eastus" | ||
resource_group_name: "AutomationResourceGroup" | ||
capacity: | ||
minimum: 2 | ||
maximum: 2 | ||
target: 2 | ||
health: | ||
health_check_types: ["vmState"] | ||
auto_healing: false | ||
grace_period: 300 | ||
unhealthy_duration: 120 | ||
scheduling: | ||
tasks: | ||
- is_enabled: true | ||
cron_expression: "* * * 1 *" | ||
type: "scaleUp" | ||
adjustment: 2 | ||
strategy: | ||
draining_timeout: 300 | ||
fallback_to_od: true | ||
revert_to_spot: | ||
perform_at: "always" | ||
spot_percentage: 100 | ||
signals: | ||
- timeout: 180 | ||
type: "vmReady" | ||
- timeout: 210 | ||
type: "vmReadyToShutdown" | ||
compute: | ||
os: "Linux" | ||
zones: ["1", "2", "3"] | ||
preferred_zones: ["1", "2"] | ||
vm_sizes: | ||
od_sizes: ["standard_ds1_v2", "standard_ds2_v2"] | ||
spot_sizes: ["standard_ds1_v2", "standard_ds2_v2"] | ||
preferred_spot_sizes: ["standard_ds1_v2"] | ||
launch_specification: | ||
data_disks: | ||
- lun: 0 | ||
size_g_b: 30 | ||
type: "Standard_LRS" | ||
image: | ||
marketplace: | ||
publisher: "Canonical" | ||
version: "latest" | ||
sku: "18.04-LTS" | ||
offer: "UbuntuServer" | ||
login: | ||
user_name: "ubuntu" | ||
ssh_public_key: <add-your-ssh-key>" | ||
network: | ||
resource_group_name: "AutomationResourceGroup" | ||
virtual_network_name: "Automation-VirtualNetwork" | ||
network_interfaces: | ||
- is_primary: true | ||
assign_public_ip: true | ||
public_ip_sku: "Standard" | ||
subnet_name: "Automation-PrivateSubnet" | ||
enable_ip_forwarding: true | ||
os_disk: | ||
size: 30 | ||
type: "Standard_LRS" | ||
shutdown_script: "VGhpcyBpcyBzaHV0ZG93biBzY3JpcHQ=" | ||
tags: | ||
- tag_key: "Creator" | ||
tag_value: "Ansible Test" | ||
register: result | ||
- debug: var=result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.