Skip to content

Commit 0c08f12

Browse files
committed
Handle RHEL8 host env
1 parent b64e200 commit 0c08f12

File tree

1 file changed

+44
-5
lines changed
  • install_yamls_setup/roles/podified_cp/tasks

1 file changed

+44
-5
lines changed

install_yamls_setup/roles/podified_cp/tasks/main.yaml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,56 @@
1616
- name: Install required packages
1717
ansible.builtin.package:
1818
name:
19-
- ansible-core
19+
- ansible
2020
- gcc
2121
- git-core
2222
- make
2323
- podman
2424
- python3
2525
- python3-pip
26-
- https://github.com/txn2/kubefwd/releases/download/1.22.5/kubefwd_amd64.rpm
2726
state: latest
2827
become: yes
2928
tags: install
3029

30+
- name: Install ansible
31+
ansible.builtin.package:
32+
name:
33+
- ansible
34+
state: latest
35+
become: yes
36+
when:
37+
- (ansible_distribution == 'CentOS' or
38+
ansible_distribution == 'Rocky' or
39+
ansible_distribution == 'RedHat')
40+
- ansible_distribution_major_version | int == 8
41+
tags: install
42+
43+
- name: Install ansible-core
44+
ansible.builtin.package:
45+
name:
46+
- ansible-core
47+
state: latest
48+
become: yes
49+
when:
50+
- (ansible_distribution == 'CentOS' or
51+
ansible_distribution == 'Rocky' or
52+
ansible_distribution == 'RedHat')
53+
- ansible_distribution_major_version | int >= 9
54+
tags: install
55+
56+
- name: Install kubefwd_amd64
57+
ansible.builtin.dnf:
58+
name:
59+
- https://github.com/txn2/kubefwd/releases/download/1.22.5/kubefwd_amd64.rpm
60+
disable_gpg_check: True
61+
become: yes
62+
when: ansible_os_family == 'RedHat'
63+
tags: install
64+
3165
- name: Install some extra packages
3266
ansible.builtin.package:
3367
name:
3468
- bash-completion
35-
- delve
3669
- tmux
3770
- vim
3871
state: latest
@@ -101,7 +134,7 @@
101134
oc login -u kubeadmin -p 12345678 https://api.crc.testing:6443
102135
make attach_default_interface_cleanup
103136
make crc_attach_default_interface
104-
EDPM_TOTAL_NODES=2 make edpm_compute
137+
EDPM_TOTAL_NODES=1 EDPM_COMPUTE_VCPUS=16 EDPM_COMPUTE_RAM=100 EDPM_COMPUTE_DISK_SIZE=100 make edpm_compute
105138
exit 0
106139
chdir: "~/install_yamls/devsetup"
107140
tags: crc
@@ -135,6 +168,7 @@
135168
sleep 20
136169
TIMEOUT=600 make openstack_wait_deploy 2>&1 | tee make_openstack_deploy.log
137170
sleep 20
171+
TIMEOUT=600 DATAPLANE_TOTAL_NODES=1 make edpm_wait_deploy
138172
139173
oc get csv -n openstack-operators octavia-operator.v0.0.1 -o json | \
140174
jq -r 'del(.metadata.generation, .metadata.resourceVersion, .metadata.uid)' > operator_csv.json
@@ -160,14 +194,19 @@
160194
path: ~/.bashrc
161195
line: "{{ item }}"
162196
with_items:
163-
- export PATH=$PATH:~/.crc/bin/oc
197+
- export GOPATH=$HOME/go
198+
- export PATH=$PATH:$GOPATH/bin:~/.crc/bin/oc
164199
- export OS_CLOUD=default
165200
- export OS_PASSWORD=12345678
166201
- export EDPM_COMPUTE_CEPH_ENABLED=false
167202
- export BMO_SETUP=false
168203
- export KUBECONFIG=~/.kube/config
169204
tags: config
170205

206+
- name: Install delve debugger
207+
command: go install github.com/go-delve/delve/cmd/dlv@latest
208+
tags: config
209+
171210
- name: Copy ~/.tmux.conf
172211
copy:
173212
src: ~/.tmux.conf

0 commit comments

Comments
 (0)