Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
c0dfa727
Commit
c0dfa727
authored
6 years ago
by
Takashi Okamoto
Browse files
Options
Downloads
Patches
Plain Diff
Separate RedHat specific vars for cri-o.
parent
d407a590
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
roles/cri-o/files/mounts.conf
+1
-0
1 addition, 0 deletions
roles/cri-o/files/mounts.conf
roles/cri-o/tasks/main.yaml
+26
-10
26 additions, 10 deletions
roles/cri-o/tasks/main.yaml
roles/cri-o/vars/redhat.yml
+7
-0
7 additions, 0 deletions
roles/cri-o/vars/redhat.yml
with
34 additions
and
10 deletions
roles/cri-o/files/mounts.conf
0 → 100644
+
1
−
0
View file @
c0dfa727
/
usr
/
share
/
rhel
/
secrets
:/
run
/
secrets
This diff is collapsed.
Click to expand it.
roles/cri-o/tasks/main.yaml
+
26
−
10
View file @
c0dfa727
---
-
name
:
gather os specific variables
include_vars
:
"
{{
item
}}"
with_first_found
:
-
files
:
-
"
{{
ansible_distribution|lower
}}-{{
ansible_distribution_version|lower|replace('/',
'_')
}}.yml"
-
"
{{
ansible_distribution|lower
}}-{{
ansible_distribution_release
}}.yml"
-
"
{{
ansible_distribution|lower
}}-{{
ansible_distribution_major_version|lower|replace('/',
'_')
}}.yml"
-
"
{{
ansible_distribution|lower
}}.yml"
-
"
{{
ansible_os_family|lower
}}-{{
ansible_architecture
}}.yml"
-
"
{{
ansible_os_family|lower
}}.yml"
-
defaults.yml
paths
:
-
../vars
skip
:
true
tags
:
-
facts
-
name
:
Add OpenShift Origin repository
yum_repository
:
name
:
origin
description
:
OpenShift Origin Repo
baseurl
:
"
{{
crio_rhel_repo_base_url
}}"
gpgcheck
:
no
when
:
-
ansible_os_family == 'RedHat'
when
:
ansible_distribution in ["CentOS","RedHat"] and not is_atomic
-
name
:
Install cri-o
-
name
:
Install cri-o
packages
package
:
name
:
"
{{
item
}}"
state
:
present
with_items
:
-
cri-o
-
cri-tools
-
oci-systemd-hook
with_items
:
"
{{
crio_packages
}}"
-
name
:
Install cri-o config
template
:
...
...
@@ -23,8 +36,11 @@
dest
:
/etc/crio/crio.conf
-
name
:
Copy mounts.conf
shell
:
|
cp -T /usr/share/containers/mounts.conf /etc/containers/mounts.conf
copy
:
src
:
mounts.conf
dest
:
/etc/containers/mounts.conf
when
:
-
ansible_os_family == 'RedHat'
-
name
:
Create directory for oci hooks
file
:
...
...
@@ -35,6 +51,6 @@
-
name
:
Install cri-o service
service
:
name
:
crio
name
:
"
{{
crio_service
}}"
enabled
:
yes
state
:
restarted
This diff is collapsed.
Click to expand it.
roles/cri-o/vars/redhat.yml
0 → 100644
+
7
−
0
View file @
c0dfa727
---
crio_packages
:
-
cri-o
-
cri-tools
-
oci-systemd-hook
crio_service
:
crio
\ No newline at end of file
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