diff --git a/examples/demos/README.md b/examples/demos/README.md new file mode 100644 index 000000000..45cbc92a8 --- /dev/null +++ b/examples/demos/README.md @@ -0,0 +1,4 @@ +# Demos + +This directory contains some scenarios presented on demonstrations. + diff --git a/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/README.md b/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/README.md new file mode 100644 index 000000000..159331253 --- /dev/null +++ b/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/README.md @@ -0,0 +1,17 @@ +# Demo +## Server profile with boot from SAN and server profile & volume migration + +This demo is composed by 5 steps, each one associated with a playbook, that should be executed in the specified order: + +- `step_1_create_server_profile_boot_from_SAN_and_assign_to_bay1.yml`: This playbook exemplifies how to create a server profile with boot from SAN (3PAR) and without using a template. On task #1, the server profile is created (if not already present) and assigned to server hardware in bay 1. You can check all parameters, including those related to the server hardware and those related to the storage as SAN connections and volume attachment. The volume must be ready to use. On task #2, the server hardware is powered on. + +- `step_2_based_on_server_profile_boot_from_SAN_add_another_volume.yml`: This playbook exemplifies how to add an extra volume attachment to an existing server profile. Task #1 was copied from step 1 and a new volume attachment was added identified by id 2. When this task is executed, the additional volume becomes available to the operating system. + +- `step_3_create_server_profile_based_on_server_profile_template_and_assign_to_bay12.yml`: This playbook exemplifies how to create a server profile using a server profile template. On task #1, the server profile is created (if not already present) and assigned to server hardware in bay 12. In this case, all settings were configured in the template, including network connections and OS deployment plan to use Image Streamer. On task #2, the server hardware is powered on. + +- `step_4_migrate_data_volume_from_bay1_to_bay12.yml`: This playbook exemplifies how to migrate a data volume from one server profile to another. +Task #1 was copied from step 2 when the extra volume was attached. To remove it, just remove volume attachment identified by id 2 and insert into task #2. +Task #2 was copied from step 3 and a new volume attachment was added identified by id 2. The connectionId used by the storage paths must match with the SAN connections. In this case, the SAN connection ids in the server profile template were 4 and 5. + +- `step_5_migrate_server_profile_from_bay1_to_bay11.yml`: This playbook exemplifies how to migrate a server profile from one server hardware to another. Task #1 was copied from step 1. To migrate from one server hardware you just need to specify the new server hardware name. + diff --git a/examples/demo/step_1_create_server_profile_boot_from_SAN_and_assign_to_bay1.yml b/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_1_create_server_profile_boot_from_SAN_and_assign_to_bay1.yml similarity index 100% rename from examples/demo/step_1_create_server_profile_boot_from_SAN_and_assign_to_bay1.yml rename to examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_1_create_server_profile_boot_from_SAN_and_assign_to_bay1.yml diff --git a/examples/demo/step_2_based_on_server_profile_boot_from_SAN_add_another_volume.yml b/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_2_based_on_server_profile_boot_from_SAN_add_another_volume.yml similarity index 100% rename from examples/demo/step_2_based_on_server_profile_boot_from_SAN_add_another_volume.yml rename to examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_2_based_on_server_profile_boot_from_SAN_add_another_volume.yml diff --git a/examples/demo/step_3_create_server_profile_based_on_server_profile_template_and_assign_to_bay12.yml b/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_3_create_server_profile_based_on_server_profile_template_and_assign_to_bay12.yml similarity index 100% rename from examples/demo/step_3_create_server_profile_based_on_server_profile_template_and_assign_to_bay12.yml rename to examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_3_create_server_profile_based_on_server_profile_template_and_assign_to_bay12.yml diff --git a/examples/demo/step_4_migrate_data_volume_from_bay1_to_bay12.yml b/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_4_migrate_data_volume_from_bay1_to_bay12.yml similarity index 100% rename from examples/demo/step_4_migrate_data_volume_from_bay1_to_bay12.yml rename to examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_4_migrate_data_volume_from_bay1_to_bay12.yml diff --git a/examples/demo/step_5_migrate_server_profile_from_bay1_to_bay11.yml b/examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_5_migrate_server_profile_from_bay1_to_bay11.yml similarity index 100% rename from examples/demo/step_5_migrate_server_profile_from_bay1_to_bay11.yml rename to examples/demos/boot_from_SAN_and_server_profile_and_volume_migration/step_5_migrate_server_profile_from_bay1_to_bay11.yml diff --git a/examples/oneview-web-farm/README.md b/examples/demos/oneview-web-farm/README.md similarity index 100% rename from examples/oneview-web-farm/README.md rename to examples/demos/oneview-web-farm/README.md diff --git a/examples/oneview-web-farm/demo/group_vars/all b/examples/demos/oneview-web-farm/demo/group_vars/all similarity index 100% rename from examples/oneview-web-farm/demo/group_vars/all rename to examples/demos/oneview-web-farm/demo/group_vars/all diff --git a/examples/oneview-web-farm/demo/group_vars/dbservers b/examples/demos/oneview-web-farm/demo/group_vars/dbservers similarity index 100% rename from examples/oneview-web-farm/demo/group_vars/dbservers rename to examples/demos/oneview-web-farm/demo/group_vars/dbservers diff --git a/examples/oneview-web-farm/demo/group_vars/lbservers b/examples/demos/oneview-web-farm/demo/group_vars/lbservers similarity index 100% rename from examples/oneview-web-farm/demo/group_vars/lbservers rename to examples/demos/oneview-web-farm/demo/group_vars/lbservers diff --git a/examples/oneview-web-farm/demo/group_vars/webservers b/examples/demos/oneview-web-farm/demo/group_vars/webservers similarity index 100% rename from examples/oneview-web-farm/demo/group_vars/webservers rename to examples/demos/oneview-web-farm/demo/group_vars/webservers diff --git a/examples/oneview-web-farm/demo/hosts b/examples/demos/oneview-web-farm/demo/hosts similarity index 100% rename from examples/oneview-web-farm/demo/hosts rename to examples/demos/oneview-web-farm/demo/hosts diff --git a/examples/oneview-web-farm/enable_all_web_servers.yml b/examples/demos/oneview-web-farm/enable_all_web_servers.yml similarity index 100% rename from examples/oneview-web-farm/enable_all_web_servers.yml rename to examples/demos/oneview-web-farm/enable_all_web_servers.yml diff --git a/examples/oneview-web-farm/make_inventory.yml b/examples/demos/oneview-web-farm/make_inventory.yml similarity index 100% rename from examples/oneview-web-farm/make_inventory.yml rename to examples/demos/oneview-web-farm/make_inventory.yml diff --git a/examples/oneview-web-farm/ov_site.yml b/examples/demos/oneview-web-farm/ov_site.yml similarity index 100% rename from examples/oneview-web-farm/ov_site.yml rename to examples/demos/oneview-web-farm/ov_site.yml diff --git a/examples/oneview-web-farm/ov_site_clean.yml b/examples/demos/oneview-web-farm/ov_site_clean.yml similarity index 100% rename from examples/oneview-web-farm/ov_site_clean.yml rename to examples/demos/oneview-web-farm/ov_site_clean.yml diff --git a/examples/oneview-web-farm/roles/base-apache/tasks/main.yml b/examples/demos/oneview-web-farm/roles/base-apache/tasks/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/base-apache/tasks/main.yml rename to examples/demos/oneview-web-farm/roles/base-apache/tasks/main.yml diff --git a/examples/oneview-web-farm/roles/common/files/RPM-GPG-KEY-EPEL-6 b/examples/demos/oneview-web-farm/roles/common/files/RPM-GPG-KEY-EPEL-6 similarity index 100% rename from examples/oneview-web-farm/roles/common/files/RPM-GPG-KEY-EPEL-6 rename to examples/demos/oneview-web-farm/roles/common/files/RPM-GPG-KEY-EPEL-6 diff --git a/examples/oneview-web-farm/roles/common/files/epel.repo b/examples/demos/oneview-web-farm/roles/common/files/epel.repo similarity index 100% rename from examples/oneview-web-farm/roles/common/files/epel.repo rename to examples/demos/oneview-web-farm/roles/common/files/epel.repo diff --git a/examples/oneview-web-farm/roles/common/handlers/main.yml b/examples/demos/oneview-web-farm/roles/common/handlers/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/common/handlers/main.yml rename to examples/demos/oneview-web-farm/roles/common/handlers/main.yml diff --git a/examples/oneview-web-farm/roles/common/tasks/main.yml b/examples/demos/oneview-web-farm/roles/common/tasks/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/common/tasks/main.yml rename to examples/demos/oneview-web-farm/roles/common/tasks/main.yml diff --git a/examples/oneview-web-farm/roles/common/templates/iptables.j2 b/examples/demos/oneview-web-farm/roles/common/templates/iptables.j2 similarity index 100% rename from examples/oneview-web-farm/roles/common/templates/iptables.j2 rename to examples/demos/oneview-web-farm/roles/common/templates/iptables.j2 diff --git a/examples/oneview-web-farm/roles/common/templates/ntp.conf.j2 b/examples/demos/oneview-web-farm/roles/common/templates/ntp.conf.j2 similarity index 100% rename from examples/oneview-web-farm/roles/common/templates/ntp.conf.j2 rename to examples/demos/oneview-web-farm/roles/common/templates/ntp.conf.j2 diff --git a/examples/oneview-web-farm/roles/haproxy/handlers/main.yml b/examples/demos/oneview-web-farm/roles/haproxy/handlers/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/haproxy/handlers/main.yml rename to examples/demos/oneview-web-farm/roles/haproxy/handlers/main.yml diff --git a/examples/oneview-web-farm/roles/haproxy/tasks/main.yml b/examples/demos/oneview-web-farm/roles/haproxy/tasks/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/haproxy/tasks/main.yml rename to examples/demos/oneview-web-farm/roles/haproxy/tasks/main.yml diff --git a/examples/oneview-web-farm/roles/haproxy/templates/haproxy.cfg.j2 b/examples/demos/oneview-web-farm/roles/haproxy/templates/haproxy.cfg.j2 similarity index 100% rename from examples/oneview-web-farm/roles/haproxy/templates/haproxy.cfg.j2 rename to examples/demos/oneview-web-farm/roles/haproxy/templates/haproxy.cfg.j2 diff --git a/examples/oneview-web-farm/roles/hpe-oneview-server/tasks/deploy.yml b/examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/deploy.yml similarity index 100% rename from examples/oneview-web-farm/roles/hpe-oneview-server/tasks/deploy.yml rename to examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/deploy.yml diff --git a/examples/oneview-web-farm/roles/hpe-oneview-server/tasks/main.yml b/examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/hpe-oneview-server/tasks/main.yml rename to examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/main.yml diff --git a/examples/oneview-web-farm/roles/hpe-oneview-server/tasks/make_compliant.yml b/examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/make_compliant.yml similarity index 100% rename from examples/oneview-web-farm/roles/hpe-oneview-server/tasks/make_compliant.yml rename to examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/make_compliant.yml diff --git a/examples/oneview-web-farm/roles/hpe-oneview-server/tasks/update_firmware.yml b/examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/update_firmware.yml similarity index 100% rename from examples/oneview-web-farm/roles/hpe-oneview-server/tasks/update_firmware.yml rename to examples/demos/oneview-web-farm/roles/hpe-oneview-server/tasks/update_firmware.yml diff --git a/examples/oneview-web-farm/roles/local-yum-repo/files/installmedia.repo b/examples/demos/oneview-web-farm/roles/local-yum-repo/files/installmedia.repo similarity index 100% rename from examples/oneview-web-farm/roles/local-yum-repo/files/installmedia.repo rename to examples/demos/oneview-web-farm/roles/local-yum-repo/files/installmedia.repo diff --git a/examples/oneview-web-farm/roles/local-yum-repo/tasks/main.yml b/examples/demos/oneview-web-farm/roles/local-yum-repo/tasks/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/local-yum-repo/tasks/main.yml rename to examples/demos/oneview-web-farm/roles/local-yum-repo/tasks/main.yml diff --git a/examples/oneview-web-farm/roles/web/files/index.php b/examples/demos/oneview-web-farm/roles/web/files/index.php similarity index 100% rename from examples/oneview-web-farm/roles/web/files/index.php rename to examples/demos/oneview-web-farm/roles/web/files/index.php diff --git a/examples/oneview-web-farm/roles/web/tasks/main.yml b/examples/demos/oneview-web-farm/roles/web/tasks/main.yml similarity index 100% rename from examples/oneview-web-farm/roles/web/tasks/main.yml rename to examples/demos/oneview-web-farm/roles/web/tasks/main.yml diff --git a/examples/oneview-web-farm/rolling_update.yml b/examples/demos/oneview-web-farm/rolling_update.yml similarity index 100% rename from examples/oneview-web-farm/rolling_update.yml rename to examples/demos/oneview-web-farm/rolling_update.yml