hybrid_platforms_conductor 32.17.1 → 33.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +6 -3
  4. data/bin/check-node +0 -1
  5. data/bin/deploy +0 -1
  6. data/bin/get_impacted_nodes +0 -1
  7. data/bin/last_deploys +12 -8
  8. data/bin/nodes_to_deploy +6 -6
  9. data/bin/setup +6 -6
  10. data/bin/topograph +1 -1
  11. data/docs/config_dsl.md +45 -1
  12. data/docs/executables.md +6 -7
  13. data/docs/executables/check-node.md +3 -3
  14. data/docs/executables/deploy.md +3 -3
  15. data/docs/executables/dump_nodes_json.md +3 -3
  16. data/docs/executables/test.md +3 -3
  17. data/docs/executables/topograph.md +3 -3
  18. data/docs/gen/mermaid/README.md-0.png +0 -0
  19. data/docs/gen/mermaid/docs/executables/check-node.md-0.png +0 -0
  20. data/docs/gen/mermaid/docs/executables/deploy.md-0.png +0 -0
  21. data/docs/gen/mermaid/docs/executables/free_ips.md-0.png +0 -0
  22. data/docs/gen/mermaid/docs/executables/get_impacted_nodes.md-0.png +0 -0
  23. data/docs/gen/mermaid/docs/executables/last_deploys.md-0.png +0 -0
  24. data/docs/gen/mermaid/docs/executables/nodes_to_deploy.md-0.png +0 -0
  25. data/docs/gen/mermaid/docs/executables/report.md-0.png +0 -0
  26. data/docs/gen/mermaid/docs/executables/run.md-0.png +0 -0
  27. data/docs/gen/mermaid/docs/executables/ssh_config.md-0.png +0 -0
  28. data/docs/gen/mermaid/docs/executables/test.md-0.png +0 -0
  29. data/docs/plugins.md +46 -0
  30. data/docs/plugins/log/remote_fs.md +26 -0
  31. data/docs/plugins/secrets_reader/cli.md +31 -0
  32. data/docs/plugins/secrets_reader/thycotic.md +46 -0
  33. data/lib/hybrid_platforms_conductor/action.rb +4 -4
  34. data/lib/hybrid_platforms_conductor/actions_executor.rb +45 -43
  35. data/lib/hybrid_platforms_conductor/bitbucket.rb +5 -4
  36. data/lib/hybrid_platforms_conductor/cmd_runner.rb +13 -12
  37. data/lib/hybrid_platforms_conductor/cmdb.rb +2 -2
  38. data/lib/hybrid_platforms_conductor/common_config_dsl/bitbucket.rb +2 -1
  39. data/lib/hybrid_platforms_conductor/common_config_dsl/confluence.rb +2 -1
  40. data/lib/hybrid_platforms_conductor/common_config_dsl/file_system_tests.rb +5 -4
  41. data/lib/hybrid_platforms_conductor/common_config_dsl/github.rb +4 -3
  42. data/lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb +2 -2
  43. data/lib/hybrid_platforms_conductor/config.rb +8 -4
  44. data/lib/hybrid_platforms_conductor/confluence.rb +1 -1
  45. data/lib/hybrid_platforms_conductor/connector.rb +5 -2
  46. data/lib/hybrid_platforms_conductor/core_extensions/cleanroom/fix_kwargs.rb +116 -0
  47. data/lib/hybrid_platforms_conductor/core_extensions/symbol/zero.rb +24 -0
  48. data/lib/hybrid_platforms_conductor/credentials.rb +39 -36
  49. data/lib/hybrid_platforms_conductor/current_dir_monitor.rb +4 -1
  50. data/lib/hybrid_platforms_conductor/deployer.rb +275 -225
  51. data/lib/hybrid_platforms_conductor/executable.rb +20 -15
  52. data/lib/hybrid_platforms_conductor/hpc_plugins/cmdb/config.rb +10 -7
  53. data/lib/hybrid_platforms_conductor/hpc_plugins/cmdb/host_ip.rb +1 -1
  54. data/lib/hybrid_platforms_conductor/hpc_plugins/cmdb/host_keys.rb +2 -2
  55. data/lib/hybrid_platforms_conductor/hpc_plugins/cmdb/platform_handlers.rb +4 -4
  56. data/lib/hybrid_platforms_conductor/hpc_plugins/connector/local.rb +2 -0
  57. data/lib/hybrid_platforms_conductor/hpc_plugins/connector/ssh.rb +45 -49
  58. data/lib/hybrid_platforms_conductor/hpc_plugins/log/my_log_plugin.rb.sample +100 -0
  59. data/lib/hybrid_platforms_conductor/hpc_plugins/log/remote_fs.rb +180 -0
  60. data/lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef.rb +68 -66
  61. data/lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef/dsl_parser.rb +13 -0
  62. data/lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef/recipes_tree_builder.rb +39 -38
  63. data/lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/yaml_inventory.rb +5 -4
  64. data/lib/hybrid_platforms_conductor/hpc_plugins/provisioner/docker.rb +43 -45
  65. data/lib/hybrid_platforms_conductor/hpc_plugins/provisioner/podman.rb +18 -20
  66. data/lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox.rb +119 -118
  67. data/lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox/proxmox_waiter.rb +39 -43
  68. data/lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox/reserve_proxmox_container +9 -13
  69. data/lib/hybrid_platforms_conductor/hpc_plugins/report/confluence.rb +2 -2
  70. data/lib/hybrid_platforms_conductor/hpc_plugins/report/mediawiki.rb +28 -21
  71. data/lib/hybrid_platforms_conductor/hpc_plugins/report/stdout.rb +26 -22
  72. data/lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/cli.rb +77 -0
  73. data/lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/my_secrets_reader_plugin.rb.sample +46 -0
  74. data/lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/thycotic.rb +90 -0
  75. data/lib/hybrid_platforms_conductor/hpc_plugins/test/bitbucket_conf.rb +3 -3
  76. data/lib/hybrid_platforms_conductor/hpc_plugins/test/check_deploy_and_idempotence.rb +4 -2
  77. data/lib/hybrid_platforms_conductor/hpc_plugins/test/deploy_freshness.rb +7 -21
  78. data/lib/hybrid_platforms_conductor/hpc_plugins/test/deploy_removes_root_access.rb +21 -19
  79. data/lib/hybrid_platforms_conductor/hpc_plugins/test/divergence.rb +2 -2
  80. data/lib/hybrid_platforms_conductor/hpc_plugins/test/executables.rb +2 -2
  81. data/lib/hybrid_platforms_conductor/hpc_plugins/test/file_system.rb +19 -21
  82. data/lib/hybrid_platforms_conductor/hpc_plugins/test/file_system_hdfs.rb +19 -21
  83. data/lib/hybrid_platforms_conductor/hpc_plugins/test/github_ci.rb +2 -3
  84. data/lib/hybrid_platforms_conductor/hpc_plugins/test/idempotence.rb +2 -2
  85. data/lib/hybrid_platforms_conductor/hpc_plugins/test/ip.rb +1 -1
  86. data/lib/hybrid_platforms_conductor/hpc_plugins/test/jenkins_ci_conf.rb +21 -22
  87. data/lib/hybrid_platforms_conductor/hpc_plugins/test/jenkins_ci_masters_ok.rb +10 -12
  88. data/lib/hybrid_platforms_conductor/hpc_plugins/test/linear_strategy.rb +9 -9
  89. data/lib/hybrid_platforms_conductor/hpc_plugins/test/local_users.rb +2 -2
  90. data/lib/hybrid_platforms_conductor/hpc_plugins/test/mounts.rb +2 -2
  91. data/lib/hybrid_platforms_conductor/hpc_plugins/test/orphan_files.rb +10 -9
  92. data/lib/hybrid_platforms_conductor/hpc_plugins/test/ports.rb +2 -2
  93. data/lib/hybrid_platforms_conductor/hpc_plugins/test/private_ips.rb +5 -5
  94. data/lib/hybrid_platforms_conductor/hpc_plugins/test/public_ips.rb +5 -5
  95. data/lib/hybrid_platforms_conductor/hpc_plugins/test/spectre.rb +4 -6
  96. data/lib/hybrid_platforms_conductor/hpc_plugins/test/veids.rb +3 -3
  97. data/lib/hybrid_platforms_conductor/hpc_plugins/test/vulnerabilities.rb +25 -24
  98. data/lib/hybrid_platforms_conductor/hpc_plugins/test_report/confluence.rb +2 -2
  99. data/lib/hybrid_platforms_conductor/hpc_plugins/test_report/stdout.rb +8 -6
  100. data/lib/hybrid_platforms_conductor/io_router.rb +14 -13
  101. data/lib/hybrid_platforms_conductor/json_dumper.rb +2 -2
  102. data/lib/hybrid_platforms_conductor/log.rb +31 -0
  103. data/lib/hybrid_platforms_conductor/logger_helpers.rb +19 -16
  104. data/lib/hybrid_platforms_conductor/nodes_handler.rb +89 -71
  105. data/lib/hybrid_platforms_conductor/parallel_threads.rb +7 -11
  106. data/lib/hybrid_platforms_conductor/platform_handler.rb +7 -7
  107. data/lib/hybrid_platforms_conductor/platforms_handler.rb +5 -3
  108. data/lib/hybrid_platforms_conductor/plugin.rb +2 -2
  109. data/lib/hybrid_platforms_conductor/plugins.rb +14 -8
  110. data/lib/hybrid_platforms_conductor/provisioner.rb +4 -4
  111. data/lib/hybrid_platforms_conductor/report.rb +2 -2
  112. data/lib/hybrid_platforms_conductor/reports_handler.rb +3 -2
  113. data/lib/hybrid_platforms_conductor/secrets_reader.rb +31 -0
  114. data/lib/hybrid_platforms_conductor/services_handler.rb +32 -29
  115. data/lib/hybrid_platforms_conductor/test_only_remote_node.rb +1 -1
  116. data/lib/hybrid_platforms_conductor/test_report.rb +15 -18
  117. data/lib/hybrid_platforms_conductor/tests_runner.rb +116 -118
  118. data/lib/hybrid_platforms_conductor/thycotic.rb +28 -19
  119. data/lib/hybrid_platforms_conductor/topographer.rb +200 -190
  120. data/lib/hybrid_platforms_conductor/topographer/plugins/graphviz.rb +8 -8
  121. data/lib/hybrid_platforms_conductor/topographer/plugins/json.rb +4 -4
  122. data/lib/hybrid_platforms_conductor/version.rb +1 -1
  123. data/spec/hybrid_platforms_conductor_test.rb +51 -12
  124. data/spec/hybrid_platforms_conductor_test/api/actions_executor/actions/bash_spec.rb +18 -11
  125. data/spec/hybrid_platforms_conductor_test/api/actions_executor/actions/interactive_spec.rb +2 -2
  126. data/spec/hybrid_platforms_conductor_test/api/actions_executor/actions/remote_bash_spec.rb +32 -21
  127. data/spec/hybrid_platforms_conductor_test/api/actions_executor/actions/ruby_spec.rb +75 -49
  128. data/spec/hybrid_platforms_conductor_test/api/actions_executor/actions/scp_spec.rb +27 -15
  129. data/spec/hybrid_platforms_conductor_test/api/actions_executor/actions_spec.rb +90 -59
  130. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connection_spec.rb +46 -44
  131. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/local/connectable_nodes_spec.rb +12 -8
  132. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/local/remote_actions_spec.rb +4 -7
  133. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/cli_options_spec.rb +21 -22
  134. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/config_dsl_spec.rb +23 -24
  135. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb +10 -6
  136. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connections_spec.rb +106 -75
  137. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/global_helpers_spec.rb +145 -126
  138. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/node_helpers_spec.rb +3 -3
  139. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/remote_actions_spec.rb +29 -25
  140. data/spec/hybrid_platforms_conductor_test/api/actions_executor/logging_spec.rb +167 -142
  141. data/spec/hybrid_platforms_conductor_test/api/actions_executor/parallel_spec.rb +272 -244
  142. data/spec/hybrid_platforms_conductor_test/api/actions_executor/timeout_spec.rb +16 -16
  143. data/spec/hybrid_platforms_conductor_test/api/cmd_runner_spec.rb +36 -36
  144. data/spec/hybrid_platforms_conductor_test/api/config_spec.rb +24 -22
  145. data/spec/hybrid_platforms_conductor_test/api/deployer/check_spec.rb +4 -2
  146. data/spec/hybrid_platforms_conductor_test/api/deployer/config_dsl_spec.rb +43 -5
  147. data/spec/hybrid_platforms_conductor_test/api/deployer/deploy_spec.rb +199 -216
  148. data/spec/hybrid_platforms_conductor_test/api/deployer/log_plugins/remote_fs_spec.rb +223 -0
  149. data/spec/hybrid_platforms_conductor_test/api/deployer/parse_deploy_output_spec.rb +55 -59
  150. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioner_spec.rb +36 -62
  151. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/podman_spec.rb +17 -17
  152. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/config_dsl_spec.rb +4 -4
  153. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/create_spec.rb +44 -51
  154. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/destroy_spec.rb +3 -3
  155. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/ip_spec.rb +12 -16
  156. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/reserve_proxmox_container/destroy_vm_spec.rb +31 -19
  157. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/reserve_proxmox_container/expired_containers_spec.rb +324 -266
  158. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/reserve_proxmox_container/ips_assignment_spec.rb +89 -61
  159. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/reserve_proxmox_container/other_lxc_containers_resources_spec.rb +117 -93
  160. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/reserve_proxmox_container/pve_node_resources_spec.rb +71 -54
  161. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/reserve_proxmox_container/retries_spec.rb +10 -8
  162. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/reserve_proxmox_container/vm_ids_assignment_spec.rb +80 -60
  163. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/start_spec.rb +1 -1
  164. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb +1 -1
  165. data/spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/stop_spec.rb +1 -1
  166. data/spec/hybrid_platforms_conductor_test/api/deployer/secrets_reader_plugins/cli_spec.rb +64 -0
  167. data/spec/hybrid_platforms_conductor_test/api/deployer/secrets_reader_plugins/thycotic_spec.rb +268 -0
  168. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/config_spec.rb +8 -10
  169. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/host_ip_spec.rb +33 -24
  170. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/host_keys_spec.rb +64 -51
  171. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/platform_handlers_spec.rb +3 -3
  172. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs_plugins_api_spec.rb +50 -51
  173. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/common_spec.rb +91 -81
  174. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/config_dsl_spec.rb +14 -16
  175. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/git_diff_impacts_spec.rb +51 -75
  176. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/nodes_selectors_spec.rb +35 -26
  177. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/platform_handlers_plugins_api_spec.rb +24 -16
  178. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/several_platforms_spec.rb +29 -19
  179. data/spec/hybrid_platforms_conductor_test/api/platform_handler_spec.rb +4 -4
  180. data/spec/hybrid_platforms_conductor_test/api/platform_handlers/serverless_chef/config_dsl_spec.rb +2 -2
  181. data/spec/hybrid_platforms_conductor_test/api/platform_handlers/serverless_chef/deploy_output_parsing_spec.rb +6 -6
  182. data/spec/hybrid_platforms_conductor_test/api/platform_handlers/serverless_chef/diff_impacts_spec.rb +57 -99
  183. data/spec/hybrid_platforms_conductor_test/api/platform_handlers/serverless_chef/inventory_spec.rb +4 -4
  184. data/spec/hybrid_platforms_conductor_test/api/platform_handlers/serverless_chef/packaging_spec.rb +32 -35
  185. data/spec/hybrid_platforms_conductor_test/api/platform_handlers/serverless_chef/services_deployment_spec.rb +10 -10
  186. data/spec/hybrid_platforms_conductor_test/api/platforms_handler_spec.rb +38 -27
  187. data/spec/hybrid_platforms_conductor_test/api/plugins_spec.rb +46 -52
  188. data/spec/hybrid_platforms_conductor_test/api/reports_handler_spec.rb +2 -2
  189. data/spec/hybrid_platforms_conductor_test/api/services_handler/actions_to_deploy_spec.rb +90 -58
  190. data/spec/hybrid_platforms_conductor_test/api/services_handler/deploy_allowed_spec.rb +38 -34
  191. data/spec/hybrid_platforms_conductor_test/api/services_handler/log_info_spec.rb +11 -9
  192. data/spec/hybrid_platforms_conductor_test/api/services_handler/package_spec.rb +193 -171
  193. data/spec/hybrid_platforms_conductor_test/api/services_handler/parse_deploy_output_spec.rb +66 -54
  194. data/spec/hybrid_platforms_conductor_test/api/services_handler/prepare_for_deploy_spec.rb +147 -133
  195. data/spec/hybrid_platforms_conductor_test/api/tests_runner/common_spec.rb +69 -49
  196. data/spec/hybrid_platforms_conductor_test/api/tests_runner/global_spec.rb +5 -4
  197. data/spec/hybrid_platforms_conductor_test/api/tests_runner/node_check_spec.rb +8 -5
  198. data/spec/hybrid_platforms_conductor_test/api/tests_runner/node_spec.rb +8 -5
  199. data/spec/hybrid_platforms_conductor_test/api/tests_runner/node_ssh_spec.rb +30 -27
  200. data/spec/hybrid_platforms_conductor_test/api/tests_runner/platform_spec.rb +12 -9
  201. data/spec/hybrid_platforms_conductor_test/api/tests_runner/reports_spec.rb +48 -47
  202. data/spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/bitbucket_conf_spec.rb +5 -5
  203. data/spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb +5 -5
  204. data/spec/hybrid_platforms_conductor_test/api/tests_runner/test_reports_plugins/confluence_spec.rb +5 -5
  205. data/spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb.rb +9 -9
  206. data/spec/hybrid_platforms_conductor_test/cmdb_plugins/{test_cmdb2.rb → test_cmdb_2.rb} +6 -6
  207. data/spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb_others.rb +3 -3
  208. data/spec/hybrid_platforms_conductor_test/cmdb_plugins/{test_cmdb_others2.rb → test_cmdb_others_2.rb} +2 -2
  209. data/spec/hybrid_platforms_conductor_test/docs_spec.rb +1 -1
  210. data/spec/hybrid_platforms_conductor_test/executables/{check-node_spec.rb → check_node_spec.rb} +4 -6
  211. data/spec/hybrid_platforms_conductor_test/executables/deploy_spec.rb +4 -6
  212. data/spec/hybrid_platforms_conductor_test/executables/get_impacted_nodes_spec.rb +76 -77
  213. data/spec/hybrid_platforms_conductor_test/executables/last_deploys_spec.rb +159 -113
  214. data/spec/hybrid_platforms_conductor_test/executables/nodes_to_deploy_spec.rb +299 -160
  215. data/spec/hybrid_platforms_conductor_test/executables/options/actions_executor_spec.rb +4 -6
  216. data/spec/hybrid_platforms_conductor_test/executables/options/cmd_runner_spec.rb +3 -5
  217. data/spec/hybrid_platforms_conductor_test/executables/options/common_spec.rb +8 -8
  218. data/spec/hybrid_platforms_conductor_test/executables/options/deployer_spec.rb +12 -196
  219. data/spec/hybrid_platforms_conductor_test/executables/options/nodes_handler_spec.rb +9 -10
  220. data/spec/hybrid_platforms_conductor_test/executables/options/nodes_selectors_spec.rb +9 -10
  221. data/spec/hybrid_platforms_conductor_test/executables/options/reports_handler_spec.rb +1 -1
  222. data/spec/hybrid_platforms_conductor_test/executables/options/tests_runner_spec.rb +22 -22
  223. data/spec/hybrid_platforms_conductor_test/executables/report_spec.rb +22 -16
  224. data/spec/hybrid_platforms_conductor_test/executables/run_spec.rb +32 -32
  225. data/spec/hybrid_platforms_conductor_test/executables/ssh_config_spec.rb +7 -9
  226. data/spec/hybrid_platforms_conductor_test/executables/test_spec.rb +3 -5
  227. data/spec/hybrid_platforms_conductor_test/helpers/actions_executor_helpers.rb +2 -2
  228. data/spec/hybrid_platforms_conductor_test/helpers/cmd_runner_helpers.rb +4 -3
  229. data/spec/hybrid_platforms_conductor_test/helpers/cmdb_helpers.rb +2 -2
  230. data/spec/hybrid_platforms_conductor_test/helpers/config_helpers.rb +1 -1
  231. data/spec/hybrid_platforms_conductor_test/helpers/connector_ssh_helpers.rb +12 -13
  232. data/spec/hybrid_platforms_conductor_test/helpers/deployer_helpers.rb +245 -56
  233. data/spec/hybrid_platforms_conductor_test/helpers/executables_helpers.rb +11 -11
  234. data/spec/hybrid_platforms_conductor_test/helpers/nodes_handler_helpers.rb +1 -1
  235. data/spec/hybrid_platforms_conductor_test/helpers/platforms_handler_helpers.rb +39 -28
  236. data/spec/hybrid_platforms_conductor_test/helpers/plugins_helpers.rb +1 -1
  237. data/spec/hybrid_platforms_conductor_test/helpers/provisioner_proxmox_helpers.rb +86 -111
  238. data/spec/hybrid_platforms_conductor_test/helpers/reports_handler_helpers.rb +1 -1
  239. data/spec/hybrid_platforms_conductor_test/helpers/serverless_chef_helpers.rb +3 -3
  240. data/spec/hybrid_platforms_conductor_test/helpers/services_handler_helpers.rb +1 -1
  241. data/spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb +1 -1
  242. data/spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem/hpc_plugins/test_plugin_type/{test_plugin_id1.rb → test_plugin_id_1.rb} +0 -0
  243. data/spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem/hpc_plugins/test_plugin_type/{test_plugin_id2.rb → test_plugin_id_2.rb} +0 -0
  244. data/spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem2/sub_dir/hpc_plugins/test_plugin_type/{test_plugin_id3.rb → test_plugin_id_3.rb} +0 -0
  245. data/spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem2/sub_dir/hpc_plugins/{test_plugin_type2/test_plugin_id4.rb → test_plugin_type_2/test_plugin_id_4.rb} +0 -0
  246. data/spec/hybrid_platforms_conductor_test/platform_handler_plugins/test.rb +1 -1
  247. data/spec/hybrid_platforms_conductor_test/platform_handler_plugins/{test2.rb → test_2.rb} +0 -0
  248. data/spec/hybrid_platforms_conductor_test/rubocop_spec.rb +31 -0
  249. data/spec/hybrid_platforms_conductor_test/serverless_chef_repositories/1_node/nodes/node.json +3 -3
  250. data/spec/hybrid_platforms_conductor_test/serverless_chef_repositories/data_bags/nodes/node.json +3 -3
  251. data/spec/hybrid_platforms_conductor_test/serverless_chef_repositories/recipes/cookbooks/test_cookbook_2/libraries/default.rb +1 -0
  252. data/spec/hybrid_platforms_conductor_test/serverless_chef_repositories/several_cookbooks/other_cookbooks/test_cookbook_2/libraries/default.rb +1 -0
  253. data/spec/hybrid_platforms_conductor_test/shared_examples/deployer.rb +952 -0
  254. data/spec/hybrid_platforms_conductor_test/test_connector.rb +4 -3
  255. data/spec/hybrid_platforms_conductor_test/test_log_no_read_plugin.rb +84 -0
  256. data/spec/hybrid_platforms_conductor_test/test_log_plugin.rb +105 -0
  257. data/spec/hybrid_platforms_conductor_test/test_plugins/global.rb +1 -0
  258. data/spec/hybrid_platforms_conductor_test/test_plugins/node.rb +1 -0
  259. data/spec/hybrid_platforms_conductor_test/test_plugins/node_check.rb +1 -0
  260. data/spec/hybrid_platforms_conductor_test/test_plugins/platform.rb +1 -0
  261. data/spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb +2 -2
  262. data/spec/hybrid_platforms_conductor_test/test_secrets_reader_plugin.rb +45 -0
  263. data/spec/hybrid_platforms_conductor_test/tests_report_plugin.rb +5 -6
  264. data/spec/spec_helper.rb +17 -18
  265. data/tools/check_md +16 -20
  266. data/tools/generate_mermaid +1 -1
  267. metadata +194 -144
  268. data/spec/hybrid_platforms_conductor_test/helpers/deployer_test_helpers.rb +0 -916
@@ -64,7 +64,7 @@ def gen_mermaid(file)
64
64
  markdown << line
65
65
  end
66
66
  end
67
- File.write(file, markdown.map { |line| "#{line}\n" }.join) if idx_mermaid > 0
67
+ File.write(file, markdown.map { |line| "#{line}\n" }.join) if idx_mermaid.positive?
68
68
  end
69
69
 
70
70
  Tempfile.create('puppeteer') do |puppeteer_file|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybrid_platforms_conductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 32.17.1
4
+ version: 33.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: range_operators
@@ -290,183 +290,214 @@ dependencies:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0.0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: rubocop
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - "~>"
298
+ - !ruby/object:Gem::Version
299
+ version: '1.16'
300
+ type: :development
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - "~>"
305
+ - !ruby/object:Gem::Version
306
+ version: '1.16'
307
+ - !ruby/object:Gem::Dependency
308
+ name: rubocop-rspec
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - "~>"
312
+ - !ruby/object:Gem::Version
313
+ version: '2.4'
314
+ type: :development
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - "~>"
319
+ - !ruby/object:Gem::Version
320
+ version: '2.4'
293
321
  description: Provides a complete toolset to help DevOps maintain, deploy, monitor
294
322
  and test multiple platforms using various technologies
295
323
  email:
296
324
  - muriel@x-aeon.com
297
325
  executables:
298
- - topograph
299
- - test
326
+ - free_ips
327
+ - setup
300
328
  - check-node
301
- - get_impacted_nodes
302
- - ssh_config
329
+ - deploy
303
330
  - dump_nodes_json
331
+ - topograph
304
332
  - run
305
- - setup
306
333
  - report
334
+ - free_veids
335
+ - get_impacted_nodes
336
+ - ssh_config
307
337
  - last_deploys
308
338
  - nodes_to_deploy
309
- - free_ips
310
- - free_veids
311
- - deploy
339
+ - test
312
340
  extensions: []
313
341
  extra_rdoc_files:
314
- - README.md
315
342
  - CHANGELOG.md
316
343
  - LICENSE.md
317
- - docs/tutorial/05_extend_with_plugins.md
318
- - docs/tutorial/04_test.md
319
- - docs/tutorial/03_scale.md
320
- - docs/tutorial/01_installation.md
321
- - docs/tutorial/02_first_node.md
322
- - docs/tutorial.md
344
+ - README.md
323
345
  - docs/install.md
324
- - docs/plugins_create.md
325
- - docs/executables.md
326
- - docs/api.md
327
- - docs/plugins.md
328
- - docs/gen/mermaid/README.md-0.png
329
- - docs/gen/mermaid/docs/executables/check-node.md-0.png
330
- - docs/gen/mermaid/docs/executables/ssh_config.md-0.png
331
- - docs/gen/mermaid/docs/executables/last_deploys.md-0.png
332
- - docs/gen/mermaid/docs/executables/run.md-0.png
333
- - docs/gen/mermaid/docs/executables/get_impacted_nodes.md-0.png
334
- - docs/gen/mermaid/docs/executables/test.md-0.png
335
- - docs/gen/mermaid/docs/executables/free_ips.md-0.png
336
- - docs/gen/mermaid/docs/executables/free_veids.md-0.png
337
- - docs/gen/mermaid/docs/executables/nodes_to_deploy.md-0.png
338
- - docs/gen/mermaid/docs/executables/report.md-0.png
339
- - docs/gen/mermaid/docs/executables/deploy.md-0.png
340
- - docs/gen/mermaid/docs/executables/setup.md-0.png
341
- - docs/executables/test.md
342
- - docs/executables/free_ips.md
343
- - docs/executables/run.md
344
- - docs/executables/get_impacted_nodes.md
345
- - docs/executables/last_deploys.md
346
- - docs/executables/nodes_to_deploy.md
347
- - docs/executables/setup.md
348
- - docs/executables/deploy.md
349
- - docs/executables/report.md
350
- - docs/executables/check-node.md
351
- - docs/executables/free_veids.md
352
- - docs/executables/ssh_config.md
353
- - docs/executables/topograph.md
354
- - docs/executables/dump_nodes_json.md
355
- - docs/plugins/platform_handler/serverless_chef.md
356
- - docs/plugins/platform_handler/yaml_inventory.md
357
- - docs/plugins/provisioner/proxmox.md
358
- - docs/plugins/provisioner/podman.md
346
+ - docs/plugins/cmdb/platform_handlers.md
347
+ - docs/plugins/cmdb/config.md
348
+ - docs/plugins/cmdb/host_ip.md
349
+ - docs/plugins/cmdb/host_keys.md
350
+ - docs/plugins/log/remote_fs.md
359
351
  - docs/plugins/provisioner/docker.md
360
- - docs/plugins/test/spectre.md
361
- - docs/plugins/test/bitbucket_conf.md
362
- - docs/plugins/test/github_ci.md
363
- - docs/plugins/test/vulnerabilities.md
364
- - docs/plugins/test/deploy_removes_root_access.md
365
- - docs/plugins/test/private_ips.md
366
- - docs/plugins/test/ip.md
352
+ - docs/plugins/provisioner/podman.md
353
+ - docs/plugins/provisioner/proxmox.md
354
+ - docs/plugins/action/bash.md
355
+ - docs/plugins/action/scp.md
356
+ - docs/plugins/action/remote_bash.md
357
+ - docs/plugins/action/interactive.md
358
+ - docs/plugins/action/ruby.md
359
+ - docs/plugins/connector/ssh.md
360
+ - docs/plugins/connector/local.md
361
+ - docs/plugins/report/confluence.md
362
+ - docs/plugins/report/mediawiki.md
363
+ - docs/plugins/report/stdout.md
364
+ - docs/plugins/secrets_reader/thycotic.md
365
+ - docs/plugins/secrets_reader/cli.md
366
+ - docs/plugins/test/file_system_hdfs.md
367
+ - docs/plugins/test/mounts.md
368
+ - docs/plugins/test/idempotence.md
367
369
  - docs/plugins/test/orphan_files.md
370
+ - docs/plugins/test/github_ci.md
368
371
  - docs/plugins/test/veids.md
369
- - docs/plugins/test/executables.md
370
- - docs/plugins/test/ports.md
372
+ - docs/plugins/test/check_deploy_and_idempotence.md
371
373
  - docs/plugins/test/hostname.md
372
- - docs/plugins/test/divergence.md
373
- - docs/plugins/test/deploy_freshness.md
374
+ - docs/plugins/test/bitbucket_conf.md
374
375
  - docs/plugins/test/deploy_from_scratch.md
375
- - docs/plugins/test/can_be_checked.md
376
+ - docs/plugins/test/divergence.md
376
377
  - docs/plugins/test/check_from_scratch.md
377
- - docs/plugins/test/public_ips.md
378
- - docs/plugins/test/linear_strategy.md
379
- - docs/plugins/test/connection.md
380
- - docs/plugins/test/check_deploy_and_idempotence.md
378
+ - docs/plugins/test/deploy_removes_root_access.md
381
379
  - docs/plugins/test/file_system.md
382
- - docs/plugins/test/mounts.md
383
- - docs/plugins/test/local_users.md
380
+ - docs/plugins/test/spectre.md
381
+ - docs/plugins/test/vulnerabilities.md
382
+ - docs/plugins/test/ports.md
383
+ - docs/plugins/test/linear_strategy.md
384
384
  - docs/plugins/test/jenkins_ci_conf.md
385
+ - docs/plugins/test/can_be_checked.md
386
+ - docs/plugins/test/public_ips.md
387
+ - docs/plugins/test/connection.md
385
388
  - docs/plugins/test/jenkins_ci_masters_ok.md
386
- - docs/plugins/test/file_system_hdfs.md
387
- - docs/plugins/test/idempotence.md
388
- - docs/plugins/report/mediawiki.md
389
- - docs/plugins/report/stdout.md
390
- - docs/plugins/report/confluence.md
391
- - docs/plugins/test_report/stdout.md
389
+ - docs/plugins/test/deploy_freshness.md
390
+ - docs/plugins/test/executables.md
391
+ - docs/plugins/test/private_ips.md
392
+ - docs/plugins/test/ip.md
393
+ - docs/plugins/test/local_users.md
394
+ - docs/plugins/platform_handler/serverless_chef.md
395
+ - docs/plugins/platform_handler/yaml_inventory.md
392
396
  - docs/plugins/test_report/confluence.md
393
- - docs/plugins/connector/local.md
394
- - docs/plugins/connector/ssh.md
395
- - docs/plugins/action/interactive.md
396
- - docs/plugins/action/scp.md
397
- - docs/plugins/action/remote_bash.md
398
- - docs/plugins/action/ruby.md
399
- - docs/plugins/action/bash.md
400
- - docs/plugins/cmdb/host_ip.md
401
- - docs/plugins/cmdb/config.md
402
- - docs/plugins/cmdb/platform_handlers.md
403
- - docs/plugins/cmdb/host_keys.md
397
+ - docs/plugins/test_report/stdout.md
404
398
  - docs/config_dsl.md
405
- - examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
406
- - examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/hosts.json
407
- - examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
408
- - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/lib/my_hpc_plugins/hpc_plugins/platform_handler/json_bash.rb
409
- - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/lib/my_hpc_plugins/hpc_plugins/test/root_space.rb
410
- - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/lib/my_hpc_plugins/hpc_plugins/report/web_report.rb
411
- - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/my_hpc_plugins.gemspec
399
+ - docs/executables/free_veids.md
400
+ - docs/executables/last_deploys.md
401
+ - docs/executables/nodes_to_deploy.md
402
+ - docs/executables/topograph.md
403
+ - docs/executables/report.md
404
+ - docs/executables/get_impacted_nodes.md
405
+ - docs/executables/run.md
406
+ - docs/executables/deploy.md
407
+ - docs/executables/dump_nodes_json.md
408
+ - docs/executables/ssh_config.md
409
+ - docs/executables/test.md
410
+ - docs/executables/setup.md
411
+ - docs/executables/free_ips.md
412
+ - docs/executables/check-node.md
413
+ - docs/plugins_create.md
414
+ - docs/tutorial/01_installation.md
415
+ - docs/tutorial/04_test.md
416
+ - docs/tutorial/03_scale.md
417
+ - docs/tutorial/02_first_node.md
418
+ - docs/tutorial/05_extend_with_plugins.md
419
+ - docs/tutorial.md
420
+ - docs/api.md
421
+ - docs/executables.md
422
+ - docs/gen/mermaid/README.md-0.png
423
+ - docs/gen/mermaid/docs/executables/test.md-0.png
424
+ - docs/gen/mermaid/docs/executables/last_deploys.md-0.png
425
+ - docs/gen/mermaid/docs/executables/free_ips.md-0.png
426
+ - docs/gen/mermaid/docs/executables/deploy.md-0.png
427
+ - docs/gen/mermaid/docs/executables/check-node.md-0.png
428
+ - docs/gen/mermaid/docs/executables/get_impacted_nodes.md-0.png
429
+ - docs/gen/mermaid/docs/executables/setup.md-0.png
430
+ - docs/gen/mermaid/docs/executables/report.md-0.png
431
+ - docs/gen/mermaid/docs/executables/free_veids.md-0.png
432
+ - docs/gen/mermaid/docs/executables/ssh_config.md-0.png
433
+ - docs/gen/mermaid/docs/executables/nodes_to_deploy.md-0.png
434
+ - docs/gen/mermaid/docs/executables/run.md-0.png
435
+ - docs/plugins.md
436
+ - examples/tutorial/04_test/my-service-conf-repo/service_web-hello.rb
437
+ - examples/tutorial/04_test/my-service-conf-repo/service_my-service.rb
438
+ - examples/tutorial/04_test/my-service-conf-repo/my-service.conf.erb
439
+ - examples/tutorial/04_test/my-service-conf-repo/inventory.yaml
440
+ - examples/tutorial/04_test/my-platforms/hpc_config.rb
441
+ - examples/tutorial/04_test/my-platforms/Gemfile
442
+ - examples/tutorial/04_test/my-platforms/images/debian_10/Dockerfile
443
+ - examples/tutorial/04_test/my-platforms/my_commands.bash
444
+ - examples/tutorial/04_test/web_docker_image/hello_world.txt
445
+ - examples/tutorial/04_test/web_docker_image/test.bash
446
+ - examples/tutorial/04_test/web_docker_image/hpc_root.key.pub
447
+ - examples/tutorial/04_test/web_docker_image/Dockerfile
448
+ - examples/tutorial/04_test/web_docker_image/hpc_root.key
449
+ - examples/tutorial/04_test/web_docker_image/start.sh
450
+ - examples/tutorial/04_test/web_docker_image/main.go
451
+ - examples/tutorial/04_test/node/my-service.conf
452
+ - examples/tutorial/03_scale/my-service-conf-repo/service_web-hello.rb
453
+ - examples/tutorial/03_scale/my-service-conf-repo/service_my-service.rb
454
+ - examples/tutorial/03_scale/my-service-conf-repo/my-service.conf.erb
455
+ - examples/tutorial/03_scale/my-service-conf-repo/inventory.yaml
456
+ - examples/tutorial/03_scale/my-platforms/hpc_config.rb
457
+ - examples/tutorial/03_scale/my-platforms/Gemfile
458
+ - examples/tutorial/03_scale/my-platforms/my_commands.bash
459
+ - examples/tutorial/03_scale/web_docker_image/hello_world.txt
460
+ - examples/tutorial/03_scale/web_docker_image/test.bash
461
+ - examples/tutorial/03_scale/web_docker_image/hpc_root.key.pub
462
+ - examples/tutorial/03_scale/web_docker_image/Dockerfile
463
+ - examples/tutorial/03_scale/web_docker_image/hpc_root.key
464
+ - examples/tutorial/03_scale/web_docker_image/start.sh
465
+ - examples/tutorial/03_scale/web_docker_image/main.go
466
+ - examples/tutorial/03_scale/node/my-service.conf
412
467
  - examples/tutorial/05_extend_with_plugins/my-service-conf-repo/service_web-hello.rb
413
- - examples/tutorial/05_extend_with_plugins/my-service-conf-repo/my-service.conf.erb
414
468
  - examples/tutorial/05_extend_with_plugins/my-service-conf-repo/service_my-service.rb
469
+ - examples/tutorial/05_extend_with_plugins/my-service-conf-repo/my-service.conf.erb
415
470
  - examples/tutorial/05_extend_with_plugins/my-service-conf-repo/inventory.yaml
416
471
  - examples/tutorial/05_extend_with_plugins/my-platforms/hpc_config.rb
417
472
  - examples/tutorial/05_extend_with_plugins/my-platforms/Gemfile
418
- - examples/tutorial/05_extend_with_plugins/my-platforms/my_commands.bash
419
473
  - examples/tutorial/05_extend_with_plugins/my-platforms/images/debian_10/Dockerfile
474
+ - examples/tutorial/05_extend_with_plugins/my-platforms/my_commands.bash
420
475
  - examples/tutorial/05_extend_with_plugins/dev_docker_image/hpc_root.key.pub
421
476
  - examples/tutorial/05_extend_with_plugins/dev_docker_image/Dockerfile
422
477
  - examples/tutorial/05_extend_with_plugins/dev_docker_image/hpc_root.key
423
- - examples/tutorial/05_extend_with_plugins/node/my-service.conf
478
+ - examples/tutorial/05_extend_with_plugins/web_docker_image/hello_world.txt
479
+ - examples/tutorial/05_extend_with_plugins/web_docker_image/test.bash
424
480
  - examples/tutorial/05_extend_with_plugins/web_docker_image/hpc_root.key.pub
425
- - examples/tutorial/05_extend_with_plugins/web_docker_image/main.go
426
- - examples/tutorial/05_extend_with_plugins/web_docker_image/start.sh
427
481
  - examples/tutorial/05_extend_with_plugins/web_docker_image/Dockerfile
428
482
  - examples/tutorial/05_extend_with_plugins/web_docker_image/hpc_root.key
429
- - examples/tutorial/05_extend_with_plugins/web_docker_image/test.bash
430
- - examples/tutorial/05_extend_with_plugins/web_docker_image/hello_world.txt
431
- - examples/tutorial/02_first_node/my-service-conf-repo/my-service.conf.erb
483
+ - examples/tutorial/05_extend_with_plugins/web_docker_image/start.sh
484
+ - examples/tutorial/05_extend_with_plugins/web_docker_image/main.go
485
+ - examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/hosts.json
486
+ - examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
487
+ - examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
488
+ - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/lib/my_hpc_plugins/hpc_plugins/report/web_report.rb
489
+ - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/lib/my_hpc_plugins/hpc_plugins/test/root_space.rb
490
+ - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/lib/my_hpc_plugins/hpc_plugins/platform_handler/json_bash.rb
491
+ - examples/tutorial/05_extend_with_plugins/my_hpc_plugins/my_hpc_plugins.gemspec
492
+ - examples/tutorial/05_extend_with_plugins/node/my-service.conf
432
493
  - examples/tutorial/02_first_node/my-service-conf-repo/service_my-service.rb
494
+ - examples/tutorial/02_first_node/my-service-conf-repo/my-service.conf.erb
433
495
  - examples/tutorial/02_first_node/my-service-conf-repo/inventory.yaml
434
496
  - examples/tutorial/02_first_node/my-platforms/hpc_config.rb
435
497
  - examples/tutorial/02_first_node/my-platforms/Gemfile
436
498
  - examples/tutorial/02_first_node/node/my-service.conf
437
499
  - examples/tutorial/01_installation/my-platforms/hpc_config.rb
438
500
  - examples/tutorial/01_installation/my-platforms/Gemfile
439
- - examples/tutorial/04_test/my-service-conf-repo/service_web-hello.rb
440
- - examples/tutorial/04_test/my-service-conf-repo/my-service.conf.erb
441
- - examples/tutorial/04_test/my-service-conf-repo/service_my-service.rb
442
- - examples/tutorial/04_test/my-service-conf-repo/inventory.yaml
443
- - examples/tutorial/04_test/my-platforms/hpc_config.rb
444
- - examples/tutorial/04_test/my-platforms/Gemfile
445
- - examples/tutorial/04_test/my-platforms/my_commands.bash
446
- - examples/tutorial/04_test/my-platforms/images/debian_10/Dockerfile
447
- - examples/tutorial/04_test/node/my-service.conf
448
- - examples/tutorial/04_test/web_docker_image/hpc_root.key.pub
449
- - examples/tutorial/04_test/web_docker_image/main.go
450
- - examples/tutorial/04_test/web_docker_image/start.sh
451
- - examples/tutorial/04_test/web_docker_image/Dockerfile
452
- - examples/tutorial/04_test/web_docker_image/hpc_root.key
453
- - examples/tutorial/04_test/web_docker_image/test.bash
454
- - examples/tutorial/04_test/web_docker_image/hello_world.txt
455
- - examples/tutorial/03_scale/my-service-conf-repo/service_web-hello.rb
456
- - examples/tutorial/03_scale/my-service-conf-repo/my-service.conf.erb
457
- - examples/tutorial/03_scale/my-service-conf-repo/service_my-service.rb
458
- - examples/tutorial/03_scale/my-service-conf-repo/inventory.yaml
459
- - examples/tutorial/03_scale/my-platforms/hpc_config.rb
460
- - examples/tutorial/03_scale/my-platforms/Gemfile
461
- - examples/tutorial/03_scale/my-platforms/my_commands.bash
462
- - examples/tutorial/03_scale/node/my-service.conf
463
- - examples/tutorial/03_scale/web_docker_image/hpc_root.key.pub
464
- - examples/tutorial/03_scale/web_docker_image/main.go
465
- - examples/tutorial/03_scale/web_docker_image/start.sh
466
- - examples/tutorial/03_scale/web_docker_image/Dockerfile
467
- - examples/tutorial/03_scale/web_docker_image/hpc_root.key
468
- - examples/tutorial/03_scale/web_docker_image/test.bash
469
- - examples/tutorial/03_scale/web_docker_image/hello_world.txt
470
501
  - examples/localhost/hpc_config.rb
471
502
  - examples/localhost/Gemfile
472
503
  - examples/localhost/inventory.yaml
@@ -533,6 +564,7 @@ files:
533
564
  - docs/plugins/cmdb/platform_handlers.md
534
565
  - docs/plugins/connector/local.md
535
566
  - docs/plugins/connector/ssh.md
567
+ - docs/plugins/log/remote_fs.md
536
568
  - docs/plugins/platform_handler/serverless_chef.md
537
569
  - docs/plugins/platform_handler/yaml_inventory.md
538
570
  - docs/plugins/provisioner/docker.md
@@ -541,6 +573,8 @@ files:
541
573
  - docs/plugins/report/confluence.md
542
574
  - docs/plugins/report/mediawiki.md
543
575
  - docs/plugins/report/stdout.md
576
+ - docs/plugins/secrets_reader/cli.md
577
+ - docs/plugins/secrets_reader/thycotic.md
544
578
  - docs/plugins/test/bitbucket_conf.md
545
579
  - docs/plugins/test/can_be_checked.md
546
580
  - docs/plugins/test/check_deploy_and_idempotence.md
@@ -661,6 +695,8 @@ files:
661
695
  - lib/hybrid_platforms_conductor/config.rb
662
696
  - lib/hybrid_platforms_conductor/confluence.rb
663
697
  - lib/hybrid_platforms_conductor/connector.rb
698
+ - lib/hybrid_platforms_conductor/core_extensions/cleanroom/fix_kwargs.rb
699
+ - lib/hybrid_platforms_conductor/core_extensions/symbol/zero.rb
664
700
  - lib/hybrid_platforms_conductor/credentials.rb
665
701
  - lib/hybrid_platforms_conductor/current_dir_monitor.rb
666
702
  - lib/hybrid_platforms_conductor/deployer.rb
@@ -679,6 +715,8 @@ files:
679
715
  - lib/hybrid_platforms_conductor/hpc_plugins/connector/local.rb
680
716
  - lib/hybrid_platforms_conductor/hpc_plugins/connector/my_connector.rb.sample
681
717
  - lib/hybrid_platforms_conductor/hpc_plugins/connector/ssh.rb
718
+ - lib/hybrid_platforms_conductor/hpc_plugins/log/my_log_plugin.rb.sample
719
+ - lib/hybrid_platforms_conductor/hpc_plugins/log/remote_fs.rb
682
720
  - lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/platform_handler_plugin.rb.sample
683
721
  - lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef.rb
684
722
  - lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef/dsl_parser.rb
@@ -695,6 +733,9 @@ files:
695
733
  - lib/hybrid_platforms_conductor/hpc_plugins/report/my_report_plugin.rb.sample
696
734
  - lib/hybrid_platforms_conductor/hpc_plugins/report/stdout.rb
697
735
  - lib/hybrid_platforms_conductor/hpc_plugins/report/templates/confluence_inventory.html.erb
736
+ - lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/cli.rb
737
+ - lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/my_secrets_reader_plugin.rb.sample
738
+ - lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/thycotic.rb
698
739
  - lib/hybrid_platforms_conductor/hpc_plugins/test/bitbucket_conf.rb
699
740
  - lib/hybrid_platforms_conductor/hpc_plugins/test/can_be_checked.rb
700
741
  - lib/hybrid_platforms_conductor/hpc_plugins/test/check_deploy_and_idempotence.rb
@@ -733,6 +774,7 @@ files:
733
774
  - lib/hybrid_platforms_conductor/hpc_plugins/test_report/templates/confluence.html.erb
734
775
  - lib/hybrid_platforms_conductor/io_router.rb
735
776
  - lib/hybrid_platforms_conductor/json_dumper.rb
777
+ - lib/hybrid_platforms_conductor/log.rb
736
778
  - lib/hybrid_platforms_conductor/logger_helpers.rb
737
779
  - lib/hybrid_platforms_conductor/mutex_dir
738
780
  - lib/hybrid_platforms_conductor/nodes_handler.rb
@@ -744,6 +786,7 @@ files:
744
786
  - lib/hybrid_platforms_conductor/provisioner.rb
745
787
  - lib/hybrid_platforms_conductor/report.rb
746
788
  - lib/hybrid_platforms_conductor/reports_handler.rb
789
+ - lib/hybrid_platforms_conductor/secrets_reader.rb
747
790
  - lib/hybrid_platforms_conductor/services_handler.rb
748
791
  - lib/hybrid_platforms_conductor/test.rb
749
792
  - lib/hybrid_platforms_conductor/test_by_service.rb
@@ -783,6 +826,7 @@ files:
783
826
  - spec/hybrid_platforms_conductor_test/api/deployer/check_spec.rb
784
827
  - spec/hybrid_platforms_conductor_test/api/deployer/config_dsl_spec.rb
785
828
  - spec/hybrid_platforms_conductor_test/api/deployer/deploy_spec.rb
829
+ - spec/hybrid_platforms_conductor_test/api/deployer/log_plugins/remote_fs_spec.rb
786
830
  - spec/hybrid_platforms_conductor_test/api/deployer/parse_deploy_output_spec.rb
787
831
  - spec/hybrid_platforms_conductor_test/api/deployer/provisioner_spec.rb
788
832
  - spec/hybrid_platforms_conductor_test/api/deployer/provisioners/docker/Dockerfile
@@ -803,6 +847,8 @@ files:
803
847
  - spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/start_spec.rb
804
848
  - spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/state_spec.rb
805
849
  - spec/hybrid_platforms_conductor_test/api/deployer/provisioners/proxmox/stop_spec.rb
850
+ - spec/hybrid_platforms_conductor_test/api/deployer/secrets_reader_plugins/cli_spec.rb
851
+ - spec/hybrid_platforms_conductor_test/api/deployer/secrets_reader_plugins/thycotic_spec.rb
806
852
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/config_spec.rb
807
853
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/host_ip_spec.rb
808
854
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/host_keys_spec.rb
@@ -841,11 +887,11 @@ files:
841
887
  - spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
842
888
  - spec/hybrid_platforms_conductor_test/api/tests_runner/test_reports_plugins/confluence_spec.rb
843
889
  - spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb.rb
844
- - spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb2.rb
890
+ - spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb_2.rb
845
891
  - spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb_others.rb
846
- - spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb_others2.rb
892
+ - spec/hybrid_platforms_conductor_test/cmdb_plugins/test_cmdb_others_2.rb
847
893
  - spec/hybrid_platforms_conductor_test/docs_spec.rb
848
- - spec/hybrid_platforms_conductor_test/executables/check-node_spec.rb
894
+ - spec/hybrid_platforms_conductor_test/executables/check_node_spec.rb
849
895
  - spec/hybrid_platforms_conductor_test/executables/deploy_spec.rb
850
896
  - spec/hybrid_platforms_conductor_test/executables/get_impacted_nodes_spec.rb
851
897
  - spec/hybrid_platforms_conductor_test/executables/last_deploys_spec.rb
@@ -868,7 +914,6 @@ files:
868
914
  - spec/hybrid_platforms_conductor_test/helpers/config_helpers.rb
869
915
  - spec/hybrid_platforms_conductor_test/helpers/connector_ssh_helpers.rb
870
916
  - spec/hybrid_platforms_conductor_test/helpers/deployer_helpers.rb
871
- - spec/hybrid_platforms_conductor_test/helpers/deployer_test_helpers.rb
872
917
  - spec/hybrid_platforms_conductor_test/helpers/executables_helpers.rb
873
918
  - spec/hybrid_platforms_conductor_test/helpers/nodes_handler_helpers.rb
874
919
  - spec/hybrid_platforms_conductor_test/helpers/platform_handler_helpers.rb
@@ -879,13 +924,14 @@ files:
879
924
  - spec/hybrid_platforms_conductor_test/helpers/serverless_chef_helpers.rb
880
925
  - spec/hybrid_platforms_conductor_test/helpers/services_handler_helpers.rb
881
926
  - spec/hybrid_platforms_conductor_test/helpers/tests_runner_helpers.rb
882
- - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem/hpc_plugins/test_plugin_type/test_plugin_id1.rb
883
- - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem/hpc_plugins/test_plugin_type/test_plugin_id2.rb
884
- - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem2/sub_dir/hpc_plugins/test_plugin_type/test_plugin_id3.rb
885
- - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem2/sub_dir/hpc_plugins/test_plugin_type2/test_plugin_id4.rb
927
+ - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem/hpc_plugins/test_plugin_type/test_plugin_id_1.rb
928
+ - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem/hpc_plugins/test_plugin_type/test_plugin_id_2.rb
929
+ - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem2/sub_dir/hpc_plugins/test_plugin_type/test_plugin_id_3.rb
930
+ - spec/hybrid_platforms_conductor_test/mocked_lib/my_test_gem2/sub_dir/hpc_plugins/test_plugin_type_2/test_plugin_id_4.rb
886
931
  - spec/hybrid_platforms_conductor_test/platform_handler_plugins/test.rb
887
- - spec/hybrid_platforms_conductor_test/platform_handler_plugins/test2.rb
932
+ - spec/hybrid_platforms_conductor_test/platform_handler_plugins/test_2.rb
888
933
  - spec/hybrid_platforms_conductor_test/report_plugin.rb
934
+ - spec/hybrid_platforms_conductor_test/rubocop_spec.rb
889
935
  - spec/hybrid_platforms_conductor_test/serverless_chef_repositories/1_node/chef_versions.yml
890
936
  - spec/hybrid_platforms_conductor_test/serverless_chef_repositories/1_node/nodes/node.json
891
937
  - spec/hybrid_platforms_conductor_test/serverless_chef_repositories/1_node/policyfiles/test_policy.rb
@@ -923,8 +969,11 @@ files:
923
969
  - spec/hybrid_platforms_conductor_test/serverless_chef_repositories/several_nodes/nodes/node2.json
924
970
  - spec/hybrid_platforms_conductor_test/serverless_chef_repositories/several_nodes/policyfiles/test_policy_1.rb
925
971
  - spec/hybrid_platforms_conductor_test/serverless_chef_repositories/several_nodes/policyfiles/test_policy_2.rb
972
+ - spec/hybrid_platforms_conductor_test/shared_examples/deployer.rb
926
973
  - spec/hybrid_platforms_conductor_test/test_action.rb
927
974
  - spec/hybrid_platforms_conductor_test/test_connector.rb
975
+ - spec/hybrid_platforms_conductor_test/test_log_no_read_plugin.rb
976
+ - spec/hybrid_platforms_conductor_test/test_log_plugin.rb
928
977
  - spec/hybrid_platforms_conductor_test/test_plugins/global.rb
929
978
  - spec/hybrid_platforms_conductor_test/test_plugins/node.rb
930
979
  - spec/hybrid_platforms_conductor_test/test_plugins/node_check.rb
@@ -932,6 +981,7 @@ files:
932
981
  - spec/hybrid_platforms_conductor_test/test_plugins/platform.rb
933
982
  - spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
934
983
  - spec/hybrid_platforms_conductor_test/test_provisioner.rb
984
+ - spec/hybrid_platforms_conductor_test/test_secrets_reader_plugin.rb
935
985
  - spec/hybrid_platforms_conductor_test/tests_report_plugin.rb
936
986
  - spec/spec_helper.rb
937
987
  - tools/check_md
@@ -946,9 +996,9 @@ require_paths:
946
996
  - lib
947
997
  required_ruby_version: !ruby/object:Gem::Requirement
948
998
  requirements:
949
- - - ">="
999
+ - - "~>"
950
1000
  - !ruby/object:Gem::Version
951
- version: '0'
1001
+ version: '2.6'
952
1002
  required_rubygems_version: !ruby/object:Gem::Requirement
953
1003
  requirements:
954
1004
  - - ">="