***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Datalab Openstack RKE2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HPC
DataLab
Ansible
Collections
Datalab Openstack RKE2
Commits
83fbc717
Commit
83fbc717
authored
2 years ago
by
entlein
Browse files
Options
Downloads
Patches
Plain Diff
somehow the variables are not read in correctly from the pipelien
parent
a5a802e7
Loading
Loading
1 merge request
!1
Restore main as the default branch
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/rke2/tasks/fix_selinux.yml
+18
-8
18 additions, 8 deletions
roles/rke2/tasks/fix_selinux.yml
roles/rke2/tasks/main.yml
+2
-2
2 additions, 2 deletions
roles/rke2/tasks/main.yml
with
20 additions
and
10 deletions
roles/rke2/tasks/fix_selinux.yml
+
18
−
8
View file @
83fbc717
...
...
@@ -6,19 +6,29 @@
-
name
:
Update CA trust
shell
:
update-ca-trust
-
name
:
kill the openstack ccm pods to make sure they boot in permissive mode
shell
:
"
/var/lib/rancher/rke2/bin/kubectl
--kubeconfig
/etc/rancher/rke2/rke2.yaml
rollout
restart
-n
kube-system
ds
openstack-cloud-controller-manager
"
register
:
openstack_ccm_ready
when
:
( 'master' in group_names and not upgrade)
ignore_errors
:
True
#- name: kill the openstack ccm pods to make sure they boot in permissive mode
# shell: "/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml rollout restart -n kube-system ds openstack-cloud-controller-manager "
# register: openstack_ccm_ready
# when: ( 'master' in group_names and not upgrade)
# ignore_errors: True
-
name
:
Wait for openstack-cloud-controller deamon set to be ready
shell
:
"
/var/lib/rancher/rke2/bin/kubectl
--kubeconfig
/etc/rancher/rke2/rke2.yaml
wait
--namespace=kube-system
--for=condition=Ready
ds
openstack-cloud-controller-manager
--timeout=
12
0s"
shell
:
"
/var/lib/rancher/rke2/bin/kubectl
--kubeconfig
/etc/rancher/rke2/rke2.yaml
wait
--namespace=kube-system
--for=condition=Ready
po
ds
--selector
app=
openstack-cloud-controller-manager
--timeout=
6
0s"
register
:
openstack_ccm_ready
when
:
not upgrade
when
:
('master' in group_names)
ignore_errors
:
True
-
debug
:
var=openstack_ccm_ready.stdout_lines
#- name: Wait for openstack-cloud-controller deamon set to be ready
# shell: " sleep 60"
#- name: Wait for openstack-cloud-controller deamon set to be ready
# shell: "/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml wait --namespace=kube-system --for=condition=Ready ds openstack-cloud-controller-manager --timeout=120s"
# register: openstack_ccm_ready
# when: not upgrade
# ignore_errors: True
-
name
:
Enable SELinux
selinux
:
policy
:
targeted
...
...
This diff is collapsed.
Click to expand it.
roles/rke2/tasks/main.yml
+
2
−
2
View file @
83fbc717
...
...
@@ -6,7 +6,7 @@
-
block
:
-
include_tasks
:
setup_host.yml
-
include_tasks
:
install_rke2.yml
when
:
( not rke2_installed.stat.exists and state != 'absent' ) or (upgrade and state != 'absent' )
#
when: ( not rke2_installed.stat.exists and state != 'absent' ) or (upgrade and state != 'absent' )
-
include_tasks
:
templates.yml
when
:
"
state
!=
'absent'
and
'master'
in
group_names
"
...
...
@@ -22,7 +22,7 @@
# Flush the handlers only for fresh installs
-
name
:
Flush handlers
meta
:
flush_handlers
when
:
( not rke2_installed.stat.exists and state != 'absent' )s
#This task runs only after the full installer went through and had a bit of time to boot, then starts to enforce SELinux
-
include_tasks
:
fix_selinux.yml
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment