Write unbound nameservers to tobiko.conf
Change-Id: Ic4602e580202e8d1fa2005c932f2b7ba1e44e0e3
This commit is contained in:
parent
b058c2938f
commit
3b7f6972b2
devstack
playbooks/vagrant
roles/devstack-tobiko-deploy/tasks
check-restack.yamldeploy-local-conf.yamldeploy-project.yamlensure-stack-user.yamlrun-stack.yamlrun-unstack.yaml
zuul.d
@ -170,12 +170,12 @@ function configure_tobiko_neutron {
|
|||||||
echo_summary "Write [neutron] section to ${TOBIKO_CONF_FILE}"
|
echo_summary "Write [neutron] section to ${TOBIKO_CONF_FILE}"
|
||||||
local tobiko_conf_file=$1
|
local tobiko_conf_file=$1
|
||||||
|
|
||||||
# Write floating network
|
iniset_nonempty "${tobiko_conf_file}" neutron floating_network \
|
||||||
local floating_network=${TOBIKO_NEUTRON_FLOATING_NETWORK}
|
"${TOBIKO_NEUTRON_FLOATING_NETWORK}"
|
||||||
if [ "${floating_network}" != "" ]; then
|
iniset_nonempty "${tobiko_conf_file}" neutron ipv4_dns_nameservers \
|
||||||
iniset "${tobiko_conf_file}" neutron floating_network \
|
"${TOBIKO_NEUTRON_IPV4_DNS_NAMESERVERS}"
|
||||||
"${floating_network}"
|
iniset_nonempty "${tobiko_conf_file}" neutron ipv6_dns_nameservers \
|
||||||
fi
|
"${TOBIKO_NEUTRON_IPV6_DNS_NAMESERVERS}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,3 +39,5 @@ TOBIKO_NOVA_KEY_FILE=${TOBIKO_NOVA_KEY_FILE:-}
|
|||||||
|
|
||||||
# --- Neutron settings ---
|
# --- Neutron settings ---
|
||||||
TOBIKO_NEUTRON_FLOATING_NETWORK=${TOBIKO_NEUTRON_FLOATING_NETWORK:-${PUBLIC_NETWORK_NAME}}
|
TOBIKO_NEUTRON_FLOATING_NETWORK=${TOBIKO_NEUTRON_FLOATING_NETWORK:-${PUBLIC_NETWORK_NAME}}
|
||||||
|
TOBIKO_NEUTRON_IPV4_DNS_NAMESERVERS=${TOBIKO_NEUTRON_IPV4_DNS_NAMESERVERS:-}
|
||||||
|
TOBIKO_NEUTRON_IPV6_DNS_NAMESERVERS=${TOBIKO_NEUTRON_IPV6_DNS_NAMESERVERS:-}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
|
||||||
- name: copy '{{ resolv_conf_file}}' file
|
- name: copy '{{ resolv_conf_file}}' file
|
||||||
become: yes
|
become: true
|
||||||
copy:
|
copy:
|
||||||
src: '{{ resolv_conf_file }}'
|
src: '{{ resolv_conf_file }}'
|
||||||
dest: /etc/resolv.conf
|
dest: /etc/resolv.conf
|
||||||
@ -18,9 +18,9 @@
|
|||||||
|
|
||||||
- name: update APT database
|
- name: update APT database
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
become: yes
|
become: true
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'Debian'
|
- ansible_os_family == 'Debian'
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
stat:
|
stat:
|
||||||
path: '{{ stack_succeeded_file }}'
|
path: '{{ stack_succeeded_file }}'
|
||||||
register: check_devstack_succeeded_file_exists
|
register: check_devstack_succeeded_file_exists
|
||||||
failed_when: no
|
failed_when: false
|
||||||
|
|
||||||
- debug: var=check_devstack_succeeded_file_exists
|
- debug: var=check_devstack_succeeded_file_exists
|
||||||
|
|
||||||
@ -25,7 +25,7 @@
|
|||||||
stat:
|
stat:
|
||||||
path: '{{ devstack_dir }}/local.conf'
|
path: '{{ devstack_dir }}/local.conf'
|
||||||
register: check_devstack_local_conf_file_exists
|
register: check_devstack_local_conf_file_exists
|
||||||
failed_when: no
|
failed_when: false
|
||||||
|
|
||||||
- debug: var=check_devstack_local_conf_file_exists
|
- debug: var=check_devstack_local_conf_file_exists
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: copy local.conf file
|
- name: copy local.conf file
|
||||||
become: yes
|
become: true
|
||||||
copy:
|
copy:
|
||||||
owner: stack
|
owner: stack
|
||||||
group: stack
|
group: stack
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: "ensure '{{ project_dest_dir }}' exists"
|
- name: "ensure '{{ project_dest_dir }}' exists"
|
||||||
become: yes
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
file:
|
file:
|
||||||
path: '{{ project_dest_dir | realpath }}'
|
path: '{{ project_dest_dir | realpath }}'
|
||||||
@ -20,21 +20,21 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
register: check_project_src_dir_exists
|
register: check_project_src_dir_exists
|
||||||
when: ( project_src_dir | length) > 0
|
when: ( project_src_dir | length) > 0
|
||||||
failed_when: no
|
failed_when: true
|
||||||
|
|
||||||
|
|
||||||
- become: yes
|
- become: true
|
||||||
become_user: stack
|
become_user: stack
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: copy '{{ project_src_dir }}' to '{{ project_dest_dir }}'
|
- name: copy '{{ project_src_dir }}' to '{{ project_dest_dir }}'
|
||||||
synchronize:
|
synchronize:
|
||||||
group: no
|
group: false
|
||||||
owner: no
|
owner: false
|
||||||
src: "{{ project_src_dir | realpath }}/."
|
src: "{{ project_src_dir | realpath }}/."
|
||||||
dest: "{{ project_dest_dir | realpath }}"
|
dest: "{{ project_dest_dir | realpath }}"
|
||||||
use_ssh_args: yes
|
use_ssh_args: true
|
||||||
recursive: yes
|
recursive: true
|
||||||
rsync_opts:
|
rsync_opts:
|
||||||
- '--exclude-from={{ project_src_dir | realpath }}/.gitignore'
|
- '--exclude-from={{ project_src_dir | realpath }}/.gitignore'
|
||||||
register: copy_project_src_dir
|
register: copy_project_src_dir
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: ensure stack group exists
|
- name: ensure stack group exists
|
||||||
become: yes
|
become: true
|
||||||
group:
|
group:
|
||||||
name: stack
|
name: stack
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
||||||
- name: ensure stack user exists
|
- name: ensure stack user exists
|
||||||
become: yes
|
become: true
|
||||||
user:
|
user:
|
||||||
name: stack
|
name: stack
|
||||||
home: '{{ devstack_dest_dir }}'
|
home: '{{ devstack_dest_dir }}'
|
||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: ensure stack user has sudo privileges
|
- name: ensure stack user has sudo privileges
|
||||||
become: yes
|
become: true
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/sudoers.d/stack
|
dest: /etc/sudoers.d/stack
|
||||||
content: |
|
content: |
|
||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: ensure stack user home exists
|
- name: ensure stack user home exists
|
||||||
become: yes
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
file:
|
file:
|
||||||
path: '{{ devstack_dest_dir | realpath }}'
|
path: '{{ devstack_dest_dir | realpath }}'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- include_tasks: check_restack.yaml
|
- include_tasks: check-restack.yaml
|
||||||
|
|
||||||
- name: run stack.sh
|
- name: run stack.sh
|
||||||
become: true
|
become: true
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- include_tasks: check_restack.yaml
|
- include_tasks: check-restack.yaml
|
||||||
|
|
||||||
- name: run unstack.sh
|
- name: run unstack.sh
|
||||||
become: yes
|
become: true
|
||||||
become_user: stack
|
become_user: stack
|
||||||
shell:
|
shell:
|
||||||
cmd: |
|
cmd: |
|
||||||
@ -17,7 +17,7 @@
|
|||||||
echo "*** FINISHED ***"
|
echo "*** FINISHED ***"
|
||||||
exit $rc
|
exit $rc
|
||||||
register: run_unstack
|
register: run_unstack
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
when: force_restack | bool
|
when: force_restack | bool
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,6 +40,10 @@
|
|||||||
standard-attr-revisions,standard-attr-segment,
|
standard-attr-revisions,standard-attr-segment,
|
||||||
standard-attr-timestamp,standard-attr-tag,subnet_allocation,
|
standard-attr-timestamp,standard-attr-tag,subnet_allocation,
|
||||||
trunk,trunk-details,uplink-status-propagation
|
trunk,trunk-details,uplink-status-propagation
|
||||||
|
TOBIKO_NEUTRON_IPV4_DNS_NAMESERVERS:
|
||||||
|
"{{ ipv4_dns_nameservers | join(',') }}"
|
||||||
|
TOBIKO_NEUTRON_IPV6_DNS_NAMESERVERS:
|
||||||
|
"{{ ipv6_dns_nameservers | join(',') }}"
|
||||||
devstack_plugins:
|
devstack_plugins:
|
||||||
heat: https://opendev.org/openstack/heat.git
|
heat: https://opendev.org/openstack/heat.git
|
||||||
neutron: https://opendev.org/openstack/neutron.git
|
neutron: https://opendev.org/openstack/neutron.git
|
||||||
@ -81,6 +85,12 @@
|
|||||||
$NOVA_CONF:
|
$NOVA_CONF:
|
||||||
quota:
|
quota:
|
||||||
instances: 20
|
instances: 20
|
||||||
|
ipv4_dns_nameservers:
|
||||||
|
- 1.0.0.1
|
||||||
|
- 8.8.8.8
|
||||||
|
ipv6_dns_nameservers:
|
||||||
|
- 2606:4700:4700::1111
|
||||||
|
- 2001:4860:4860::8888
|
||||||
zuul_copy_output:
|
zuul_copy_output:
|
||||||
'{{ stage_dir }}/stackviz': logs
|
'{{ stage_dir }}/stackviz': logs
|
||||||
extensions_to_txt:
|
extensions_to_txt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user