bolt 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bolt might be problematic. Click here for more details.

Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/exe/bolt +1 -1
  3. data/lib/bolt.rb +0 -3
  4. data/lib/bolt/cli.rb +66 -32
  5. data/lib/bolt/config.rb +19 -0
  6. data/lib/bolt/executor.rb +21 -16
  7. data/lib/bolt/node.rb +13 -10
  8. data/lib/bolt/node/errors.rb +22 -0
  9. data/lib/bolt/node/ssh.rb +25 -2
  10. data/lib/bolt/node/winrm.rb +14 -2
  11. data/lib/bolt/node_uri.rb +15 -14
  12. data/lib/bolt/result.rb +22 -0
  13. data/lib/bolt/version.rb +1 -1
  14. data/vendored/puppet/lib/puppet/application/script.rb +7 -1
  15. data/vendored/puppet/lib/puppet/configurer.rb +1 -1
  16. data/vendored/puppet/lib/puppet/defaults.rb +18 -1
  17. data/vendored/puppet/lib/puppet/functions/run_command.rb +5 -2
  18. data/vendored/puppet/lib/puppet/functions/run_script.rb +5 -2
  19. data/vendored/puppet/lib/puppet/functions/run_task.rb +7 -2
  20. data/vendored/puppet/lib/puppet/gettext/config.rb +47 -26
  21. data/vendored/puppet/lib/puppet/graph/relationship_graph.rb +6 -0
  22. data/vendored/puppet/lib/puppet/indirector/node/ldap.rb +19 -3
  23. data/vendored/puppet/lib/puppet/module.rb +8 -7
  24. data/vendored/puppet/lib/puppet/network/http/webrick.rb +1 -0
  25. data/vendored/puppet/lib/puppet/pops/loader/loader_paths.rb +9 -0
  26. data/vendored/puppet/lib/puppet/pops/loader/module_loaders.rb +8 -0
  27. data/vendored/puppet/lib/puppet/pops/types/p_error_type.rb +12 -0
  28. data/vendored/puppet/lib/puppet/pops/types/p_object_type.rb +9 -3
  29. data/vendored/puppet/lib/puppet/pops/types/ruby_generator.rb +65 -24
  30. data/vendored/puppet/lib/puppet/provider/mount.rb +25 -8
  31. data/vendored/puppet/lib/puppet/provider/package/dnf.rb +1 -1
  32. data/vendored/puppet/lib/puppet/provider/package/gem.rb +1 -1
  33. data/vendored/puppet/lib/puppet/provider/package/pkg.rb +3 -0
  34. data/vendored/puppet/lib/puppet/provider/service/launchd.rb +1 -1
  35. data/vendored/puppet/lib/puppet/provider/zfs/zfs.rb +20 -1
  36. data/vendored/puppet/lib/puppet/type/mount.rb +6 -2
  37. data/vendored/puppet/lib/puppet/type/yumrepo.rb +9 -0
  38. data/vendored/puppet/lib/puppet/version.rb +1 -1
  39. data/vendored/puppet/lib/puppet_pal.rb +33 -7
  40. metadata +45 -83
  41. data/.gitignore +0 -33
  42. data/.gitmodules +0 -12
  43. data/.rspec +0 -2
  44. data/.rubocop.yml +0 -61
  45. data/.travis.yml +0 -18
  46. data/CODE_OF_CONDUCT.md +0 -46
  47. data/CONTRIBUTING.md +0 -27
  48. data/Gemfile +0 -9
  49. data/INSTALL.md +0 -70
  50. data/LICENSE +0 -201
  51. data/README.md +0 -353
  52. data/Rakefile +0 -27
  53. data/Vagrantfile +0 -13
  54. data/appveyor.yml +0 -29
  55. data/bolt.gemspec +0 -50
  56. data/docs/writing_tasks_and_plans.pdf +0 -0
  57. data/metadata.json +0 -13
  58. data/tasks/init.json +0 -3
  59. data/tasks/init.rb +0 -44
  60. data/ux/bolt-CLI-spec.md +0 -186
  61. data/vendored/puppet/lib/puppet/external/nagios/grammar.ry +0 -248
  62. data/vendored/puppet/lib/puppet/external/nagios/makefile +0 -9
  63. data/vendored/puppet/lib/puppet/face/help/action.erb +0 -86
  64. data/vendored/puppet/lib/puppet/face/help/face.erb +0 -114
  65. data/vendored/puppet/lib/puppet/face/help/global.erb +0 -16
  66. data/vendored/puppet/lib/puppet/face/help/man.erb +0 -152
  67. data/vendored/puppet/lib/puppet/generate/templates/type/pcore.erb +0 -42
  68. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.fixtures.yml.erb +0 -7
  69. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.gitignore +0 -18
  70. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.rubocop.yml +0 -42
  71. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.yardopts +0 -1
  72. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/Gemfile +0 -18
  73. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/README.md.erb +0 -89
  74. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/Rakefile +0 -32
  75. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/examples/init.pp.erb +0 -12
  76. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +0 -48
  77. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/metadata.json.erb +0 -1
  78. data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/spec/classes/init_spec.rb.erb +0 -6
  79. data/vendored/puppet/lib/puppet/pops/model/ast.pp +0 -695
  80. data/vendored/puppet/lib/puppet/pops/parser/egrammar.ra +0 -937
  81. data/vendored/puppet/lib/puppet/pops/resource/resource_type_set.pcore +0 -22
  82. data/vendored/puppet/lib/puppet/util/libuser.conf +0 -15
  83. data/vendored/puppet/lib/puppet/vendor/deep_merge/CHANGELOG +0 -45
  84. data/vendored/puppet/lib/puppet/vendor/deep_merge/Gemfile +0 -3
  85. data/vendored/puppet/lib/puppet/vendor/deep_merge/LICENSE +0 -21
  86. data/vendored/puppet/lib/puppet/vendor/deep_merge/PUPPET_README.md +0 -6
  87. data/vendored/puppet/lib/puppet/vendor/deep_merge/README.md +0 -113
  88. data/vendored/puppet/lib/puppet/vendor/deep_merge/Rakefile +0 -19
  89. data/vendored/puppet/lib/puppet/vendor/deep_merge/deep_merge.gemspec +0 -35
  90. data/vendored/puppet/lib/puppet/vendor/pathspec/CHANGELOG.md +0 -2
  91. data/vendored/puppet/lib/puppet/vendor/pathspec/LICENSE +0 -201
  92. data/vendored/puppet/lib/puppet/vendor/pathspec/PUPPET_README.md +0 -6
  93. data/vendored/puppet/lib/puppet/vendor/pathspec/README.md +0 -53
  94. data/vendored/puppet/lib/puppet/vendor/semantic_puppet/locales/config.yaml +0 -21
@@ -1,9 +0,0 @@
1
- all: parser.rb
2
-
3
- debug: parser.rb setdebug
4
-
5
- parser.rb: grammar.ry
6
- racc -oparser.rb grammar.ry
7
-
8
- setdebug:
9
- perl -pi -e 's{\@yydebug =.*$$}{\@yydebug = true}' parser.rb
@@ -1,86 +0,0 @@
1
- <%# encoding: UTF-8%>
2
- <% if action.synopsis -%>
3
- USAGE: <%= action.synopsis %>
4
-
5
- <% end -%>
6
- <%= action.short_description || action.summary || face.summary || "undocumented subcommand" %>
7
-
8
- <% if action.returns -%>
9
- RETURNS: <%= action.returns.strip %>
10
-
11
- <% end -%>
12
- OPTIONS:
13
- <%# Remove these options once we can introspect them normally. -%>
14
- --render-as FORMAT - The rendering format to use.
15
- --verbose - Whether to log verbosely.
16
- --debug - Whether to log debug information.
17
- <% optionroom = 30
18
- summaryroom = 80 - 5 - optionroom
19
-
20
- disp_glob_opts = action.display_global_options.uniq
21
- unless disp_glob_opts.empty?
22
- disp_glob_opts.sort.each do |name|
23
- option = name
24
- desc = Puppet.settings.setting(option).desc
25
- type = Puppet.settings.setting(option).default
26
- type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
27
- <%= "--#{option} #{type}".ljust(optionroom) + ' - ' -%>
28
- <% if !(desc) -%>
29
- undocumented option
30
- <% elsif desc.length <= summaryroom -%>
31
- <%= desc %>
32
- <%
33
- else
34
- words = desc.split
35
- wrapped = ['']
36
- i = 0
37
- words.each do |word|
38
- if wrapped[i].length + word.length <= summaryroom
39
- wrapped[i] << word + ' '
40
- else
41
- i += 1
42
- wrapped[i] = word + ' '
43
- end
44
- end -%>
45
- <%= wrapped.shift.strip %>
46
- <% wrapped.each do |line| -%>
47
- <%= (' ' * (optionroom + 5) ) + line.strip %>
48
- <% end
49
- end
50
- end
51
- end
52
- unless action.options.empty?
53
- action.options.sort.each do |name|
54
- option = action.get_option name -%>
55
- <%= " " + option.optparse.join(" | ")[0,(optionroom - 1)].ljust(optionroom) + ' - ' -%>
56
- <% if !(option.summary) -%>
57
- undocumented option
58
- <% elsif option.summary.length <= summaryroom -%>
59
- <%= option.summary %>
60
- <%
61
- else
62
- words = option.summary.split
63
- wrapped = ['']
64
- i = 0
65
- words.each do |word|
66
- if wrapped[i].length + word.length <= summaryroom
67
- wrapped[i] << word + ' '
68
- else
69
- i += 1
70
- wrapped[i] = word + ' '
71
- end
72
- end
73
- -%>
74
- <%= wrapped.shift.strip %>
75
- <% wrapped.each do |line| -%>
76
- <%= (' ' * (optionroom + 5) ) + line.strip %>
77
- <% end
78
- end
79
- end -%>
80
- <% end -%>
81
-
82
- <% if face.respond_to? :indirection -%>
83
- TERMINI: <%= face.class.terminus_classes(face.indirection.name).join(", ") %>
84
-
85
- <% end -%>
86
- See 'puppet man <%= face.name %>' or 'man puppet-<%= face.name %>' for full help.
@@ -1,114 +0,0 @@
1
- <%# encoding: UTF-8%>
2
- <% if face.deprecated? -%>
3
- <%= "Warning: 'puppet #{face.name}' is deprecated and will be removed in a future release." %>
4
- <% end %>
5
- <% if face.synopsis -%>
6
- USAGE: <%= face.synopsis %>
7
-
8
- <% end -%>
9
- <%= (face.short_description || face.summary || "undocumented subcommand").strip %>
10
-
11
- OPTIONS:
12
- <%# Remove these options once we can introspect them normally. -%>
13
- --render-as FORMAT - The rendering format to use.
14
- --verbose - Whether to log verbosely.
15
- --debug - Whether to log debug information.
16
- <% optionroom = 30
17
- summaryroom = 80 - 5 - optionroom
18
-
19
- disp_glob_opts = face.display_global_options.uniq
20
- unless disp_glob_opts.empty?
21
- disp_glob_opts.sort.each do |name|
22
- option = name
23
- desc = Puppet.settings.setting(option).desc
24
- type = Puppet.settings.setting(option).default
25
- type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
26
- <%= "--#{option} #{type}".ljust(optionroom) + ' - ' -%>
27
- <% if !(desc) -%>
28
- undocumented option
29
- <% elsif desc.length <= summaryroom -%>
30
- <%= desc %>
31
- <% else
32
- words = desc.split
33
- wrapped = ['']
34
- i = 0
35
- words.each do |word|
36
- if wrapped[i].length + word.length <= summaryroom
37
- wrapped[i] << word + ' '
38
- else
39
- i += 1
40
- wrapped[i] = word + ' '
41
- end
42
- end -%>
43
- <%= wrapped.shift.strip %>
44
- <% wrapped.each do |line| -%>
45
- <%= (' ' * (optionroom + 5) ) + line.strip %>
46
- <% end
47
- end
48
- end
49
- end
50
- unless face.options.empty?
51
- face.options.sort.each do |name|
52
- option = face.get_option name -%>
53
- <%= " " + option.optparse.join(" | ")[0,(optionroom - 1)].ljust(optionroom) + ' - ' -%>
54
- <% if !(option.summary) -%>
55
- undocumented option
56
- <% elsif option.summary.length <= summaryroom -%>
57
- <%= option.summary %>
58
- <%
59
- else
60
- words = option.summary.split
61
- wrapped = ['']
62
- i = 0
63
- words.each do |word|
64
- if wrapped[i].length + word.length <= summaryroom
65
- wrapped[i] << word + ' '
66
- else
67
- i += 1
68
- wrapped[i] = word + ' '
69
- end
70
- end
71
- -%>
72
- <%= wrapped.shift.strip %>
73
- <% wrapped.each do |line| -%>
74
- <%= (' ' * (optionroom + 5) ) + line.strip %>
75
- <% end
76
- end
77
- end -%>
78
- <% end -%>
79
-
80
- ACTIONS:
81
- <% padding = face.actions.map{|x| x.to_s.length}.max + 2
82
- summaryroom = 80 - (padding + 4)
83
- face.actions.each do |actionname|
84
- action = face.get_action(actionname) -%>
85
- <%= action.name.to_s.ljust(padding) + ' ' -%>
86
- <% if !(action.summary) -%>
87
- undocumented action
88
- <% elsif action.summary.length <= summaryroom -%>
89
- <%= action.summary %>
90
- <% else
91
- words = action.summary.split
92
- wrapped = ['']
93
- i = 0
94
- words.each do |word|
95
- if wrapped[i].length + word.length <= summaryroom
96
- wrapped[i] << word + ' '
97
- else
98
- i += 1
99
- wrapped[i] = word + ' '
100
- end
101
- end
102
- -%>
103
- <%= wrapped.shift.strip %>
104
- <% wrapped.each do |line| -%>
105
- <%= (' ' * (padding + 4) ) + line.strip %>
106
- <% end
107
- end
108
- end -%>
109
-
110
- <% if face.respond_to? :indirection -%>
111
- TERMINI: <%= face.class.terminus_classes(face.indirection.name).join(", ") %>
112
-
113
- <% end -%>
114
- See 'puppet man <%= face.name %>' or 'man puppet-<%= face.name %>' for full help.
@@ -1,16 +0,0 @@
1
- <%# encoding: UTF-8%>
2
- Usage: puppet <subcommand> [options] <action> [options]
3
-
4
- Available subcommands:
5
- <%# NOTE: this is probably not a good long-term solution for this. We're only iterating over
6
- applications to find the list of things we need to show help for... this works for now
7
- because faces can't be run without an application stub. However, when #6753 is resolved,
8
- all of the application stubs for faces will go away, and this will need to be updated
9
- to reflect that. --cprice 2012-04-26 %>
10
- <% all_application_summaries.each do |appname, summary| -%>
11
- <%= appname.to_s.ljust(16) %> <%= summary %>
12
- <% end -%>
13
-
14
- See 'puppet help <subcommand> <action>' for help on a specific subcommand action.
15
- See 'puppet help <subcommand>' for help on a specific subcommand.
16
- Puppet v<%= Puppet.version %>
@@ -1,152 +0,0 @@
1
- <%# encoding: UTF-8%>
2
- puppet-<%= face.name %>(8) -- <%= face.summary || "Undocumented subcommand." %>
3
- <%= '=' * (_erbout.length - 1) %>
4
-
5
- <% if face.synopsis -%>
6
- SYNOPSIS
7
- --------
8
- <%= face.synopsis %>
9
-
10
- <% end
11
- if face.description -%>
12
- DESCRIPTION
13
- -----------
14
- <%= face.description.strip %>
15
-
16
- <% end -%>
17
- OPTIONS
18
- -------
19
- Note that any setting that's valid in the configuration
20
- file is also a valid long argument, although it may or may not be
21
- relevant to the present action. For example, `server` and `run_mode` are valid
22
- settings, so you can specify `--server <servername>`, or
23
- `--run_mode <runmode>` as an argument.
24
-
25
- See the configuration file documentation at
26
- <https://docs.puppetlabs.com/puppet/latest/reference/configuration.html> for the
27
- full list of acceptable parameters. A commented list of all
28
- configuration options can also be generated by running puppet with
29
- `--genconfig`.
30
-
31
- * --render-as FORMAT:
32
- The format in which to render output. The most common formats are `json`,
33
- `s` (string), `yaml`, and `console`, but other options such as `dot` are
34
- sometimes available.
35
- * --verbose:
36
- Whether to log verbosely.
37
- * --debug:
38
- Whether to log debug information.
39
- <% unless face.display_global_options.empty?
40
- face.display_global_options.uniq.sort.each do |name|
41
- option = name
42
- desc = Puppet::Util::Docs.scrub(Puppet.settings.setting(option).desc)
43
- type = Puppet.settings.setting(option).default
44
- type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
45
- <%= "* --#{option} #{type}" %>:
46
- <%= (desc || 'Undocumented setting.').gsub(/^/, ' ') %>
47
- <% end
48
- end -%>
49
- <% unless face.options.empty?
50
- face.options.sort.each do |name|
51
- option = face.get_option name -%>
52
- <%= "* " + option.optparse.join(" | " ) %>:
53
- <%= (option.description || option.summary || "Undocumented option.").gsub(/^/, ' ') %>
54
- <% end
55
- end -%>
56
-
57
- ACTIONS
58
- -------
59
- <% face.actions.each do |actionname|
60
- action = face.get_action(actionname) -%>
61
- * `<%= action.name.to_s %>` - <%= action.summary %>:
62
- <% if action.synopsis -%>
63
- `SYNOPSIS`
64
-
65
- <%= action.synopsis %>
66
-
67
- <% end -%>
68
- `DESCRIPTION`
69
-
70
- <% if action.description -%>
71
- <%= action.description.gsub(/^/, ' ') %>
72
- <% else -%>
73
- <%= action.summary || "Undocumented action." %>
74
- <% end -%>
75
-
76
- <% unique_options = action.options - face.options
77
- unique_display_global_options = action.display_global_options - face.display_global_options
78
- unless unique_options.empty? and unique_display_global_options.empty? -%>
79
- `OPTIONS`
80
- <% unique_display_global_options.uniq.sort.each do |name|
81
- option = name
82
- desc = Puppet::Util::Docs.scrub(Puppet.settings.setting(option).desc)
83
- type = Puppet.settings.setting(option).default
84
- type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
85
- <%= "<--#{option} #{type}>" %> -
86
- <%= (desc || "Undocumented setting.").gsub(/^/, ' ') %>
87
- <% end -%>
88
- <% unique_options.sort.each do |name|
89
- option = action.get_option name
90
- text = (option.description || option.summary || "Undocumented option.").chomp + "\n" -%>
91
- <%= '<' + option.optparse.join("> | <") + '>' %> -
92
- <%= text.gsub(/^/, ' ') %>
93
- <% end -%>
94
-
95
- <% end -%>
96
- <% if action.returns -%>
97
- `RETURNS`
98
-
99
- <%= action.returns.gsub(/^/, ' ') %>
100
-
101
- <% end
102
- if action.notes -%>
103
- `NOTES`
104
-
105
- <%= action.notes.gsub(/^/, ' ') %>
106
-
107
- <% end
108
- end
109
- if face.examples or face.actions.any? {|actionname| face.get_action(actionname).examples} -%>
110
- EXAMPLES
111
- --------
112
- <% end
113
- if face.examples -%>
114
- <%= face.examples %>
115
-
116
- <% end
117
- face.actions.each do |actionname|
118
- action = face.get_action(actionname)
119
- if action.examples -%>
120
- `<%= action.name.to_s %>`
121
-
122
- <%= action.examples.strip %>
123
-
124
- <% end
125
- end -%>
126
-
127
- <% if face.notes or face.respond_to? :indirection -%>
128
- NOTES
129
- -----
130
- <% if face.notes -%>
131
- <%= face.notes.strip %>
132
-
133
- <% end # notes
134
- if face.respond_to? :indirection -%>
135
- This subcommand is an indirector face, which exposes `find`, `search`, `save`,
136
- and `destroy` actions for an indirected subsystem of Puppet. Valid termini for
137
- this face include:
138
-
139
- * `<%= face.class.terminus_classes(face.indirection.name).join("`\n* `") %>`
140
-
141
- <% end # indirection
142
- end # notes or indirection
143
- unless face.authors.empty? -%>
144
- AUTHOR
145
- ------
146
- <%= face.authors.join("\n").gsub(/^/, ' * ') %>
147
-
148
- <% end -%>
149
- COPYRIGHT AND LICENSE
150
- ---------------------
151
- <%= face.copyright %>
152
- <%= face.license %>
@@ -1,42 +0,0 @@
1
- # This file was automatically generated on <%= Time.now %>.
2
- # Use the 'puppet generate types' command to regenerate this file.
3
-
4
- <%- unless doc.empty? -%>
5
- <%- doc.each_line do |line| -%>
6
- # <%= line -%>
7
- <%- end %>
8
- <%- end -%>
9
- Puppet::Resource::ResourceType3.new(
10
- <%= name %>,
11
- [
12
- <%- properties.each_with_index do |property, index| -%>
13
- <%- unless property.doc.empty? -%>
14
- <%- property.doc.each_line do |line| -%>
15
- # <%= line -%>
16
- <%- end %>
17
- <%- end -%>
18
- Puppet::Resource::Param(<%= property.type %>, <%= property.name %><% if property.is_namevar? %>, true<% end %>)<% if index + 1 < properties.size %>,
19
-
20
- <%- end -%>
21
- <%- end %>
22
- ],
23
- [
24
- <%- parameters.each_with_index do |parameter, index| -%>
25
- <%- unless parameter.doc.empty? -%>
26
- <%- parameter.doc.each_line do |line| -%>
27
- # <%= line -%>
28
- <%- end %>
29
- <%- end -%>
30
- Puppet::Resource::Param(<%= parameter.type %>, <%= parameter.name %><% if parameter.is_namevar? %>, true<% end %>)<% if index + 1 < parameters.size %>,
31
-
32
- <%- end -%>
33
- <%- end %>
34
- ],
35
- {
36
- <%- title_patterns.each_with_index do |mapping, index| -%>
37
- <%= mapping[0] %> => <%= mapping[1] %><%= "," if index + 1 < title_patterns.size %>
38
- <%- end -%>
39
- },
40
- <%= isomorphic -%>,
41
- <%= capability -%>
42
- )
@@ -1,7 +0,0 @@
1
- fixtures:
2
- repositories:
3
- stdlib:
4
- repo: 'git://github.com/puppetlabs/puppetlabs-stdlib.git'
5
- ref: '4.1.0'
6
- symlinks:
7
- <%= metadata.name %>: "#{source_dir}"
@@ -1,18 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
- tags
16
-
17
- ## Yard gem
18
- .yardoc