Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris VAN ACOLEYEN committed Jul 26, 2024
1 parent bfff2fb commit c17a72a
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions manifests/config/secret.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,12 @@
onlyif => "rd keys info -p '${keystorage_path}'",
}
} else {
exec {
default:
path => ['/bin', '/usr/bin', '/usr/local/bin'],
environment => $rundeck::cli::environment,
;
"Create rundeck ${type}: ${keystorage_path}":
command => "rd keys create -t ${type} -p '${keystorage_path}' -f '${keystorage_dir}/${_filename}'",
unless => "rd keys info -p '${keystorage_path}'",
refreshonly => true,
subscribe => File["${keystorage_dir}/${_filename}"],
;
"Update rundeck ${type}: ${keystorage_path}":
command => "rd keys update -t ${type} -p '${keystorage_path}' -f '${keystorage_dir}/${_filename}'",
onlyif => "rd keys info -p '${keystorage_path}'",
refreshonly => true,
subscribe => File["${keystorage_dir}/${_filename}"],
;
exec { "Create/update rundeck ${type}: ${keystorage_path}":
command => "if rd keys info -p '${keystorage_path}'; then rd keys update -t ${type} -p '${keystorage_path}' -f '${keystorage_dir}/${_filename}'; else rd keys create -t ${type} -p '${keystorage_path}' -f '${keystorage_dir}/${_filename}'; fi",
path => ['/bin', '/usr/bin', '/usr/local/bin'],
environment => $rundeck::cli::environment,
refreshonly => true,
subscribe => File["${keystorage_dir}/${_filename}"],
}
}
}

0 comments on commit c17a72a

Please sign in to comment.