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
5176e5c9
Commit
5176e5c9
authored
8 years ago
by
Alexander Block
Browse files
Options
Downloads
Patches
Plain Diff
Make growpart only run on Azure
parent
42ea4d2c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/preinstall/tasks/growpart-azure-centos-7.yml
+2
-0
2 additions, 0 deletions
...s/kubernetes/preinstall/tasks/growpart-azure-centos-7.yml
roles/kubernetes/preinstall/tasks/main.yml
+8
-2
8 additions, 2 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
10 additions
and
2 deletions
roles/kubernetes/preinstall/tasks/growpart-centos-7.yml
→
roles/kubernetes/preinstall/tasks/growpart-
azure-
centos-7.yml
+
2
−
0
View file @
5176e5c9
---
---
# Running growpart seems to be only required on Azure, as other Cloud Providers do this at boot time
-
name
:
install growpart
-
name
:
install growpart
package
:
name=cloud-utils-growpart state=latest
package
:
name=cloud-utils-growpart state=latest
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/main.yml
+
8
−
2
View file @
5176e5c9
...
@@ -181,8 +181,14 @@
...
@@ -181,8 +181,14 @@
-
include
:
resolvconf.yml
-
include
:
resolvconf.yml
tags
:
[
bootstrap-os
,
resolvconf
]
tags
:
[
bootstrap-os
,
resolvconf
]
-
include
:
growpart-centos-7.yml
-
name
:
Check if we are running inside a Azure VM
when
:
ansible_distribution in ["CentOS","RedHat"] and
stat
:
path=/var/lib/waagent/
register
:
azure_check
tags
:
bootstrap-os
-
include
:
growpart-azure-centos-7.yml
when
:
azure_check.stat.exists and
ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >=
7
ansible_distribution_major_version >=
7
tags
:
bootstrap-os
tags
:
bootstrap-os
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