Codebase list puppet-module-gnocchi / c0d537c
Merge "Remove unnecessary policy conversion" Zuul authored 1 year, 1 month ago Gerrit Code Review committed 1 year, 1 month ago
1 changed file(s) with 0 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
5959
6060 validate_legacy(Hash, 'validate_hash', $policies)
6161
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
7562 $policy_parameters = {
7663 policies => $policies,
7764 policy_path => $policy_path,