Create certificates are package installs

When setting certificate folders to /etc/octavia/certs
or similar that depends on /etc/octavia folder the resource
will fail because it doesn't create the whole folder path
recursively.

This changes the dependency chaining to make sure that
certificates are modified after package installs so that
the /etc/octavia folder for example is available.

Closes-Bug: 1804883
Change-Id: I551053b96fde110478945955f3d7dc42bf3e65ef
(cherry picked from commit 768d2900eb)
This commit is contained in:
Tobias Urdin 2018-11-23 21:05:56 +01:00
parent ea17af17d9
commit bf0dd74190
2 changed files with 9 additions and 1 deletions

View File

@ -16,6 +16,9 @@ class octavia::deps {
-> anchor { 'octavia::config::begin': }
-> Octavia_config<||>
~> anchor { 'octavia::config::end': }
-> anchor { 'octavia::certificate::begin': }
-> File<| tag == 'octavia-certificate' |>
~> anchor { 'octavia::certificate::end': }
-> anchor { 'octavia::db::begin': }
-> anchor { 'octavia::db::end': }
~> anchor { 'octavia::dbsync::begin': }
@ -38,5 +41,5 @@ class octavia::deps {
Anchor['octavia::config::end'] ~> Anchor['octavia::service::begin']
# Changes in certificate or folders will restart services.
File<| tag == 'octavia-certificate' |> ~> Anchor['octavia::service::begin']
Anchor['octavia::certificate::end'] ~> Anchor['octavia::service::begin']
}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixed a bug where certificate folders that depended on paths provided
by packages failed.