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
7507031c
Commit
7507031c
authored
7 years ago
by
Cédric de Saint Martin
Browse files
Options
Downloads
Patches
Plain Diff
CoreOS bootstrap: set bin_dir and PATH for pip.
parent
d73d60c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/bootstrap-os/tasks/bootstrap-coreos.yml
+14
-3
14 additions, 3 deletions
roles/bootstrap-os/tasks/bootstrap-coreos.yml
with
14 additions
and
3 deletions
roles/bootstrap-os/tasks/bootstrap-coreos.yml
+
14
−
3
View file @
7507031c
...
@@ -7,23 +7,32 @@
...
@@ -7,23 +7,32 @@
tags
:
tags
:
-
facts
-
facts
-
name
:
Force binaries directory for Container Linux by CoreOS
set_fact
:
bin_dir
:
"
/opt/bin"
tags
:
-
facts
when
:
need_bootstrap.rc !=
0
-
name
:
Bootstrap | Run bootstrap.sh
-
name
:
Bootstrap | Run bootstrap.sh
script
:
bootstrap.sh
script
:
bootstrap.sh
when
:
need_bootstrap.rc !=
0
when
:
need_bootstrap.rc !=
0
-
set_fact
:
-
set_fact
:
ansible_python_interpreter
:
"
/opt/bin
/python"
ansible_python_interpreter
:
"
{{
bin_dir
}}
/python"
tags
:
tags
:
-
facts
-
facts
-
name
:
Bootstrap | Check if we need to install pip
-
name
:
Bootstrap | Check if we need to install pip
shell
:
"
{{ansible_python_interpreter}}
-m
pip
--version"
shell
:
"
pip
--version"
register
:
need_pip
register
:
need_pip
failed_when
:
false
failed_when
:
false
changed_when
:
false
changed_when
:
false
check_mode
:
no
check_mode
:
no
tags
:
tags
:
-
facts
-
facts
environment
:
PATH
:
"
{{
ansible_env.PATH
}}:{{
bin_dir
}}"
-
name
:
Bootstrap | Copy get-pip.py
-
name
:
Bootstrap | Copy get-pip.py
copy
:
copy
:
...
@@ -44,7 +53,7 @@
...
@@ -44,7 +53,7 @@
-
name
:
Bootstrap | Install pip launcher
-
name
:
Bootstrap | Install pip launcher
copy
:
copy
:
src
:
runner
src
:
runner
dest
:
/opt/bin
/pip
dest
:
"
{{
bin_dir
}}
/pip
"
mode
:
0755
mode
:
0755
when
:
need_pip.rc !=
0
when
:
need_pip.rc !=
0
...
@@ -52,3 +61,5 @@
...
@@ -52,3 +61,5 @@
pip
:
pip
:
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
with_items
:
"
{{pip_python_coreos_modules}}"
with_items
:
"
{{pip_python_coreos_modules}}"
environment
:
PATH
:
"
{{
ansible_env.PATH
}}:{{
bin_dir
}}"
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