diff --git a/example/.gitkeep b/examples/.gitkeep similarity index 100% rename from example/.gitkeep rename to examples/.gitkeep diff --git a/example/VINS.yaml b/examples/VINS.yaml similarity index 100% rename from example/VINS.yaml rename to examples/VINS.yaml diff --git a/example/affinity.yaml b/examples/affinity.yaml similarity index 100% rename from example/affinity.yaml rename to examples/affinity.yaml diff --git a/example/annotations.yaml b/examples/annotations.yaml similarity index 100% rename from example/annotations.yaml rename to examples/annotations.yaml diff --git a/example/anti_affinity.yaml b/examples/anti_affinity.yaml similarity index 100% rename from example/anti_affinity.yaml rename to examples/anti_affinity.yaml diff --git a/example/basicservices.yaml b/examples/basicservices.yaml similarity index 100% rename from example/basicservices.yaml rename to examples/basicservices.yaml diff --git a/example/cloud_init.yaml b/examples/cloud-init.yaml similarity index 100% rename from example/cloud_init.yaml rename to examples/cloud-init.yaml diff --git a/examples/cloud_init.yaml b/examples/cloud_init.yaml new file mode 100644 index 0000000..4163c0b --- /dev/null +++ b/examples/cloud_init.yaml @@ -0,0 +1,38 @@ +# +# DECORT kvmvm module example +# +- hosts: ansible_master + tasks: + - name: create a VM named cloud-init_example + decort_kvmvm: + annotation: "VM managed by decort_kvmvm module" + authenticator: oauth2 + app_id: "" # Application id from SSO Digital Energy + app_secret: "" # API key from SSO Digital Energy + controller_url: "" #"https://mr4.digitalenergy.online" + name: cloud-init_example + cpu: 2 + ram: 2048 + boot_disk: 10 + image_name: "DECS Ubuntu 18.04 v1.2.3" #Name of OS image + networks: + - type: VINS + id: #VINS id + tags: "Ansible cloud init example" + state: present + rg_id: #Resource group id + ci_user_data: + - packages: + - apache2 + - write_files: + - content: | +
+ Hello World! +
+ owner: user:user + path: /var/www/html/index.html + - hostname: test-apache + - ssh_keys: + - rsa_public: ssh-rsa AAAAOasDmLxnD= user@pc + delegate_to: localhost + register: simple_vm diff --git a/example/kubernetes.yaml b/examples/kubernetes.yaml similarity index 100% rename from example/kubernetes.yaml rename to examples/kubernetes.yaml