-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCTOPUS-625:added playbook roles folder
Signed-off-by: Punith Kenchappa <[email protected]>
- Loading branch information
Showing
30 changed files
with
231 additions
and
126 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
openstack/intel-worker/playbooks/intel-worker-cleanup-playbook.yml
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 @@ | ||
--- | ||
- name: Intel worker vitrual_machine delete | ||
roles: | ||
- vm-delete | ||
|
||
- name: Intel worker flavor create | ||
roles: | ||
- flavor-delete | ||
|
||
- name: Create RHCHOS image | ||
hosts: all | ||
roles: | ||
- rhcos-image-delete |
25 changes: 25 additions & 0 deletions
25
openstack/intel-worker/playbooks/intel-worker-playbook.yml
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,25 @@ | ||
--- | ||
- name: Create RHCHOS image | ||
hosts: all | ||
roles: | ||
- rhcos-image-create | ||
Check failure on line 5 in openstack/intel-worker/playbooks/intel-worker-playbook.yml GitHub Actions / Ansible Lintsyntax-check[specific]
|
||
|
||
- name: Intel worker flavor create | ||
roles: | ||
- flavor-create | ||
|
||
- name: Intel worker vitrual_machine create | ||
roles: | ||
- vm-create | ||
|
||
- name: Intel worker vitrual_machine create | ||
roles: | ||
- vm-server-action | ||
vars: | ||
virtual_machine_server_action: "stop" | ||
|
||
- name: Intel worker vitrual_machine create | ||
roles: | ||
- vm-server-action | ||
vars: | ||
virtual_machine_server_action: "start" |
27 changes: 27 additions & 0 deletions
27
openstack/intel-worker/playbooks/roles/centosImage-create/tasks/main.yml
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,27 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Download the Image from the URL and use to create image | ||
ansible.builtin.get_url: | ||
url: "{{ image_url_centos }}" | ||
dest: "{{ image_dest_filename_centos }}" | ||
mode: '0755' | ||
validate_certs: "{{ image_validate_certs_centos }}" | ||
register: image_download_stats | ||
|
||
- name: Create/upload Centos images to openstack. | ||
openstack.cloud.image: | ||
cloud: openstack | ||
state: present | ||
name: "{{ image_name_centos_centos }}" | ||
container_format: "{{ image_container_format_centos }}" | ||
disk_format: "{{ image_disk_format_centos }}" | ||
filename: "{{ image_dest_filename_centos }}" | ||
is_public: "{{ image_is_public_centos }}" | ||
properties: | ||
cpu_arch: "{{ image_cpu_arch_centos }}" | ||
distro: "{{ image_distro_centos }}" |
17 changes: 17 additions & 0 deletions
17
openstack/intel-worker/playbooks/roles/centosImage-delete/tasks/main.yml
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,17 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Remove Centos images to openstack. | ||
openstack.cloud.image: | ||
cloud: openstack | ||
state: absent | ||
name: "{{ image_name_centos }}" | ||
disk_format: "{{ image_disk_format_centos }}" | ||
is_public: "{{ image_is_public_centos }}" | ||
properties: | ||
cpu_arch: "{{ image_cpu_arch_centos }}" | ||
distro: "{{ image_distro_centos }}" |
17 changes: 17 additions & 0 deletions
17
openstack/intel-worker/playbooks/roles/flavor-create/tasks/main.yml
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,17 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Create flavor to openstack | ||
openstack.cloud.compute_flavor: | ||
cloud: openstack | ||
state: present | ||
name: "{{ custom_flavor_name }}" | ||
ram: "{{ custom_flavor_ram }}" | ||
vcpus: "{{ custom_flavor_vcpus }}" | ||
disk: "{{ custom_flavor_disk }}" | ||
ephemeral: "{{ custom_flavor_ephemeral }}" | ||
description: "{{ custom_flavor_description }}" |
12 changes: 12 additions & 0 deletions
12
openstack/intel-worker/playbooks/roles/flavor-delete/tasks/main.yml
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,12 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Remove flavor from openstack | ||
openstack.cloud.compute_flavor: | ||
cloud: openstack | ||
state: absent | ||
name: "{{ custom_flavor_name }}" |
15 changes: 15 additions & 0 deletions
15
openstack/intel-worker/playbooks/roles/host-aggregate-create/tasks/main.yml
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,15 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Create host aggregate (host group) to openstack | ||
openstack.cloud.host_aggregate: | ||
cloud: openstack | ||
state: present | ||
name: "{{ host_aggregate_name }}" | ||
hosts: "{{ host_name_list }}" | ||
metadata: | ||
availability_zone: "{{ host_availability_zone_name }}" |
12 changes: 12 additions & 0 deletions
12
openstack/intel-worker/playbooks/roles/host-aggregate-delete/tasks/main.yml
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,12 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Remove host aggregate (host group) from openstack | ||
openstack.cloud.host_aggregate: | ||
cloud: openstack | ||
state: absent | ||
name: "{{ host_aggregate_name }}" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
openstack/intel-worker/playbooks/roles/rhcosImage-create/tasks/main.yml
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,27 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: "Download the Image from the URL and use to create image" | ||
ansible.builtin.get_url: | ||
url: "{{ image_url_rhcos }}" | ||
dest: "{{ image_dest_filename_rhcos }}" | ||
mode: '0755' | ||
validate_certs: "{{ image_validate_certs_rhcos }}" | ||
register: image_download_stats | ||
|
||
- name: Create/upload RHCOS images to openstack. | ||
openstack.cloud.image: | ||
cloud: openstack | ||
state: present | ||
name: "{{ image_name_rhcos }}" | ||
container_format: "{{ image_container_format_rhcos }}" | ||
disk_format: "{{ image_disk_format_rhcos }}" | ||
filename: "{{ image_dest_filename_rhcos }}" | ||
is_public: "{{ image_is_public_rhcos }}" | ||
properties: | ||
cpu_arch: "{{ image_cpu_arch_rhcos }}" | ||
distro: "{{ image_distro_rhcos }}" |
17 changes: 17 additions & 0 deletions
17
openstack/intel-worker/playbooks/roles/rhcosImage-delete/tasks/main.yml
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,17 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Remove RHCOS images from openstack. | ||
openstack.cloud.image: | ||
cloud: openstack | ||
state: absent | ||
name: "{{ image_name_rhcos }}" | ||
disk_format: "{{ image_disk_format_rhcos }}" | ||
is_public: "{{ image_is_public_rhcos }}" | ||
properties: | ||
cpu_arch: "{{ image_cpu_arch_rhcos }}" | ||
distro: "{{ image_distro_rhcos }}" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
openstack/intel-worker/playbooks/roles/vm-create/tasks/main.yml
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,23 @@ | ||
--- | ||
# file: intel-worker-playbook.yml | ||
|
||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Create server in the Multi-Arch Compute OpenStack Instance | ||
openstack.cloud.server: | ||
cloud: openstack | ||
state: present | ||
name: "{{ virtual_machine_name }}" | ||
region_name: "{{ virtual_machine_region_name }}" | ||
availability_zone: "{{ vitrual_machine_availability_zone }}" | ||
image: "{{ virtual_machine_image_name }}" | ||
flavor: "{{ virtual_machine_flavor }}" | ||
volume_size: "{{ virtual_machine_volume_size }}" | ||
key_name: "{{ virtual_machine_keypair_name }}" | ||
network: "{{ virtual_machine_network_name }}" | ||
userdata: "{{ virtual_machine_userdata }}" | ||
timeout: "{{ virtual_machine_timeout }}" |
12 changes: 12 additions & 0 deletions
12
openstack/intel-worker/playbooks/roles/vm-delete/tasks/main.yml
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,12 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Delete server in the Multi-Arch Compute OpenStack Instance | ||
openstack.cloud.server: | ||
cloud: openstack | ||
state: absent | ||
name: "{{ virtual_machine_name }}" |
14 changes: 14 additions & 0 deletions
14
openstack/intel-worker/playbooks/roles/vm-server-action/tasks/main.yml
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,14 @@ | ||
--- | ||
- name: OpenStack worker node configuration Tasks (i.e. Create worker.ign, Upload RHCOS Image, Create Customization Script, Create Instance etc) | ||
hosts: all | ||
vars_files: | ||
- ../../../../vars/main.yml | ||
|
||
tasks: | ||
- name: Virtual machine action like start/stop/restart etc in the Multi-Arch Compute OpenStack | ||
openstack.cloud.server_action: | ||
cloud: openstack | ||
action: "{{ virtual_machine_server_action }}" | ||
server: "{{ virtual_machine_name }}" | ||
timeout: "{{ virtual_machine_action_timeout }}" | ||
wait: "{{ virtual_machine_action_wait }}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.