diff --git a/examples/disk_create.yaml b/examples/decort_disk/disk_create.yaml similarity index 100% rename from examples/disk_create.yaml rename to examples/decort_disk/disk_create.yaml diff --git a/examples/disk_delete.yaml b/examples/decort_disk/disk_delete.yaml similarity index 100% rename from examples/disk_delete.yaml rename to examples/decort_disk/disk_delete.yaml diff --git a/examples/disk_limitIO.yaml b/examples/decort_disk/disk_limitIO.yaml similarity index 100% rename from examples/disk_limitIO.yaml rename to examples/decort_disk/disk_limitIO.yaml diff --git a/examples/disk_rename.yaml b/examples/decort_disk/disk_rename.yaml similarity index 100% rename from examples/disk_rename.yaml rename to examples/decort_disk/disk_rename.yaml diff --git a/examples/disk_restore.yaml b/examples/decort_disk/disk_restore.yaml similarity index 100% rename from examples/disk_restore.yaml rename to examples/decort_disk/disk_restore.yaml diff --git a/examples/create-osimage.yaml b/examples/decort_osimage/create-osimage.yaml similarity index 100% rename from examples/create-osimage.yaml rename to examples/decort_osimage/create-osimage.yaml diff --git a/examples/create-virtual-osimage.yaml b/examples/decort_osimage/create-virtual-osimage.yaml similarity index 100% rename from examples/create-virtual-osimage.yaml rename to examples/decort_osimage/create-virtual-osimage.yaml diff --git a/examples/get-osimage.yaml b/examples/decort_osimage/get-osimage.yaml similarity index 100% rename from examples/get-osimage.yaml rename to examples/decort_osimage/get-osimage.yaml diff --git a/examples/rename-osimage.yaml b/examples/decort_osimage/rename-osimage.yaml similarity index 100% rename from examples/rename-osimage.yaml rename to examples/decort_osimage/rename-osimage.yaml diff --git a/examples/decort_rg/changeLimits_rg.yaml b/examples/decort_rg/changeLimits_rg.yaml new file mode 100644 index 0000000..462fc88 --- /dev/null +++ b/examples/decort_rg/changeLimits_rg.yaml @@ -0,0 +1,20 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "rg_created_by_module" + # or + #rg_id: 999 + account_id: 99 + quotas: + cpu: 8 + ram: 4096 + disk: 20 + ext_ips: 10 + net_transfer: 200 + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/changeResTypes_rg.yaml b/examples/decort_rg/changeResTypes_rg.yaml new file mode 100644 index 0000000..655ed4a --- /dev/null +++ b/examples/decort_rg/changeResTypes_rg.yaml @@ -0,0 +1,21 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "rg_created_by_module" + # or + #rg_id: 999 + account_id: 99 + resType: + - vins + - compute + - k8s + - openshift + - lb + - flipgroup + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/create_rg.yaml b/examples/decort_rg/create_rg.yaml new file mode 100644 index 0000000..b702613 --- /dev/null +++ b/examples/decort_rg/create_rg.yaml @@ -0,0 +1,30 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "rg_created_by_module" + account_id: 99 + owner: "user_1" #Leave blank to set current user as owner. + quotas: + cpu: 8 + ram: 4096 + disk: 20 + ext_ips: 10 + net_transfer: 200 + access: + action: "grant" + user: "user_2" + right: "RCX" + def_netType: "PRIVATE" + ipcidr: "" "192.168.1.1" + extNetId: 0 + extNetIp: "" "10.100.1.10" + resType: + - vins + - compute + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/delete_rg.yaml b/examples/decort_rg/delete_rg.yaml new file mode 100644 index 0000000..cb0ead2 --- /dev/null +++ b/examples/decort_rg/delete_rg.yaml @@ -0,0 +1,15 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "test_rg" + # or + #rg_id: 999 + account_id: 99 + state: present + permanently: True + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/disable_rg.yaml b/examples/decort_rg/disable_rg.yaml new file mode 100644 index 0000000..d62e2ba --- /dev/null +++ b/examples/decort_rg/disable_rg.yaml @@ -0,0 +1,12 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_id: 999 # rg can be restored only by rg id + account_id: 99 + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/enable_rg.yaml b/examples/decort_rg/enable_rg.yaml new file mode 100644 index 0000000..a562791 --- /dev/null +++ b/examples/decort_rg/enable_rg.yaml @@ -0,0 +1,14 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "rg_created_by_module" + # or + #rg_id: 999 + account_id: 99 + state: enabled + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/grantAccess_rg.yaml b/examples/decort_rg/grantAccess_rg.yaml new file mode 100644 index 0000000..5266a33 --- /dev/null +++ b/examples/decort_rg/grantAccess_rg.yaml @@ -0,0 +1,18 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "rg_created_by_module" + # or + #rg_id: 999 + account_id: 99 + access: + action: "grant" + user: "new_user" + right: "R" + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/rename_rg.yaml b/examples/decort_rg/rename_rg.yaml new file mode 100644 index 0000000..3fa03dd --- /dev/null +++ b/examples/decort_rg/rename_rg.yaml @@ -0,0 +1,15 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "old_rg_name" + # or + #rg_id: 1737 + account_id: 99 + rename: "new_rg_name" + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/revokeAccess_rg.yaml b/examples/decort_rg/revokeAccess_rg.yaml new file mode 100644 index 0000000..a16b6d1 --- /dev/null +++ b/examples/decort_rg/revokeAccess_rg.yaml @@ -0,0 +1,17 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "rg_created_by_module" + # or + #rg_id: 999 + account_id: 99 + access: + action: "revoke" + user: "old_user" + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/decort_rg/setDefNet_rg.yaml b/examples/decort_rg/setDefNet_rg.yaml new file mode 100644 index 0000000..dcb9854 --- /dev/null +++ b/examples/decort_rg/setDefNet_rg.yaml @@ -0,0 +1,16 @@ +- hosts: localhost + tasks: + - name: create + decort_rg: + authenticator: oauth2 + controller_url: "https://cloud.digitalenergy.online" + rg_name: "rg_created_by_module" + # or + #rg_id: 999 + account_id: 99 + def_netType: "PRIVATE" + def_netId: 199 + state: present + verify_ssl: false + register: my_rg + delegate_to: localhost diff --git a/examples/hashivault_create_engine.yaml b/examples/hashivault/hashivault_create_engine.yaml similarity index 100% rename from examples/hashivault_create_engine.yaml rename to examples/hashivault/hashivault_create_engine.yaml diff --git a/examples/hashivault_create_secret.yaml b/examples/hashivault/hashivault_create_secret.yaml similarity index 100% rename from examples/hashivault_create_secret.yaml rename to examples/hashivault/hashivault_create_secret.yaml diff --git a/examples/hashivault_example.yaml b/examples/hashivault/hashivault_example.yaml similarity index 100% rename from examples/hashivault_example.yaml rename to examples/hashivault/hashivault_example.yaml diff --git a/examples/hashivault_plugin_example.yaml b/examples/hashivault/hashivault_plugin_example.yaml similarity index 100% rename from examples/hashivault_plugin_example.yaml rename to examples/hashivault/hashivault_plugin_example.yaml diff --git a/examples/hashivault_plugin_login.yaml b/examples/hashivault/hashivault_plugin_login.yaml similarity index 100% rename from examples/hashivault_plugin_login.yaml rename to examples/hashivault/hashivault_plugin_login.yaml diff --git a/examples/hashivault_plugin_read_secret.yaml b/examples/hashivault/hashivault_plugin_read_secret.yaml similarity index 100% rename from examples/hashivault_plugin_read_secret.yaml rename to examples/hashivault/hashivault_plugin_read_secret.yaml diff --git a/examples/hashivault_read_secret.yaml b/examples/hashivault/hashivault_read_secret.yaml similarity index 100% rename from examples/hashivault_read_secret.yaml rename to examples/hashivault/hashivault_read_secret.yaml