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
c2b3920b
Commit
c2b3920b
authored
7 years ago
by
Martin Joehren
Browse files
Options
Downloads
Patches
Plain Diff
added flag for not populating inventory entries to etc hosts file
parent
6e7323e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/preinstall/defaults/main.yml
+4
-1
4 additions, 1 deletion
roles/kubernetes/preinstall/defaults/main.yml
roles/kubernetes/preinstall/tasks/etchosts.yml
+1
-0
1 addition, 0 deletions
roles/kubernetes/preinstall/tasks/etchosts.yml
with
5 additions
and
1 deletion
roles/kubernetes/preinstall/defaults/main.yml
+
4
−
1
View file @
c2b3920b
...
@@ -32,7 +32,7 @@ openstack_domain_name: "{{ lookup('env','OS_USER_DOMAIN_NAME') }}"
...
@@ -32,7 +32,7 @@ openstack_domain_name: "{{ lookup('env','OS_USER_DOMAIN_NAME') }}"
# For the vsphere integration, kubelet will need credentials to access
# For the vsphere integration, kubelet will need credentials to access
# vsphere apis
# vsphere apis
# Documentation regar
t
ing these values can be found
# Documentation regar
d
ing these values can be found
# https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/vsphere/vsphere.go#L105
# https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/vsphere/vsphere.go#L105
vsphere_vcenter_ip
:
"
{{
lookup('env',
'VSPHERE_VCENTER')
}}"
vsphere_vcenter_ip
:
"
{{
lookup('env',
'VSPHERE_VCENTER')
}}"
vsphere_vcenter_port
:
"
{{
lookup('env',
'VSPHERE_VCENTER_PORT')
}}"
vsphere_vcenter_port
:
"
{{
lookup('env',
'VSPHERE_VCENTER_PORT')
}}"
...
@@ -49,3 +49,6 @@ vsphere_public_network: "{{ lookup('env', 'VSPHERE_PUBLIC_NETWORK')|default('')
...
@@ -49,3 +49,6 @@ vsphere_public_network: "{{ lookup('env', 'VSPHERE_PUBLIC_NETWORK')|default('')
# Container Linux by CoreOS cloud init config file to define /etc/resolv.conf content
# Container Linux by CoreOS cloud init config file to define /etc/resolv.conf content
# for hostnet pods and infra needs
# for hostnet pods and infra needs
resolveconf_cloud_init_conf
:
/etc/resolveconf_cloud_init.conf
resolveconf_cloud_init_conf
:
/etc/resolveconf_cloud_init.conf
# All inventory hostnames will be written into each /etc/hosts file.
populate_inventory_to_hosts_file
:
true
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/etchosts.yml
+
1
−
0
View file @
c2b3920b
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
create
:
yes
create
:
yes
backup
:
yes
backup
:
yes
marker
:
"
#
Ansible
inventory
hosts
{mark}"
marker
:
"
#
Ansible
inventory
hosts
{mark}"
when
:
populate_inventory_to_hosts_file
-
name
:
Hosts | populate kubernetes loadbalancer address into hosts file
-
name
:
Hosts | populate kubernetes loadbalancer address into hosts file
lineinfile
:
lineinfile
:
...
...
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