Skip to content

Commit 3e8da30

Browse files
authored
Merge pull request #62 from bgraef/main
fix to increase ocne2 boot vps
2 parents 68405fe + d853fba commit 3e8da30

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

ocne2/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
image_id: "{{ ol_image_id }}"
1414
source_type: image
1515
boot_volume_size_in_gbs: "{{ item.value.boot_volume_size_in_gbs | default(50) | int }}"
16+
boot_volume_vpus_per_gb: "{{ item.value.boot_volume_vpus_per_gb | default(20) | int }}"
1617
shape: "{{ instance_shape }}"
1718
shape_config:
1819
ocpus: "{{ item.value.instance_ocpus | default(instance_ocpus) }}"

ocne2/default_vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ocne_type: libvirt
2323
install_ocne_rpm: false
2424
create_ocne_cluster: false
2525
create_ocne_oci_cluster: false
26+
debug_oci_cluster: false
2627
ocne_cluster_node_options: ""
2728
ocne_cluster_name: "ocne"
2829
num_cp_nodes: 3

ocne2/deploy_ocne_oci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@
176176
become: true
177177
become_user: "{{ username }}"
178178

179+
- name: Append OCI_API_KEY for key file
180+
ansible.builtin.lineinfile:
181+
path: ~/.oci/oci.key
182+
line: "OCI_API_KEY"
183+
insertafter: EOF
184+
state: present
185+
become: true
186+
become_user: "{{ username }}"
187+
179188
- name: Install ol developer repository
180189
ansible.builtin.dnf:
181190
name: oraclelinux-developer-release-el8
@@ -303,11 +312,14 @@
303312
poll: 10
304313
register: cluster_sleeper
305314
changed_when: cluster_sleeper.rc == 0
315+
when: not debug_oci_cluster
306316

307317
- name: Print cluster provision output
308318
ansible.builtin.debug:
309319
var: cluster_sleeper
310-
when: debug_enabled
320+
when:
321+
- debug_enabled
322+
- not debug_oci_cluster
311323

312324
# - name: Check on cluster provisioning
313325
# ansible.builtin.async_status:
@@ -323,3 +335,4 @@
323335
line: "export KUBECONFIG=$HOME/.kube/kubeconfig.{{ ocne_cluster_name | default('ocne') }}.local"
324336
become: true
325337
become_user: "{{ username }}"
338+
when: not debug_oci_cluster

0 commit comments

Comments
 (0)