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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
dba20260
Commit
dba20260
authored
8 years ago
by
ant31
Browse files
Options
Downloads
Patches
Plain Diff
Fail all nodes on error
parent
a62f7425
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
cluster.yml
+8
-0
8 additions, 0 deletions
cluster.yml
roles/kubernetes/preinstall/tasks/gitinfos.yml
+5
-0
5 additions, 0 deletions
roles/kubernetes/preinstall/tasks/gitinfos.yml
roles/kubernetes/preinstall/tasks/main.yml
+6
-6
6 additions, 6 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
19 additions
and
6 deletions
cluster.yml
+
8
−
0
View file @
dba20260
---
---
-
hosts
:
all
-
hosts
:
all
any_errors_fatal
:
true
gather_facts
:
false
gather_facts
:
false
roles
:
roles
:
-
bootstrap-os
-
bootstrap-os
...
@@ -8,33 +9,40 @@
...
@@ -8,33 +9,40 @@
-
hosts
:
all
-
hosts
:
all
any_errors_fatal
:
true
gather_facts
:
true
gather_facts
:
true
-
hosts
:
all
-
hosts
:
all
any_errors_fatal
:
true
roles
:
roles
:
-
{
role
:
kubernetes/preinstall
,
tags
:
preinstall
}
-
{
role
:
kubernetes/preinstall
,
tags
:
preinstall
}
-
hosts
:
etcd:!k8s-cluster
-
hosts
:
etcd:!k8s-cluster
any_errors_fatal
:
true
roles
:
roles
:
-
{
role
:
etcd
,
tags
:
etcd
}
-
{
role
:
etcd
,
tags
:
etcd
}
-
hosts
:
k8s-cluster
-
hosts
:
k8s-cluster
any_errors_fatal
:
true
roles
:
roles
:
-
{
role
:
etcd
,
tags
:
etcd
}
-
{
role
:
etcd
,
tags
:
etcd
}
-
{
role
:
kubernetes/node
,
tags
:
node
}
-
{
role
:
kubernetes/node
,
tags
:
node
}
-
{
role
:
network_plugin
,
tags
:
network
}
-
{
role
:
network_plugin
,
tags
:
network
}
-
hosts
:
kube-master
-
hosts
:
kube-master
any_errors_fatal
:
true
roles
:
roles
:
-
{
role
:
kubernetes/master
,
tags
:
master
}
-
{
role
:
kubernetes/master
,
tags
:
master
}
-
{
role
:
kubernetes-apps/lib
,
tags
:
apps
}
-
{
role
:
kubernetes-apps/lib
,
tags
:
apps
}
-
{
role
:
kubernetes-apps/network_plugin
,
tags
:
network
}
-
{
role
:
kubernetes-apps/network_plugin
,
tags
:
network
}
-
hosts
:
k8s-cluster
-
hosts
:
k8s-cluster
any_errors_fatal
:
true
roles
:
roles
:
-
{
role
:
dnsmasq
,
tags
:
dnsmasq
}
-
{
role
:
dnsmasq
,
tags
:
dnsmasq
}
-
hosts
:
kube-master[0]
-
hosts
:
kube-master[0]
any_errors_fatal
:
true
roles
:
roles
:
-
{
role
:
kubernetes-apps/lib
,
tags
:
apps
}
-
{
role
:
kubernetes-apps/lib
,
tags
:
apps
}
-
{
role
:
kubernetes-apps
,
tags
:
apps
}
-
{
role
:
kubernetes-apps
,
tags
:
apps
}
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/gitinfos.yml
+
5
−
0
View file @
dba20260
---
---
# Deploy git infos
# Deploy git infos
# ----------------
# ----------------
-
name
:
'
GIT
|
Install
script
for
collecting
git
info'
template
:
src
:
"
{{
role_path
}}/gen-gitinfos.sh"
dest
:
"
{{
bin_dir
}}/gen-gitinfos.sh"
mode
:
a+rwx
-
name
:
'
GIT
|
generate
git
informations'
-
name
:
'
GIT
|
generate
git
informations'
local_action
:
command {{ role_path }}/gen-gitinfos.sh global
local_action
:
command {{ role_path }}/gen-gitinfos.sh global
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/main.yml
+
6
−
6
View file @
dba20260
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
bin_dir
:
"
/opt/bin"
bin_dir
:
"
/opt/bin"
when
:
ansible_os_family == "CoreOS"
when
:
ansible_os_family == "CoreOS"
-
name
:
check bin dir exists
-
name
:
'
GIT
|
Install
script
for
collecting
git
info'
file
:
template
:
path
:
"
{{bin_dir}}"
s
rc
:
"
{{
role_path
}}/gen-gitinfos.sh"
s
tate
:
directory
dest
:
"
{{
bin_dir
}}/gen-gitinfos.sh"
owner
:
root
mode
:
a+rwx
become
:
true
-
include
:
gitinfos.yml
-
include
:
gitinfos.yml
when
:
run_gitinfos
when
:
run_gitinfos
...
...
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