Merge "Remove unnecessary policy conversion"
Zuul authored 1 year, 1 month ago
Gerrit Code Review committed 1 year, 1 month ago
59 | 59 | |
60 | 60 | validate_legacy(Hash, 'validate_hash', $policies) |
61 | 61 | |
62 | if ! $purge_config { | |
63 | # TODO(tkajinam): Remove this once version with policy-in-code implementation | |
64 | # is released. | |
65 | exec { 'gnocci-oslopolicy-convert-json-to-yaml': | |
66 | command => "oslopolicy-convert-json-to-yaml --namespace gnocchi --policy-file /etc/gnocchi/policy.json --output-file ${policy_path}", | |
67 | unless => "test -f ${policy_path}", | |
68 | path => ['/bin','/usr/bin','/usr/local/bin'], | |
69 | require => Anchor['gnocchi::install::end'], | |
70 | } | |
71 | Exec<| title == 'gnocchi-oslopolicy-convert-json-to-yaml' |> | |
72 | -> File<| title == $policy_path |> | |
73 | } | |
74 | ||
75 | 62 | $policy_parameters = { |
76 | 63 | policies => $policies, |
77 | 64 | policy_path => $policy_path, |