-
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-718: Refactored code to small variable names
Signed-off-by: Punith Kenchappa <[email protected]>
- Loading branch information
Showing
23 changed files
with
110 additions
and
110 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
5 changes: 0 additions & 5 deletions
5
openstack/intel-worker/playbooks/roles/approve_and_issue/defaults/main.yml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
openstack/intel-worker/playbooks/roles/approve_and_issue/tasks/main.yml
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
openstack/intel-worker/playbooks/roles/csr_approve/defaults/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,5 @@ | ||
--- | ||
# Approve and issue vars | ||
csr_approve_intel_count: 3 | ||
csr_approve_intel_prefix: "rdr-mac" | ||
csr_approve_intel_zone: "openstack" |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
openstack/intel-worker/playbooks/roles/csr_approve/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 @@ | ||
--- | ||
# file to add the approve and issue csr certificate | ||
- name: Copy the approve and issue file to tmp folder | ||
ansible.builtin.copy: | ||
src: "{{ role_path }}/files/csr_approve.sh" | ||
dest: /tmp/csr_approve.sh | ||
mode: "0755" | ||
|
||
- name: Run the script to approve and issue csr certificate | ||
ansible.builtin.script: | ||
cmd: /tmp/csr_approve.sh "{{ csr_approve_intel_count }}" "{{ csr_approve_intel_prefix }}" "{{ csr_approve_intel_zone }}" | ||
register: csr_approve_output |
8 changes: 0 additions & 8 deletions
8
openstack/intel-worker/playbooks/roles/virtual_machine_action/tasks/main.yml
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
openstack/intel-worker/playbooks/roles/virtual_machine_create/defaults/main.yml
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
openstack/intel-worker/playbooks/roles/virtual_machine_create/tasks/main.yml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
openstack/intel-worker/playbooks/roles/virtual_machine_create/templates/resolv.conf.j2
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
openstack/intel-worker/playbooks/roles/virtual_machine_delete/defaults/main.yml
This file was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
openstack/intel-worker/playbooks/roles/vm_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,8 @@ | ||
--- | ||
- name: Virtual machine action like start/stop/restart etc in the Multi-Arch Compute OpenStack | ||
Check failure on line 2 in openstack/intel-worker/playbooks/roles/vm_action/tasks/main.yml GitHub Actions / Ansible Lintsyntax-check[unknown-module]
|
||
openstack.cloud.server_action: | ||
cloud: openstack | ||
action: "{{ vm_action_name }}" | ||
server: "{{ vm_action_vmname }}" | ||
timeout: "{{ vm_action_timeout }}" | ||
wait: "{{ vm_action_wait }}" |
28 changes: 28 additions & 0 deletions
28
openstack/intel-worker/playbooks/roles/vm_create/defaults/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,28 @@ | ||
--- | ||
# Virtual_machine details | ||
vm_create_name: rdr-mac-worker-openstack | ||
vm_create_region_name: RegionOne | ||
vm_create_availability_zone: Test | ||
vm_create_image_name: 4df699b6-6877-4b77-9ddb-0d6dc9cefb68 | ||
vm_create_flavor: "m1.medium" | ||
vm_create_volume_size: 80 | ||
vm_create_keypair_name: pun_keypair | ||
vm_create_network_name: provider | ||
vm_create_userdata: "{{ lookup('template', 'worker-amd64.ign.j2') }}" | ||
vm_create_timeout: 300 | ||
vm_create_count: 3 | ||
|
||
# Used in ignition task | ||
vm_create_worker_hostname: "rdr-mac-worker-openstack" | ||
vm_create_worker_hostname_encoded: "" | ||
vm_create_etc_resolve_encoded: "" | ||
vm_create_dns_none_encoded: "" | ||
vm_create_bastion_ip: "10.20.181.69" | ||
vm_create_domain_name: "rdr-mac1" | ||
vm_create_http_port: "8080" | ||
vm_create_https_port: "443" | ||
|
||
# Ignition Files | ||
vm_create_dns_none_conf: |- | ||
[main] | ||
dns=none |
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
24 changes: 24 additions & 0 deletions
24
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,24 @@ | ||
--- | ||
# file: intel-worker-playbook.yml | ||
- name: Create ignition file | ||
ansible.builtin.include_tasks: | ||
file: ignition.yml | ||
|
||
- name: Create server in the Multi-Arch Compute OpenStack Instance | ||
Check failure on line 7 in openstack/intel-worker/playbooks/roles/vm_create/tasks/main.yml GitHub Actions / Ansible Lintsyntax-check[unknown-module]
|
||
openstack.cloud.server: | ||
cloud: openstack | ||
state: present | ||
name: "{{ vm_create_name }}" | ||
region_name: "{{ vm_create_region_name }}" | ||
availability_zone: "{{ vm_create_availability_zone }}" | ||
image: "{{ vm_create_image_name }}" | ||
flavor: "{{ vm_create_flavor }}" | ||
volume_size: "{{ vm_create_volume_size }}" | ||
key_name: "{{ vm_create_keypair_name }}" | ||
network: "{{ vm_create_network_name }}" | ||
userdata: "{{ vm_create_userdata }}" | ||
timeout: "{{ vm_create_timeout }}" | ||
|
||
- name: Get and wait for VM in active state | ||
ansible.builtin.include_tasks: | ||
file: get_vm.yml |
2 changes: 2 additions & 0 deletions
2
openstack/intel-worker/playbooks/roles/vm_create/templates/resolv.conf.j2
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,2 @@ | ||
search {{ vm_create_domain_name }} | ||
nameserver {{ vm_create_bastion_ip }} |
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
4 changes: 4 additions & 0 deletions
4
openstack/intel-worker/playbooks/roles/vm_delete/defaults/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,4 @@ | ||
--- | ||
# Virtual_machine details | ||
vm_delete_name: rdr-mac-worker-openstack | ||
vm_delete_count: 3 |
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