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:
parent
ea17af17d9
commit
bf0dd74190
|
@ -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']
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixed a bug where certificate folders that depended on paths provided
|
||||
by packages failed.
|
Loading…
Reference in New Issue