bolt 0.21.1 → 0.21.2
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.
- checksums.yaml +5 -5
- data/lib/bolt/applicator.rb +56 -0
- data/lib/bolt/error.rb +6 -0
- data/lib/bolt/pal.rb +8 -1
- data/lib/bolt/transport/winrm.rb +4 -1
- data/lib/bolt/version.rb +1 -1
- data/libexec/apply_catalog.rb +61 -0
- data/{exe → libexec}/bolt_catalog +0 -0
- data/vendored/puppet/lib/puppet/application.rb +8 -1
- data/vendored/puppet/lib/puppet/application/device.rb +24 -28
- data/vendored/puppet/lib/puppet/application/doc.rb +4 -2
- data/vendored/puppet/lib/puppet/configurer/plugin_handler.rb +1 -2
- data/vendored/puppet/lib/puppet/datatypes.rb +1 -1
- data/vendored/puppet/lib/puppet/defaults.rb +2 -6
- data/vendored/puppet/lib/puppet/environments.rb +4 -10
- data/vendored/puppet/lib/puppet/error.rb +1 -1
- data/vendored/puppet/lib/puppet/etc.rb +4 -5
- data/vendored/puppet/lib/puppet/face/config.rb +1 -1
- data/vendored/puppet/lib/puppet/face/module/build.rb +5 -55
- data/vendored/puppet/lib/puppet/face/module/generate.rb +5 -247
- data/vendored/puppet/lib/puppet/gettext/config.rb +28 -5
- data/vendored/puppet/lib/puppet/indirector/catalog/compiler.rb +5 -7
- data/vendored/puppet/lib/puppet/indirector/rest.rb +7 -56
- data/vendored/puppet/lib/puppet/indirector/terminus.rb +1 -1
- data/vendored/puppet/lib/puppet/interface.rb +1 -1
- data/vendored/puppet/lib/puppet/interface/face_collection.rb +3 -1
- data/vendored/puppet/lib/puppet/metatype/manager.rb +2 -2
- data/vendored/puppet/lib/puppet/module_tool/applications.rb +0 -1
- data/vendored/puppet/lib/puppet/module_tool/applications/application.rb +1 -1
- data/vendored/puppet/lib/puppet/network/http/connection.rb +2 -23
- data/vendored/puppet/lib/puppet/network/http/factory.rb +2 -6
- data/vendored/puppet/lib/puppet/node.rb +1 -2
- data/vendored/puppet/lib/puppet/node/environment.rb +5 -1
- data/vendored/puppet/lib/puppet/parser/functions.rb +35 -3
- data/vendored/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb +12 -0
- data/vendored/puppet/lib/puppet/pops/loader/static_loader.rb +0 -5
- data/vendored/puppet/lib/puppet/pops/model/ast.rb +107 -0
- data/vendored/puppet/lib/puppet/pops/model/factory.rb +11 -0
- data/vendored/puppet/lib/puppet/pops/model/model_label_provider.rb +2 -0
- data/vendored/puppet/lib/puppet/pops/parser/eparser.rb +1519 -1485
- data/vendored/puppet/lib/puppet/pops/parser/lexer2.rb +1 -1
- data/vendored/puppet/lib/puppet/pops/puppet_stack.rb +1 -1
- data/vendored/puppet/lib/puppet/pops/serialization/to_data_converter.rb +1 -1
- data/vendored/puppet/lib/puppet/pops/types/p_binary_type.rb +1 -2
- data/vendored/puppet/lib/puppet/pops/types/types.rb +1 -24
- data/vendored/puppet/lib/puppet/pops/validation/checker4_0.rb +5 -0
- data/vendored/puppet/lib/puppet/pops/validation/tasks_checker.rb +31 -4
- data/vendored/puppet/lib/puppet/provider.rb +12 -1
- data/vendored/puppet/lib/puppet/provider/package/dnf.rb +2 -1
- data/vendored/puppet/lib/puppet/provider/selmodule/semodule.rb +1 -1
- data/vendored/puppet/lib/puppet/provider/service/base.rb +1 -1
- data/vendored/puppet/lib/puppet/provider/service/systemd.rb +3 -1
- data/vendored/puppet/lib/puppet/provider/service/upstart.rb +2 -0
- data/vendored/puppet/lib/puppet/reference/configuration.rb +6 -0
- data/vendored/puppet/lib/puppet/reports.rb +2 -2
- data/vendored/puppet/lib/puppet/resource/status.rb +2 -0
- data/vendored/puppet/lib/puppet/resource/type_collection.rb +1 -1
- data/vendored/puppet/lib/puppet/rest/client.rb +28 -24
- data/vendored/puppet/lib/puppet/rest/response.rb +5 -0
- data/vendored/puppet/lib/puppet/rest/route.rb +13 -31
- data/vendored/puppet/lib/puppet/rest/routes.rb +65 -5
- data/vendored/puppet/lib/puppet/rest/ssl_context.rb +13 -0
- data/vendored/puppet/lib/puppet/settings.rb +6 -0
- data/vendored/puppet/lib/puppet/settings/config_file.rb +1 -2
- data/vendored/puppet/lib/puppet/ssl/certificate_request.rb +5 -1
- data/vendored/puppet/lib/puppet/ssl/host.rb +148 -43
- data/vendored/puppet/lib/puppet/ssl/oids.rb +1 -1
- data/vendored/puppet/lib/puppet/test/test_helper.rb +3 -0
- data/vendored/puppet/lib/puppet/transaction/event_manager.rb +3 -1
- data/vendored/puppet/lib/puppet/transaction/report.rb +1 -1
- data/vendored/puppet/lib/puppet/type.rb +2 -2
- data/vendored/puppet/lib/puppet/type/file/content.rb +2 -3
- data/vendored/puppet/lib/puppet/type/schedule.rb +33 -84
- data/vendored/puppet/lib/puppet/type/user.rb +1 -1
- data/vendored/puppet/lib/puppet/util.rb +5 -0
- data/vendored/puppet/lib/puppet/util/autoload.rb +39 -31
- data/vendored/puppet/lib/puppet/util/character_encoding.rb +0 -22
- data/vendored/puppet/lib/puppet/util/command_line.rb +0 -1
- data/vendored/puppet/lib/puppet/util/connection.rb +74 -0
- data/vendored/puppet/lib/puppet/util/feature.rb +2 -2
- data/vendored/puppet/lib/puppet/util/instance_loader.rb +1 -19
- data/vendored/puppet/lib/puppet/util/json.rb +0 -8
- data/vendored/puppet/lib/puppet/util/log/destinations.rb +1 -1
- data/vendored/puppet/lib/puppet/util/network_device/base.rb +1 -1
- data/vendored/puppet/lib/puppet/util/platform.rb +3 -0
- data/vendored/puppet/lib/puppet/util/rdoc/parser/puppet_parser_core.rb +1 -1
- data/vendored/puppet/lib/puppet/util/reference.rb +2 -2
- data/vendored/puppet/lib/puppet/util/rubygems.rb +1 -13
- data/vendored/puppet/lib/puppet/util/ssl.rb +40 -1
- data/vendored/puppet/lib/puppet/util/windows.rb +1 -0
- data/vendored/puppet/lib/puppet/util/windows/file.rb +18 -0
- data/vendored/puppet/lib/puppet/util/windows/security.rb +26 -14
- metadata +8 -73
- data/vendored/puppet/lib/puppet/module_tool/applications/builder.rb +0 -152
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/spec/spec_helper.rb +0 -1
- data/vendored/puppet/lib/puppet/provider/mailalias/aliases.rb +0 -50
- data/vendored/puppet/lib/puppet/provider/maillist/mailman.rb +0 -108
- data/vendored/puppet/lib/puppet/provider/zfs/zfs.rb +0 -108
- data/vendored/puppet/lib/puppet/provider/zone/solaris.rb +0 -364
- data/vendored/puppet/lib/puppet/provider/zpool/zpool.rb +0 -125
- data/vendored/puppet/lib/puppet/type/mailalias.rb +0 -46
- data/vendored/puppet/lib/puppet/type/maillist.rb +0 -62
- data/vendored/puppet/lib/puppet/type/zfs.rb +0 -154
- data/vendored/puppet/lib/puppet/type/zone.rb +0 -382
- data/vendored/puppet/lib/puppet/type/zpool.rb +0 -91
@@ -1,91 +0,0 @@
|
|
1
|
-
module Puppet
|
2
|
-
class Property
|
3
|
-
|
4
|
-
class VDev < Property
|
5
|
-
|
6
|
-
def flatten_and_sort(array)
|
7
|
-
array = [array] unless array.is_a? Array
|
8
|
-
array.collect { |a| a.split(' ') }.flatten.sort
|
9
|
-
end
|
10
|
-
|
11
|
-
def insync?(is)
|
12
|
-
return @should == [:absent] if is == :absent
|
13
|
-
|
14
|
-
flatten_and_sort(is) == flatten_and_sort(@should)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
class MultiVDev < VDev
|
19
|
-
def insync?(is)
|
20
|
-
return @should == [:absent] if is == :absent
|
21
|
-
|
22
|
-
return false unless is.length == @should.length
|
23
|
-
|
24
|
-
is.each_with_index { |list, i| return false unless flatten_and_sort(list) == flatten_and_sort(@should[i]) }
|
25
|
-
|
26
|
-
#if we made it this far we are in sync
|
27
|
-
true
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
Type.newtype(:zpool) do
|
33
|
-
@doc = "Manage zpools. Create and delete zpools. The provider WILL NOT SYNC, only report differences.
|
34
|
-
|
35
|
-
Supports vdevs with mirrors, raidz, logs and spares."
|
36
|
-
|
37
|
-
ensurable
|
38
|
-
|
39
|
-
newproperty(:disk, :array_matching => :all, :parent => Puppet::Property::VDev) do
|
40
|
-
desc "The disk(s) for this pool. Can be an array or a space separated string."
|
41
|
-
end
|
42
|
-
|
43
|
-
newproperty(:mirror, :array_matching => :all, :parent => Puppet::Property::MultiVDev) do
|
44
|
-
desc "List of all the devices to mirror for this pool. Each mirror should be a
|
45
|
-
space separated string:
|
46
|
-
|
47
|
-
mirror => [\"disk1 disk2\", \"disk3 disk4\"],
|
48
|
-
|
49
|
-
"
|
50
|
-
|
51
|
-
validate do |value|
|
52
|
-
raise ArgumentError, _("mirror names must be provided as string separated, not a comma-separated list") if value.include?(",")
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
newproperty(:raidz, :array_matching => :all, :parent => Puppet::Property::MultiVDev) do
|
57
|
-
desc "List of all the devices to raid for this pool. Should be an array of
|
58
|
-
space separated strings:
|
59
|
-
|
60
|
-
raidz => [\"disk1 disk2\", \"disk3 disk4\"],
|
61
|
-
|
62
|
-
"
|
63
|
-
|
64
|
-
validate do |value|
|
65
|
-
raise ArgumentError, _("raid names must be provided as string separated, not a comma-separated list") if value.include?(",")
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
newproperty(:spare, :array_matching => :all, :parent => Puppet::Property::VDev) do
|
70
|
-
desc "Spare disk(s) for this pool."
|
71
|
-
end
|
72
|
-
|
73
|
-
newproperty(:log, :array_matching => :all, :parent => Puppet::Property::VDev) do
|
74
|
-
desc "Log disks for this pool. This type does not currently support mirroring of log disks."
|
75
|
-
end
|
76
|
-
|
77
|
-
newparam(:pool) do
|
78
|
-
desc "The name for this pool."
|
79
|
-
isnamevar
|
80
|
-
end
|
81
|
-
|
82
|
-
newparam(:raid_parity) do
|
83
|
-
desc "Determines parity when using the `raidz` parameter."
|
84
|
-
end
|
85
|
-
|
86
|
-
validate do
|
87
|
-
has_should = [:disk, :mirror, :raidz].select { |prop| self.should(prop) }
|
88
|
-
self.fail _("You cannot specify %{multiple_props} on this type (only one)") % { multiple_props: has_should.join(" and ") } if has_should.length > 1
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|