Skip to content

Commit 565aefe

Browse files
authored
Merge pull request #192 from stackhpc/stable/wallaby
Wallaby: sync upstream
2 parents 36d9cf0 + 9e96827 commit 565aefe

36 files changed

+174
-269
lines changed

.ansible-lint

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ skip_list:
1919
# [unnamed-task] All tasks should be named
2020
# FIXME(mgoddard): Add names to all tasks
2121
- unnamed-task
22+
# disable experimental rules
23+
- experimental
24+
# Package installs should not use latest
25+
- package-latest
26+
# Most files should not contain tabs
27+
- no-tabs

ansible/group_vars/all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ container_config_directory: "/var/lib/kolla/config_files"
1010
node_config: "{{ CONFIG_DIR | default('/etc/kolla') }}"
1111

1212
# The directory to merge custom config files the kolla's config files
13-
node_custom_config: "/etc/kolla/config"
13+
node_custom_config: "{{ node_config }}/config"
1414

1515
# The directory to store the config files on the destination node
1616
node_config_directory: "/etc/kolla"

ansible/roles/baremetal/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# TODO(inc0): Gates don't seem to have ufw executable, check for it instead of ignore errors
99
- block:
10-
- name: Set firewall default policy
10+
- name: Set firewall default policy # noqa ignore-errors
1111
become: True
1212
ufw:
1313
state: disabled

ansible/roles/baremetal/tasks/post-install.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@
201201
when: ansible_facts.distribution == "Ubuntu"
202202

203203
- name: Remove apparmor profile for libvirt
204-
command: apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd
204+
shell: |
205+
apparmor_parser -v -R /etc/apparmor.d/usr.sbin.libvirtd && \
206+
ln -vsf /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable
207+
args:
208+
executable: /bin/bash
205209
become: True
206210
when:
207211
- ansible_facts.distribution == "Ubuntu"

ansible/roles/certificates/tasks/generate-backend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
-CA "{{ root_dir }}/root.crt"
4040
-CAkey "{{ root_dir }}/root.key"
4141
-CAcreateserial
42+
-extensions v3_req
43+
-extfile "{{ kolla_certificates_dir }}/openssl-kolla-backend.cnf"
4244
-out "{{ backend_dir }}/backend.crt"
4345
-days 500
4446
-sha256

ansible/roles/certificates/tasks/generate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
-CA "{{ root_dir }}/root.crt"
4747
-CAkey "{{ root_dir }}/root.key"
4848
-CAcreateserial
49+
-extensions v3_req
50+
-extfile "{{ kolla_certificates_dir }}/openssl-kolla.cnf"
4951
-out "{{ external_dir }}/external.crt"
5052
-days 365
5153
-sha256
@@ -114,6 +116,8 @@
114116
-CA "{{ root_dir }}/root.crt"
115117
-CAkey "{{ root_dir }}/root.key"
116118
-CAcreateserial
119+
-extensions v3_req
120+
-extfile "{{ kolla_certificates_dir }}/openssl-kolla-internal.cnf"
117121
-out "{{ internal_dir }}/internal.crt"
118122
-days 365
119123
-sha256

ansible/roles/certificates/templates/openssl-kolla-internal.cnf.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ countryName = US
88
stateOrProvinceName = NC
99
localityName = RTP
1010
organizationalUnitName = kolla
11-
commonName = {{ kolla_internal_fqdn }}
1211

1312
[v3_req]
1413
subjectAltName = @alt_names
1514

1615
[alt_names]
1716
{% if kolla_internal_fqdn != kolla_internal_vip_address %}
1817
DNS.1 = {{ kolla_internal_fqdn }}
19-
{% else %}
20-
IP.1 = {{ kolla_internal_fqdn }}
2118
{% endif %}
19+
IP.1 = {{ kolla_internal_vip_address }}

ansible/roles/certificates/templates/openssl-kolla.cnf.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ countryName = US
88
stateOrProvinceName = NC
99
localityName = RTP
1010
organizationalUnitName = kolla
11-
commonName = {{ kolla_external_fqdn }}
1211

1312
[v3_req]
1413
subjectAltName = @alt_names
1514

1615
[alt_names]
1716
{% if kolla_external_fqdn != kolla_external_vip_address %}
1817
DNS.1 = {{ kolla_external_fqdn }}
19-
{% else %}
20-
IP.1 = {{ kolla_external_fqdn }}
2118
{% endif %}
19+
IP.1 = {{ kolla_external_vip_address }}

ansible/roles/cloudkitty/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ cloudkitty_collector_backend: "gnocchi"
174174
cloudkitty_monasca_interface: "internal"
175175

176176
# Set prometheus collector URL.
177-
cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_port }}"
177+
cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_port }}/api/v1"
178178

179179
# Path of the CA certificate to trust for HTTPS connections.
180180
# cloudkitty_prometheus_cafile: "{{ openstack_cacert }}"

ansible/roles/common/defaults/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,30 @@ syslog_haproxy_facility: "local1"
7070
syslog_glance_tls_proxy_facility: "local2"
7171
syslog_neutron_tls_proxy_facility: "local4"
7272

73+
syslog_facilities:
74+
- name: "swift"
75+
enabled: "{{ enable_swift | bool and (inventory_hostname in groups['swift-proxy-server'] or inventory_hostname in groups['swift-account-server'] or inventory_hostname in groups['swift-container-server'] or inventory_hostname in groups['swift-object-server']) }}"
76+
facility: "{{ syslog_swift_facility }}"
77+
logdir: "swift"
78+
logfile: "swift_latest"
79+
output_tag: true
80+
output_time: true
81+
- name: "haproxy"
82+
enabled: "{{ enable_haproxy | bool and inventory_hostname in groups['haproxy'] }}"
83+
facility: "{{ syslog_haproxy_facility }}"
84+
logdir: "haproxy"
85+
logfile: "haproxy_latest"
86+
- name: "glance_tls_proxy"
87+
enabled: "{{ glance_enable_tls_backend | bool and inventory_hostname in groups['glance-api'] }}"
88+
facility: "{{ syslog_glance_tls_proxy_facility }}"
89+
logdir: "glance-tls-proxy"
90+
logfile: "glance-tls-proxy"
91+
- name: "neutron_tls_proxy"
92+
enabled: "{{ neutron_enable_tls_backend | bool and inventory_hostname in groups['neutron-server'] }}"
93+
facility: "{{ syslog_neutron_tls_proxy_facility }}"
94+
logdir: "neutron-tls-proxy"
95+
logfile: "neutron-tls-proxy"
96+
7397
kolla_toolbox_default_volumes:
7498
- "{{ node_config_directory }}/kolla-toolbox/:{{ container_config_directory }}/:ro"
7599
- "/etc/localtime:/etc/localtime:ro"

0 commit comments

Comments
 (0)