metadata.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "summary": "Puppet provider yaml file manipulation",
  3. "name": "reidmv-yamlfile",
  4. "dependencies": [
  5. {
  6. "version_requirement": ">= 1.1.1",
  7. "name": "adrien/filemapper"
  8. }
  9. ],
  10. "source": "https://github.com/reidmv/puppet-module-yamlfile",
  11. "license": "Apache 2.0",
  12. "author": "Reid Vandewiele <reid@puppetlabs.com>",
  13. "checksums": {
  14. "README.md": "a76ec336393fc2e3cadd1caee1a67aaa",
  15. "Modulefile": "14a19cd030c7b67eb49db111fa89085d",
  16. "lib/puppet/type/yaml_setting.rb": "3fc288ebf1d038e909610f9e55f89146",
  17. "lib/puppet/provider/yaml_setting/mapped.rb": "c63b31fc60761bee0bfc9cfe385ea46f"
  18. },
  19. "types": [
  20. {
  21. "parameters": [
  22. {
  23. "doc": "The name",
  24. "name": "name"
  25. },
  26. {
  27. "doc": "Set to true for values such as passwords to obfuscate log output",
  28. "name": "nodisplay"
  29. }
  30. ],
  31. "providers": [
  32. {
  33. "doc": "Generic filemapper provider for yaml_setting",
  34. "name": "mapped"
  35. }
  36. ],
  37. "doc": " Ensures that a given yaml hash key and value exists within a yaml file.\n Nested hash keys can be specified by a key-delimited string. Existing\n data in the target yaml file will be preserved. No guarantees about\n comments or other formatting/non-functional details.\n\n Example:\n\n yaml_setting { 'simple_example':\n target => '/etc/example.yaml',\n key => 'greeting',\n value => 'hello',\n }\n\n yaml_setting { 'nested_key_example1':\n target => '/etc/example.yaml',\n key => 'database/username',\n value => 'console',\n }\n\n yaml_setting { 'nested_key_example2':\n target => '/etc/example.yaml',\n key => 'database/password',\n value => 'passw0rd',\n }\n\n yaml_setting { 'nested_key_example3':\n target => '/etc/example.yaml',\n key => 'one/two/three',\n type => 'array',\n value => [ 'a', 'b', 'c' ],\n }\n\n Result (/etc/example.yaml):\n\n --- \n greeting: hello\n database: \n username: console\n password: passw0rd\n one: \n two: \n three: \n - a\n - b\n - c\n\n In this example, several yaml_settings were specified and the resulting\n merged hash was created in /etc/example.yaml. If /etc/example.yaml had\n already contained data, any keys not specified in a yaml_setting resource\n would be preserved.\n\n",
  38. "name": "yaml_setting",
  39. "properties": [
  40. {
  41. "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`.",
  42. "name": "ensure"
  43. },
  44. {
  45. "doc": "The configuration file in which to place settings",
  46. "name": "target"
  47. },
  48. {
  49. "doc": "The yaml key",
  50. "name": "key"
  51. },
  52. {
  53. "doc": "The data type",
  54. "name": "type"
  55. },
  56. {
  57. "doc": "The value to give the configuration key",
  58. "name": "value"
  59. }
  60. ]
  61. }
  62. ],
  63. "project_page": "https://github.com/reidmv/puppet-module-yamlfile",
  64. "version": "0.2.0",
  65. "description": "type/provider allowing limited manipulation of keys in yaml files as resources"
  66. }