-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* example fix (#420) Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> * Add cluster URL to response only when there is cluster creation (#402) * Create cluster url when it is required * Minor fix * fiql string in filtering (#423) * fiql string in filtering * fix * Add Tests * example for filter string --------- Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> Co-authored-by: Alaa Bishtawi <[email protected]> * Bug/issue#383 (#411) * Fix Jekyll Build * fix * Fix #391 and #418 (#419) * Create cluster url when it is required * Minor fix * Change api url for fetching time machine using name to get complete info same as uuid * Add attribute in clone modules in ndb for creation or refresh using latestSnapshot * Minor typo fix * Minor typo fix * functionality to update owner of vms (#412) * functionality to update owner of vm * sanity fix * add test --------- Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> Co-authored-by: Alaa Bishtawi <[email protected]> * example for vms inventory (#410) Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> * fix for custom filter and examples (#417) * fix for custom filter and examples * black fix * sanity fix * Add test --------- Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> Co-authored-by: Alaa Bishtawi <[email protected]> * example for vms inventory (#426) * example for vms inventory * ansible cfg * Move cfg to inventory example folder * Minor name changes * Minor fix --------- Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> Co-authored-by: Pradeepsingh Bhati <[email protected]> * Add support for PC Categories (#405) Co-authored-by: Gianluca Salvo <[email protected]> * Bug/issue#400 (#403) * fix issue #400 * fix issue #400 --------- Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> * example for VMs with guest customization file which injects variables from the playbook (#396) Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> * Fix: Syntax Errors in Create App Security Rule Ex (#394) * functionality to handle issue when size of new disk is absent (#393) Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> * example fix (#392) Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> * sanity fix * fix for issue#360 (#408) * fix for issue#360 * fix --------- Co-authored-by: Gevorg-Khachatryaan <Gevorg1050.1> * improve clone examples (#407) * imporve clone examples * Fix Examples * sanity fix * disbale tests * Enhance Acp Tests * fix disks issue when size gb is not given for clone image disks * Set release version 1.9.1 * enable image tests * enable foundation sanity test * Minor foundation test fix * Enable pc tests * Enable karbon and foundation sanity * disables tests * enables tests * enable pc tests * add tests for clones with latest snapshot. And enable clones and NDB database sanity tests * skip protection rules tests * Add random naming for acp test with user reference * Bug/191 fix database sanity test (#430) * Revert "Bug/issue#383 (#411)" This reverts commit d1a0016. * Fix Properties map * Skip jelkyll check on database sanity test build issue --------- Co-authored-by: Pradeepsingh Bhati <[email protected]> * fix ntnx_database_sanity * Add Contributaiong (#431) * Add Contributaiong * enhance contributaion * fix readme * Add comments to sample var files for simplicity * Minor typo --------- Co-authored-by: Pradeepsingh Bhati <[email protected]> * Release Notes and changelog changes * Minor typo fix * remove unrequired file * Minor release bug list change due to non cherry picks --------- Co-authored-by: Gevorg Khachatryan <[email protected]> Co-authored-by: Alaa Bishtawi <[email protected]> Co-authored-by: Gianluca Salvo <[email protected]> Co-authored-by: Gianluca Salvo <[email protected]> Co-authored-by: Nathaniel Roberts <[email protected]>
- Loading branch information
1 parent
923e9c7
commit b6dc17a
Showing
105 changed files
with
1,308 additions
and
148 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
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,7 @@ | ||
[defaults] | ||
inventory = nutanix.yaml | ||
|
||
[inventory] | ||
enable_plugins = nutanix.ncp.ntnx_prism_vm_inventory | ||
|
||
|
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,13 @@ | ||
plugin: nutanix.ncp.ntnx_prism_vm_inventory | ||
nutanix_hostname: <pc_ip> | ||
nutanix_username: <username> | ||
nutanix_password: <password> | ||
validate_certs: false | ||
data: {"offset": 0, "length": 1000} | ||
groups: | ||
group_1: "'<name_prefix>' in name" | ||
group_2: "'<vm_name>'==name" | ||
keyed_groups: | ||
- prefix: "host" | ||
separator: ':' | ||
key: "ansible_host" |
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,121 @@ | ||
--- | ||
- name: Create clone | ||
hosts: localhost | ||
gather_facts: false | ||
collections: | ||
- nutanix.ncp | ||
module_defaults: | ||
group/nutanix.ncp.ntnx: | ||
nutanix_host: <ndb-era-ip> | ||
nutanix_username: <username> | ||
nutanix_password: <password> | ||
validate_certs: false | ||
|
||
tasks: | ||
- set_fact: | ||
clone_db: | ||
name: <Clone Db Name> | ||
db_params_profile: | ||
name: <Db Profile Name> | ||
vm: | ||
name: <Vm Name> | ||
password: <Vm password> | ||
cluster: | ||
name: <Cluster Name> | ||
network_profile: | ||
name: <Network Profile Name> | ||
compute_profile: | ||
name: <Compute Profile Name> | ||
public_ssh_key: <Public SSH Key> | ||
time_machine: | ||
name: <Time Machine Name> | ||
snapshot: | ||
uuid: <Snapshot UUID> | ||
|
||
- name: create clone using snapshot | ||
ntnx_ndb_database_clones: | ||
name: "{{clone_db.name}}" | ||
desc: "ansible-created-clone" | ||
|
||
db_params_profile: | ||
name: "{{db_params_profile.name}}" | ||
|
||
db_vm: | ||
create_new_server: | ||
name: "{{ vm.name }}" | ||
desc: "vm for db server" | ||
password: "{{ vm.password }}" | ||
cluster: | ||
name: "{{cluster.name}}" | ||
network_profile: | ||
name: "{{ network_profile.name }}" | ||
compute_profile: | ||
name: "{{ compute_profile.name }}" | ||
pub_ssh_key: "{{ public_ssh_key }}" | ||
|
||
postgres: | ||
db_password: "{{vm.password}}" | ||
|
||
time_machine: | ||
name: "{{time_machine.name}}" | ||
snapshot_uuid: "{{snapshot.uuid}}" | ||
|
||
removal_schedule: | ||
days: 2 | ||
timezone: "Asia/Calcutta" | ||
remind_before_in_days: 1 | ||
delete_database: True | ||
|
||
refresh_schedule: | ||
days: 2 | ||
time: "12:00:00" | ||
timezone: "Asia/Calcutta" | ||
|
||
register: output | ||
|
||
- debug: | ||
msg: "{{output}}" | ||
|
||
- name: create clone using point in time | ||
ntnx_ndb_database_clones: | ||
name: "{{clone_db.name}}" | ||
desc: "ansible-created-clone" | ||
|
||
db_params_profile: | ||
name: "{{db_params_profile.name}}" | ||
|
||
db_vm: | ||
create_new_server: | ||
name: "{{ vm.name }}" | ||
desc: "vm for db server" | ||
password: "{{ vm.password }}" | ||
cluster: | ||
name: "{{cluster.name}}" | ||
network_profile: | ||
name: "{{ network_profile.name }}" | ||
compute_profile: | ||
name: "{{ compute_profile.name }}" | ||
pub_ssh_key: "{{ public_ssh_key }}" | ||
|
||
postgres: | ||
db_password: "{{vm.password}}" | ||
|
||
time_machine: | ||
name: "{{time_machine.name}}" | ||
pitr_timestamp: "2023-02-28 12:00:00" | ||
timestamp: "Asia/Calcutta" | ||
|
||
removal_schedule: | ||
days: 2 | ||
timezone: "Asia/Calcutta" | ||
remind_before_in_days: 1 | ||
delete_database: True | ||
|
||
refresh_schedule: | ||
days: 2 | ||
time: "12:00:00" | ||
timezone: "Asia/Calcutta" | ||
register: output | ||
|
||
- debug: | ||
msg: "{{output}}" |
Oops, something went wrong.