Skip to content
Snippets Groups Projects
Commit 8092f576 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Merge branch 'master' into calico-cni-container-support

parents 965a1234 bb72de0d
No related branches found
No related tags found
No related merge requests found
...@@ -309,6 +309,7 @@ def openstack_host(resource, module_name): ...@@ -309,6 +309,7 @@ def openstack_host(resource, module_name):
attrs = { attrs = {
'access_ip_v4': raw_attrs['access_ip_v4'], 'access_ip_v4': raw_attrs['access_ip_v4'],
'access_ip_v6': raw_attrs['access_ip_v6'], 'access_ip_v6': raw_attrs['access_ip_v6'],
'ip': raw_attrs['network.0.fixed_ip_v4'],
'flavor': parse_dict(raw_attrs, 'flavor', 'flavor': parse_dict(raw_attrs, 'flavor',
sep='_'), sep='_'),
'id': raw_attrs['id'], 'id': raw_attrs['id'],
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
shell: which resolvconf shell: which resolvconf
register: resolvconf register: resolvconf
ignore_errors: yes ignore_errors: yes
changed_when: false
- name: target resolv.conf file - name: target resolv.conf file
set_fact: set_fact:
......
...@@ -14,7 +14,7 @@ KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }}" ...@@ -14,7 +14,7 @@ KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }}"
# The port for the info server to serve on # The port for the info server to serve on
# KUBELET_PORT="--port=10250" # KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname # You may leave this blank to use the actual hostname
KUBELET_HOSTNAME="--hostname-override={{ inventory_hostname }}" KUBELET_HOSTNAME="--hostname-override={{ ansible_hostname }}"
{% if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] %} {% if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] %}
KUBELET_REGISTER_NODE="--register-node=false" KUBELET_REGISTER_NODE="--register-node=false"
{% endif %} {% endif %}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
dest: /etc/hosts dest: /etc/hosts
block: |- block: |-
{% for item in groups['all'] -%} {% for item in groups['all'] -%}
{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item].ansible_default_ipv4.address)) }} {{ item }} {{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item].ansible_default_ipv4.address)) }}{% if (item != hostvars[item]['ansible_hostname']) %} {{ hostvars[item]['ansible_hostname'] }}{% endif %} {{ item }}
{% endfor %} {% endfor %}
state: present state: present
create: yes create: yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment