Fix tox-linters job
Change-Id: Iacaa24d6b40dae62dd79e3c02a389022f0d097d5
This commit is contained in:
parent
fae1a9b1ac
commit
9dfaabe613
@ -2,7 +2,7 @@
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-byte-order-marker
|
||||
@ -19,12 +19,12 @@ repos:
|
||||
- id: trailing-whitespace
|
||||
|
||||
- repo: https://github.com/adrienverge/yamllint.git
|
||||
rev: v1.27.1
|
||||
rev: v1.29.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
files: \.(yaml|yml)$
|
||||
|
||||
- repo: https://opendev.org/openstack/bashate.git
|
||||
rev: 2.1.0
|
||||
rev: 2.1.1
|
||||
hooks:
|
||||
- id: bashate
|
||||
|
@ -15,6 +15,6 @@
|
||||
git:
|
||||
repo: '{{ devstack_git_repo }}'
|
||||
dest: '{{ devstack_dir | realpath }}'
|
||||
update: no
|
||||
update: false
|
||||
become: true
|
||||
become_user: stack
|
||||
|
@ -1,3 +1,5 @@
|
||||
---
|
||||
|
||||
- name: copy stack.sh file to /etc/profile.d/
|
||||
become: true
|
||||
copy:
|
||||
|
@ -2,37 +2,36 @@
|
||||
|
||||
- delegate_to: localhost
|
||||
block:
|
||||
- name: ensure '{{ tobiko_ssh_config_path | dirname }}' exists
|
||||
file:
|
||||
path: '{{ tobiko_ssh_config_path | dirname }}'
|
||||
state: directory
|
||||
|
||||
- name: ensure '{{ tobiko_ssh_config_path | dirname }}' exists
|
||||
file:
|
||||
path: '{{ tobiko_ssh_config_path | dirname }}'
|
||||
state: directory
|
||||
- name: get ssh_config content'
|
||||
shell:
|
||||
cmd: vagrant ssh-config
|
||||
chdir: '{{ devstack_plugin_tobiko_src_dir }}'
|
||||
register: get_ssh_config
|
||||
changed_when: false
|
||||
|
||||
- name: get ssh_config content'
|
||||
shell:
|
||||
cmd: vagrant ssh-config
|
||||
chdir: '{{ devstack_plugin_tobiko_src_dir }}'
|
||||
register: get_ssh_config
|
||||
changed_when: false
|
||||
- debug: var=get_ssh_config
|
||||
|
||||
- debug: var=get_ssh_config
|
||||
- name: write ssh_config to file '{{ tobiko_ssh_config_path }}'
|
||||
copy:
|
||||
content: |
|
||||
{{ get_ssh_config.stdout }}
|
||||
dest: '{{ tobiko_ssh_config_path }}'
|
||||
|
||||
- name: write ssh_config to file '{{ tobiko_ssh_config_path }}'
|
||||
copy:
|
||||
content: |
|
||||
{{ get_ssh_config.stdout }}
|
||||
dest: '{{ tobiko_ssh_config_path }}'
|
||||
- name: write ssh_config file path to {{ tobiko_config_path }}
|
||||
ini_file:
|
||||
path: '{{ tobiko_config_path }}'
|
||||
section: ssh
|
||||
option: config_files
|
||||
value: '{{ tobiko_ssh_config_path }}'
|
||||
|
||||
- name: write ssh_config file path to {{ tobiko_config_path }}
|
||||
ini_file:
|
||||
path: '{{ tobiko_config_path }}'
|
||||
section: ssh
|
||||
option: config_files
|
||||
value: '{{ tobiko_ssh_config_path }}'
|
||||
|
||||
- name: write SSH proxy jump host to {{ tobiko_config_path }}
|
||||
ini_file:
|
||||
path: '{{ tobiko_config_path }}'
|
||||
section: ssh
|
||||
option: proxy_jump
|
||||
value: devstack-primary
|
||||
- name: write SSH proxy jump host to {{ tobiko_config_path }}
|
||||
ini_file:
|
||||
path: '{{ tobiko_config_path }}'
|
||||
section: ssh
|
||||
option: proxy_jump
|
||||
value: devstack-primary
|
||||
|
@ -3,30 +3,29 @@
|
||||
- name: Configure Neutron bridge for multi node setup
|
||||
when: "( ansible_play_hosts | length ) > 1"
|
||||
block:
|
||||
- name: Ensure the infra bridge exists
|
||||
become: true
|
||||
openvswitch_bridge:
|
||||
bridge: "{{ infra_bridge_name }}"
|
||||
state: present
|
||||
fail_mode: standalone
|
||||
|
||||
- name: Ensure the infra bridge exists
|
||||
become: true
|
||||
openvswitch_bridge:
|
||||
bridge: "{{ infra_bridge_name }}"
|
||||
state: present
|
||||
fail_mode: standalone
|
||||
- name: Ensure the Neutron external bridge exists
|
||||
become: true
|
||||
openvswitch_bridge:
|
||||
bridge: "{{ neutron_external_bridge_name }}"
|
||||
state: present
|
||||
fail_mode: standalone
|
||||
|
||||
- name: Ensure the Neutron external bridge exists
|
||||
become: true
|
||||
openvswitch_bridge:
|
||||
bridge: "{{ neutron_external_bridge_name }}"
|
||||
state: present
|
||||
fail_mode: standalone
|
||||
|
||||
- name: Create patch port between bridges
|
||||
become: true
|
||||
command: >-
|
||||
ovs-vsctl
|
||||
--may-exist add-port {{ infra_bridge_name }}
|
||||
patch-{{ neutron_external_bridge_name }} --
|
||||
set interface patch-{{ neutron_external_bridge_name }}
|
||||
type=patch options:peer=patch-{{ infra_bridge_name }} --
|
||||
--may-exist add-port {{ neutron_external_bridge_name }}
|
||||
patch-{{ infra_bridge_name }} --
|
||||
set interface patch-{{ infra_bridge_name }}
|
||||
type=patch options:peer=patch-{{ neutron_external_bridge_name }}
|
||||
- name: Create patch port between bridges
|
||||
become: true
|
||||
command: >-
|
||||
ovs-vsctl
|
||||
--may-exist add-port {{ infra_bridge_name }}
|
||||
patch-{{ neutron_external_bridge_name }} --
|
||||
set interface patch-{{ neutron_external_bridge_name }}
|
||||
type=patch options:peer=patch-{{ infra_bridge_name }} --
|
||||
--may-exist add-port {{ neutron_external_bridge_name }}
|
||||
patch-{{ infra_bridge_name }} --
|
||||
set interface patch-{{ infra_bridge_name }}
|
||||
type=patch options:peer=patch-{{ neutron_external_bridge_name }}
|
||||
|
Loading…
Reference in New Issue
Block a user