puppetmodule-stdlib 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +253 -0
- data/CONTRIBUTING.md +65 -0
- data/Gemfile +33 -0
- data/LICENSE +19 -0
- data/Modulefile +11 -0
- data/README.markdown +1173 -0
- data/README_DEVELOPER.markdown +35 -0
- data/RELEASE_PROCESS.markdown +24 -0
- data/Rakefile +2 -0
- data/lib/facter/pe_version.rb +53 -0
- data/lib/facter/puppet_vardir.rb +26 -0
- data/lib/facter/root_home.rb +19 -0
- data/lib/facter/util/puppet_settings.rb +21 -0
- data/lib/puppet/parser/functions/abs.rb +36 -0
- data/lib/puppet/parser/functions/any2array.rb +33 -0
- data/lib/puppet/parser/functions/bool2num.rb +49 -0
- data/lib/puppet/parser/functions/capitalize.rb +34 -0
- data/lib/puppet/parser/functions/chomp.rb +35 -0
- data/lib/puppet/parser/functions/chop.rb +37 -0
- data/lib/puppet/parser/functions/concat.rb +37 -0
- data/lib/puppet/parser/functions/count.rb +22 -0
- data/lib/puppet/parser/functions/defined_with_params.rb +35 -0
- data/lib/puppet/parser/functions/delete.rb +46 -0
- data/lib/puppet/parser/functions/delete_at.rb +49 -0
- data/lib/puppet/parser/functions/downcase.rb +33 -0
- data/lib/puppet/parser/functions/empty.rb +28 -0
- data/lib/puppet/parser/functions/ensure_packages.rb +24 -0
- data/lib/puppet/parser/functions/ensure_resource.rb +35 -0
- data/lib/puppet/parser/functions/flatten.rb +33 -0
- data/lib/puppet/parser/functions/floor.rb +20 -0
- data/lib/puppet/parser/functions/fqdn_rotate.rb +46 -0
- data/lib/puppet/parser/functions/get_module_path.rb +17 -0
- data/lib/puppet/parser/functions/getparam.rb +35 -0
- data/lib/puppet/parser/functions/getvar.rb +26 -0
- data/lib/puppet/parser/functions/grep.rb +33 -0
- data/lib/puppet/parser/functions/has_interface_with.rb +52 -0
- data/lib/puppet/parser/functions/has_ip_address.rb +25 -0
- data/lib/puppet/parser/functions/has_ip_network.rb +25 -0
- data/lib/puppet/parser/functions/has_key.rb +28 -0
- data/lib/puppet/parser/functions/hash.rb +41 -0
- data/lib/puppet/parser/functions/is_array.rb +22 -0
- data/lib/puppet/parser/functions/is_domain_name.rb +47 -0
- data/lib/puppet/parser/functions/is_float.rb +27 -0
- data/lib/puppet/parser/functions/is_function_available.rb +23 -0
- data/lib/puppet/parser/functions/is_hash.rb +22 -0
- data/lib/puppet/parser/functions/is_integer.rb +27 -0
- data/lib/puppet/parser/functions/is_ip_address.rb +32 -0
- data/lib/puppet/parser/functions/is_mac_address.rb +27 -0
- data/lib/puppet/parser/functions/is_numeric.rb +27 -0
- data/lib/puppet/parser/functions/is_string.rb +26 -0
- data/lib/puppet/parser/functions/join.rb +41 -0
- data/lib/puppet/parser/functions/join_keys_to_values.rb +47 -0
- data/lib/puppet/parser/functions/keys.rb +26 -0
- data/lib/puppet/parser/functions/loadyaml.rb +20 -0
- data/lib/puppet/parser/functions/lstrip.rb +33 -0
- data/lib/puppet/parser/functions/max.rb +21 -0
- data/lib/puppet/parser/functions/member.rb +44 -0
- data/lib/puppet/parser/functions/merge.rb +33 -0
- data/lib/puppet/parser/functions/min.rb +21 -0
- data/lib/puppet/parser/functions/num2bool.rb +43 -0
- data/lib/puppet/parser/functions/parsejson.rb +24 -0
- data/lib/puppet/parser/functions/parseyaml.rb +24 -0
- data/lib/puppet/parser/functions/pick.rb +29 -0
- data/lib/puppet/parser/functions/prefix.rb +45 -0
- data/lib/puppet/parser/functions/range.rb +80 -0
- data/lib/puppet/parser/functions/reject.rb +31 -0
- data/lib/puppet/parser/functions/reverse.rb +28 -0
- data/lib/puppet/parser/functions/rstrip.rb +32 -0
- data/lib/puppet/parser/functions/shuffle.rb +46 -0
- data/lib/puppet/parser/functions/size.rb +48 -0
- data/lib/puppet/parser/functions/sort.rb +27 -0
- data/lib/puppet/parser/functions/squeeze.rb +36 -0
- data/lib/puppet/parser/functions/str2bool.rb +46 -0
- data/lib/puppet/parser/functions/str2saltedsha512.rb +32 -0
- data/lib/puppet/parser/functions/strftime.rb +107 -0
- data/lib/puppet/parser/functions/strip.rb +39 -0
- data/lib/puppet/parser/functions/suffix.rb +45 -0
- data/lib/puppet/parser/functions/swapcase.rb +39 -0
- data/lib/puppet/parser/functions/time.rb +49 -0
- data/lib/puppet/parser/functions/to_bytes.rb +28 -0
- data/lib/puppet/parser/functions/type.rb +50 -0
- data/lib/puppet/parser/functions/unique.rb +51 -0
- data/lib/puppet/parser/functions/upcase.rb +41 -0
- data/lib/puppet/parser/functions/uriescape.rb +36 -0
- data/lib/puppet/parser/functions/validate_absolute_path.rb +56 -0
- data/lib/puppet/parser/functions/validate_array.rb +33 -0
- data/lib/puppet/parser/functions/validate_augeas.rb +81 -0
- data/lib/puppet/parser/functions/validate_bool.rb +34 -0
- data/lib/puppet/parser/functions/validate_cmd.rb +47 -0
- data/lib/puppet/parser/functions/validate_hash.rb +33 -0
- data/lib/puppet/parser/functions/validate_re.rb +40 -0
- data/lib/puppet/parser/functions/validate_slength.rb +52 -0
- data/lib/puppet/parser/functions/validate_string.rb +33 -0
- data/lib/puppet/parser/functions/values.rb +39 -0
- data/lib/puppet/parser/functions/values_at.rb +98 -0
- data/lib/puppet/parser/functions/zip.rb +65 -0
- data/lib/puppet/provider/file_line/ruby.rb +59 -0
- data/lib/puppet/type/anchor.rb +41 -0
- data/lib/puppet/type/file_line.rb +70 -0
- data/manifests/init.pp +20 -0
- data/manifests/stages.pp +43 -0
- data/spec/functions/defined_with_params_spec.rb +37 -0
- data/spec/functions/ensure_packages_spec.rb +42 -0
- data/spec/functions/ensure_resource_spec.rb +40 -0
- data/spec/functions/getparam_spec.rb +34 -0
- data/spec/monkey_patches/alias_should_to_must.rb +8 -0
- data/spec/monkey_patches/publicize_methods.rb +10 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +28 -0
- data/spec/unit/facter/pe_version_spec.rb +76 -0
- data/spec/unit/facter/root_home_spec.rb +40 -0
- data/spec/unit/facter/util/puppet_settings_spec.rb +35 -0
- data/spec/unit/puppet/parser/functions/abs_spec.rb +25 -0
- data/spec/unit/puppet/parser/functions/any2array_spec.rb +55 -0
- data/spec/unit/puppet/parser/functions/bool2num_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/capitalize_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/chomp_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/chop_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/concat_spec.rb +15 -0
- data/spec/unit/puppet/parser/functions/count_spec.rb +31 -0
- data/spec/unit/puppet/parser/functions/delete_at_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/delete_spec.rb +38 -0
- data/spec/unit/puppet/parser/functions/downcase_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/empty_spec.rb +23 -0
- data/spec/unit/puppet/parser/functions/flatten_spec.rb +27 -0
- data/spec/unit/puppet/parser/functions/floor_spec.rb +39 -0
- data/spec/unit/puppet/parser/functions/fqdn_rotate_spec.rb +33 -0
- data/spec/unit/puppet/parser/functions/get_module_path_spec.rb +46 -0
- data/spec/unit/puppet/parser/functions/getvar_spec.rb +37 -0
- data/spec/unit/puppet/parser/functions/grep_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/has_interface_with_spec.rb +64 -0
- data/spec/unit/puppet/parser/functions/has_ip_address_spec.rb +39 -0
- data/spec/unit/puppet/parser/functions/has_ip_network_spec.rb +36 -0
- data/spec/unit/puppet/parser/functions/has_key_spec.rb +42 -0
- data/spec/unit/puppet/parser/functions/hash_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/is_array_spec.rb +29 -0
- data/spec/unit/puppet/parser/functions/is_domain_name_spec.rb +64 -0
- data/spec/unit/puppet/parser/functions/is_float_spec.rb +33 -0
- data/spec/unit/puppet/parser/functions/is_function_available.rb +31 -0
- data/spec/unit/puppet/parser/functions/is_hash_spec.rb +29 -0
- data/spec/unit/puppet/parser/functions/is_integer_spec.rb +34 -0
- data/spec/unit/puppet/parser/functions/is_ip_address_spec.rb +39 -0
- data/spec/unit/puppet/parser/functions/is_mac_address_spec.rb +29 -0
- data/spec/unit/puppet/parser/functions/is_numeric_spec.rb +39 -0
- data/spec/unit/puppet/parser/functions/is_string_spec.rb +34 -0
- data/spec/unit/puppet/parser/functions/join_keys_to_values_spec.rb +40 -0
- data/spec/unit/puppet/parser/functions/join_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/keys_spec.rb +21 -0
- data/spec/unit/puppet/parser/functions/lstrip_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/max_spec.rb +27 -0
- data/spec/unit/puppet/parser/functions/member_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/merge_spec.rb +47 -0
- data/spec/unit/puppet/parser/functions/min_spec.rb +27 -0
- data/spec/unit/puppet/parser/functions/num2bool_spec.rb +67 -0
- data/spec/unit/puppet/parser/functions/parsejson_spec.rb +22 -0
- data/spec/unit/puppet/parser/functions/parseyaml_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/pick_spec.rb +34 -0
- data/spec/unit/puppet/parser/functions/prefix_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/range_spec.rb +34 -0
- data/spec/unit/puppet/parser/functions/reject_spec.rb +20 -0
- data/spec/unit/puppet/parser/functions/reverse_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/rstrip_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/shuffle_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/size_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/sort_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/squeeze_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/str2bool_spec.rb +31 -0
- data/spec/unit/puppet/parser/functions/str2saltedsha512_spec.rb +45 -0
- data/spec/unit/puppet/parser/functions/strftime_spec.rb +29 -0
- data/spec/unit/puppet/parser/functions/strip_spec.rb +18 -0
- data/spec/unit/puppet/parser/functions/suffix_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/swapcase_spec.rb +19 -0
- data/spec/unit/puppet/parser/functions/time_spec.rb +29 -0
- data/spec/unit/puppet/parser/functions/to_bytes_spec.rb +58 -0
- data/spec/unit/puppet/parser/functions/type_spec.rb +43 -0
- data/spec/unit/puppet/parser/functions/unique_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/upcase_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/uriescape_spec.rb +24 -0
- data/spec/unit/puppet/parser/functions/validate_absolute_path_spec.rb +83 -0
- data/spec/unit/puppet/parser/functions/validate_array_spec.rb +38 -0
- data/spec/unit/puppet/parser/functions/validate_augeas_spec.rb +102 -0
- data/spec/unit/puppet/parser/functions/validate_bool_spec.rb +51 -0
- data/spec/unit/puppet/parser/functions/validate_cmd_spec.rb +81 -0
- data/spec/unit/puppet/parser/functions/validate_hash_spec.rb +43 -0
- data/spec/unit/puppet/parser/functions/validate_re_spec.rb +76 -0
- data/spec/unit/puppet/parser/functions/validate_slength_spec.rb +48 -0
- data/spec/unit/puppet/parser/functions/validate_string_spec.rb +60 -0
- data/spec/unit/puppet/parser/functions/values_at_spec.rb +38 -0
- data/spec/unit/puppet/parser/functions/values_spec.rb +31 -0
- data/spec/unit/puppet/parser/functions/zip_spec.rb +15 -0
- data/spec/unit/puppet/provider/file_line/ruby_spec.rb +127 -0
- data/spec/unit/puppet/type/anchor_spec.rb +11 -0
- data/spec/unit/puppet/type/file_line_spec.rb +69 -0
- data/spec/watchr.rb +86 -0
- data/tests/file_line.pp +9 -0
- data/tests/has_interface_with.pp +10 -0
- data/tests/has_ip_address.pp +3 -0
- data/tests/has_ip_network.pp +4 -0
- data/tests/init.pp +1 -0
- metadata +252 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
require 'puppet'
|
2
|
+
require 'tempfile'
|
3
|
+
describe Puppet::Type.type(:file_line) do
|
4
|
+
let :file_line do
|
5
|
+
Puppet::Type.type(:file_line).new(:name => 'foo', :line => 'line', :path => '/tmp/path')
|
6
|
+
end
|
7
|
+
it 'should accept a line and path' do
|
8
|
+
file_line[:line] = 'my_line'
|
9
|
+
file_line[:line].should == 'my_line'
|
10
|
+
file_line[:path] = '/my/path'
|
11
|
+
file_line[:path].should == '/my/path'
|
12
|
+
end
|
13
|
+
it 'should accept a match regex' do
|
14
|
+
file_line[:match] = '^foo.*$'
|
15
|
+
file_line[:match].should == '^foo.*$'
|
16
|
+
end
|
17
|
+
it 'should not accept a match regex that does not match the specified line' do
|
18
|
+
expect {
|
19
|
+
Puppet::Type.type(:file_line).new(
|
20
|
+
:name => 'foo',
|
21
|
+
:path => '/my/path',
|
22
|
+
:line => 'foo=bar',
|
23
|
+
:match => '^bar=blah$'
|
24
|
+
)}.to raise_error(Puppet::Error, /the value must be a regex that matches/)
|
25
|
+
end
|
26
|
+
it 'should accept a match regex that does match the specified line' do
|
27
|
+
expect {
|
28
|
+
Puppet::Type.type(:file_line).new(
|
29
|
+
:name => 'foo',
|
30
|
+
:path => '/my/path',
|
31
|
+
:line => 'foo=bar',
|
32
|
+
:match => '^\s*foo=.*$'
|
33
|
+
)}.not_to raise_error
|
34
|
+
end
|
35
|
+
it 'should accept posix filenames' do
|
36
|
+
file_line[:path] = '/tmp/path'
|
37
|
+
file_line[:path].should == '/tmp/path'
|
38
|
+
end
|
39
|
+
it 'should not accept unqualified path' do
|
40
|
+
expect { file_line[:path] = 'file' }.to raise_error(Puppet::Error, /File paths must be fully qualified/)
|
41
|
+
end
|
42
|
+
it 'should require that a line is specified' do
|
43
|
+
expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => '/tmp/file') }.to raise_error(Puppet::Error, /Both line and path are required attributes/)
|
44
|
+
end
|
45
|
+
it 'should require that a file is specified' do
|
46
|
+
expect { Puppet::Type.type(:file_line).new(:name => 'foo', :line => 'path') }.to raise_error(Puppet::Error, /Both line and path are required attributes/)
|
47
|
+
end
|
48
|
+
it 'should default to ensure => present' do
|
49
|
+
file_line[:ensure].should eq :present
|
50
|
+
end
|
51
|
+
|
52
|
+
it "should autorequire the file it manages" do
|
53
|
+
catalog = Puppet::Resource::Catalog.new
|
54
|
+
file = Puppet::Type.type(:file).new(:name => "/tmp/path")
|
55
|
+
catalog.add_resource file
|
56
|
+
catalog.add_resource file_line
|
57
|
+
|
58
|
+
relationship = file_line.autorequire.find do |rel|
|
59
|
+
(rel.source.to_s == "File[/tmp/path]") and (rel.target.to_s == file_line.to_s)
|
60
|
+
end
|
61
|
+
relationship.should be_a Puppet::Relationship
|
62
|
+
end
|
63
|
+
|
64
|
+
it "should not autorequire the file it manages if it is not managed" do
|
65
|
+
catalog = Puppet::Resource::Catalog.new
|
66
|
+
catalog.add_resource file_line
|
67
|
+
file_line.autorequire.should be_empty
|
68
|
+
end
|
69
|
+
end
|
data/spec/watchr.rb
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
ENV['FOG_MOCK'] ||= 'true'
|
2
|
+
ENV['AUTOTEST'] = 'true'
|
3
|
+
ENV['WATCHR'] = '1'
|
4
|
+
|
5
|
+
system 'clear'
|
6
|
+
|
7
|
+
def growl(message)
|
8
|
+
growlnotify = `which growlnotify`.chomp
|
9
|
+
title = "Watchr Test Results"
|
10
|
+
image = case message
|
11
|
+
when /(\d+)\s+?(failure|error)/i
|
12
|
+
($1.to_i == 0) ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png"
|
13
|
+
else
|
14
|
+
'~/.watchr_images/unknown.png'
|
15
|
+
end
|
16
|
+
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{message}' '#{title}'"
|
17
|
+
system %(#{growlnotify} #{options} &)
|
18
|
+
end
|
19
|
+
|
20
|
+
def run(cmd)
|
21
|
+
puts(cmd)
|
22
|
+
`#{cmd}`
|
23
|
+
end
|
24
|
+
|
25
|
+
def run_spec_test(file)
|
26
|
+
if File.exist? file
|
27
|
+
result = run "rspec --format p --color #{file}"
|
28
|
+
growl result.split("\n").last
|
29
|
+
puts result
|
30
|
+
else
|
31
|
+
puts "FIXME: No test #{file} [#{Time.now}]"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def filter_rspec(data)
|
36
|
+
data.split("\n").find_all do |l|
|
37
|
+
l =~ /^(\d+)\s+exampl\w+.*?(\d+).*?failur\w+.*?(\d+).*?pending/
|
38
|
+
end.join("\n")
|
39
|
+
end
|
40
|
+
|
41
|
+
def run_all_tests
|
42
|
+
system('clear')
|
43
|
+
files = Dir.glob("spec/**/*_spec.rb").join(" ")
|
44
|
+
result = run "rspec #{files}"
|
45
|
+
growl_results = filter_rspec result
|
46
|
+
growl growl_results
|
47
|
+
puts result
|
48
|
+
puts "GROWL: #{growl_results}"
|
49
|
+
end
|
50
|
+
|
51
|
+
# Ctrl-\
|
52
|
+
Signal.trap 'QUIT' do
|
53
|
+
puts " --- Running all tests ---\n\n"
|
54
|
+
run_all_tests
|
55
|
+
end
|
56
|
+
|
57
|
+
@interrupted = false
|
58
|
+
|
59
|
+
# Ctrl-C
|
60
|
+
Signal.trap 'INT' do
|
61
|
+
if @interrupted then
|
62
|
+
@wants_to_quit = true
|
63
|
+
abort("\n")
|
64
|
+
else
|
65
|
+
puts "Interrupt a second time to quit"
|
66
|
+
@interrupted = true
|
67
|
+
Kernel.sleep 1.5
|
68
|
+
# raise Interrupt, nil # let the run loop catch it
|
69
|
+
run_suite
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
def file2spec(file)
|
74
|
+
result = file.sub('lib/puppet/', 'spec/unit/puppet/').gsub(/\.rb$/, '_spec.rb')
|
75
|
+
result = file.sub('lib/facter/', 'spec/unit/facter/').gsub(/\.rb$/, '_spec.rb')
|
76
|
+
end
|
77
|
+
|
78
|
+
|
79
|
+
watch( 'spec/.*_spec\.rb' ) do |md|
|
80
|
+
#run_spec_test(md[0])
|
81
|
+
run_all_tests
|
82
|
+
end
|
83
|
+
watch( 'lib/.*\.rb' ) do |md|
|
84
|
+
# run_spec_test(file2spec(md[0]))
|
85
|
+
run_all_tests
|
86
|
+
end
|
data/tests/file_line.pp
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
include stdlib
|
2
|
+
info('has_interface_with(\'lo\'):', has_interface_with('lo'))
|
3
|
+
info('has_interface_with(\'loX\'):', has_interface_with('loX'))
|
4
|
+
info('has_interface_with(\'ipaddress\', \'127.0.0.1\'):', has_interface_with('ipaddress', '127.0.0.1'))
|
5
|
+
info('has_interface_with(\'ipaddress\', \'127.0.0.100\'):', has_interface_with('ipaddress', '127.0.0.100'))
|
6
|
+
info('has_interface_with(\'network\', \'127.0.0.0\'):', has_interface_with('network', '127.0.0.0'))
|
7
|
+
info('has_interface_with(\'network\', \'128.0.0.0\'):', has_interface_with('network', '128.0.0.0'))
|
8
|
+
info('has_interface_with(\'netmask\', \'255.0.0.0\'):', has_interface_with('netmask', '255.0.0.0'))
|
9
|
+
info('has_interface_with(\'netmask\', \'256.0.0.0\'):', has_interface_with('netmask', '256.0.0.0'))
|
10
|
+
|
data/tests/init.pp
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
include stdlib
|
metadata
ADDED
@@ -0,0 +1,252 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: puppetmodule-stdlib
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 4.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Puppet Labs
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Puppet Labs Standard Library module
|
15
|
+
email: support@puppetlabs.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- CHANGELOG
|
21
|
+
- CONTRIBUTING.md
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE
|
24
|
+
- Modulefile
|
25
|
+
- README.markdown
|
26
|
+
- README_DEVELOPER.markdown
|
27
|
+
- RELEASE_PROCESS.markdown
|
28
|
+
- Rakefile
|
29
|
+
- spec/spec.opts
|
30
|
+
- lib/facter/pe_version.rb
|
31
|
+
- lib/facter/puppet_vardir.rb
|
32
|
+
- lib/facter/root_home.rb
|
33
|
+
- lib/facter/util/puppet_settings.rb
|
34
|
+
- lib/puppet/parser/functions/abs.rb
|
35
|
+
- lib/puppet/parser/functions/any2array.rb
|
36
|
+
- lib/puppet/parser/functions/bool2num.rb
|
37
|
+
- lib/puppet/parser/functions/capitalize.rb
|
38
|
+
- lib/puppet/parser/functions/chomp.rb
|
39
|
+
- lib/puppet/parser/functions/chop.rb
|
40
|
+
- lib/puppet/parser/functions/concat.rb
|
41
|
+
- lib/puppet/parser/functions/count.rb
|
42
|
+
- lib/puppet/parser/functions/defined_with_params.rb
|
43
|
+
- lib/puppet/parser/functions/delete.rb
|
44
|
+
- lib/puppet/parser/functions/delete_at.rb
|
45
|
+
- lib/puppet/parser/functions/downcase.rb
|
46
|
+
- lib/puppet/parser/functions/empty.rb
|
47
|
+
- lib/puppet/parser/functions/ensure_packages.rb
|
48
|
+
- lib/puppet/parser/functions/ensure_resource.rb
|
49
|
+
- lib/puppet/parser/functions/flatten.rb
|
50
|
+
- lib/puppet/parser/functions/floor.rb
|
51
|
+
- lib/puppet/parser/functions/fqdn_rotate.rb
|
52
|
+
- lib/puppet/parser/functions/get_module_path.rb
|
53
|
+
- lib/puppet/parser/functions/getparam.rb
|
54
|
+
- lib/puppet/parser/functions/getvar.rb
|
55
|
+
- lib/puppet/parser/functions/grep.rb
|
56
|
+
- lib/puppet/parser/functions/has_interface_with.rb
|
57
|
+
- lib/puppet/parser/functions/has_ip_address.rb
|
58
|
+
- lib/puppet/parser/functions/has_ip_network.rb
|
59
|
+
- lib/puppet/parser/functions/has_key.rb
|
60
|
+
- lib/puppet/parser/functions/hash.rb
|
61
|
+
- lib/puppet/parser/functions/is_array.rb
|
62
|
+
- lib/puppet/parser/functions/is_domain_name.rb
|
63
|
+
- lib/puppet/parser/functions/is_float.rb
|
64
|
+
- lib/puppet/parser/functions/is_function_available.rb
|
65
|
+
- lib/puppet/parser/functions/is_hash.rb
|
66
|
+
- lib/puppet/parser/functions/is_integer.rb
|
67
|
+
- lib/puppet/parser/functions/is_ip_address.rb
|
68
|
+
- lib/puppet/parser/functions/is_mac_address.rb
|
69
|
+
- lib/puppet/parser/functions/is_numeric.rb
|
70
|
+
- lib/puppet/parser/functions/is_string.rb
|
71
|
+
- lib/puppet/parser/functions/join.rb
|
72
|
+
- lib/puppet/parser/functions/join_keys_to_values.rb
|
73
|
+
- lib/puppet/parser/functions/keys.rb
|
74
|
+
- lib/puppet/parser/functions/loadyaml.rb
|
75
|
+
- lib/puppet/parser/functions/lstrip.rb
|
76
|
+
- lib/puppet/parser/functions/max.rb
|
77
|
+
- lib/puppet/parser/functions/member.rb
|
78
|
+
- lib/puppet/parser/functions/merge.rb
|
79
|
+
- lib/puppet/parser/functions/min.rb
|
80
|
+
- lib/puppet/parser/functions/num2bool.rb
|
81
|
+
- lib/puppet/parser/functions/parsejson.rb
|
82
|
+
- lib/puppet/parser/functions/parseyaml.rb
|
83
|
+
- lib/puppet/parser/functions/pick.rb
|
84
|
+
- lib/puppet/parser/functions/prefix.rb
|
85
|
+
- lib/puppet/parser/functions/range.rb
|
86
|
+
- lib/puppet/parser/functions/reject.rb
|
87
|
+
- lib/puppet/parser/functions/reverse.rb
|
88
|
+
- lib/puppet/parser/functions/rstrip.rb
|
89
|
+
- lib/puppet/parser/functions/shuffle.rb
|
90
|
+
- lib/puppet/parser/functions/size.rb
|
91
|
+
- lib/puppet/parser/functions/sort.rb
|
92
|
+
- lib/puppet/parser/functions/squeeze.rb
|
93
|
+
- lib/puppet/parser/functions/str2bool.rb
|
94
|
+
- lib/puppet/parser/functions/str2saltedsha512.rb
|
95
|
+
- lib/puppet/parser/functions/strftime.rb
|
96
|
+
- lib/puppet/parser/functions/strip.rb
|
97
|
+
- lib/puppet/parser/functions/suffix.rb
|
98
|
+
- lib/puppet/parser/functions/swapcase.rb
|
99
|
+
- lib/puppet/parser/functions/time.rb
|
100
|
+
- lib/puppet/parser/functions/to_bytes.rb
|
101
|
+
- lib/puppet/parser/functions/type.rb
|
102
|
+
- lib/puppet/parser/functions/unique.rb
|
103
|
+
- lib/puppet/parser/functions/upcase.rb
|
104
|
+
- lib/puppet/parser/functions/uriescape.rb
|
105
|
+
- lib/puppet/parser/functions/validate_absolute_path.rb
|
106
|
+
- lib/puppet/parser/functions/validate_array.rb
|
107
|
+
- lib/puppet/parser/functions/validate_augeas.rb
|
108
|
+
- lib/puppet/parser/functions/validate_bool.rb
|
109
|
+
- lib/puppet/parser/functions/validate_cmd.rb
|
110
|
+
- lib/puppet/parser/functions/validate_hash.rb
|
111
|
+
- lib/puppet/parser/functions/validate_re.rb
|
112
|
+
- lib/puppet/parser/functions/validate_slength.rb
|
113
|
+
- lib/puppet/parser/functions/validate_string.rb
|
114
|
+
- lib/puppet/parser/functions/values.rb
|
115
|
+
- lib/puppet/parser/functions/values_at.rb
|
116
|
+
- lib/puppet/parser/functions/zip.rb
|
117
|
+
- lib/puppet/provider/file_line/ruby.rb
|
118
|
+
- lib/puppet/type/anchor.rb
|
119
|
+
- lib/puppet/type/file_line.rb
|
120
|
+
- manifests/init.pp
|
121
|
+
- manifests/stages.pp
|
122
|
+
- tests/file_line.pp
|
123
|
+
- tests/has_interface_with.pp
|
124
|
+
- tests/has_ip_address.pp
|
125
|
+
- tests/has_ip_network.pp
|
126
|
+
- tests/init.pp
|
127
|
+
- spec/functions/defined_with_params_spec.rb
|
128
|
+
- spec/functions/ensure_packages_spec.rb
|
129
|
+
- spec/functions/ensure_resource_spec.rb
|
130
|
+
- spec/functions/getparam_spec.rb
|
131
|
+
- spec/monkey_patches/alias_should_to_must.rb
|
132
|
+
- spec/monkey_patches/publicize_methods.rb
|
133
|
+
- spec/spec_helper.rb
|
134
|
+
- spec/unit/facter/pe_version_spec.rb
|
135
|
+
- spec/unit/facter/root_home_spec.rb
|
136
|
+
- spec/unit/facter/util/puppet_settings_spec.rb
|
137
|
+
- spec/unit/puppet/parser/functions/abs_spec.rb
|
138
|
+
- spec/unit/puppet/parser/functions/any2array_spec.rb
|
139
|
+
- spec/unit/puppet/parser/functions/bool2num_spec.rb
|
140
|
+
- spec/unit/puppet/parser/functions/capitalize_spec.rb
|
141
|
+
- spec/unit/puppet/parser/functions/chomp_spec.rb
|
142
|
+
- spec/unit/puppet/parser/functions/chop_spec.rb
|
143
|
+
- spec/unit/puppet/parser/functions/concat_spec.rb
|
144
|
+
- spec/unit/puppet/parser/functions/count_spec.rb
|
145
|
+
- spec/unit/puppet/parser/functions/delete_at_spec.rb
|
146
|
+
- spec/unit/puppet/parser/functions/delete_spec.rb
|
147
|
+
- spec/unit/puppet/parser/functions/downcase_spec.rb
|
148
|
+
- spec/unit/puppet/parser/functions/empty_spec.rb
|
149
|
+
- spec/unit/puppet/parser/functions/flatten_spec.rb
|
150
|
+
- spec/unit/puppet/parser/functions/floor_spec.rb
|
151
|
+
- spec/unit/puppet/parser/functions/fqdn_rotate_spec.rb
|
152
|
+
- spec/unit/puppet/parser/functions/get_module_path_spec.rb
|
153
|
+
- spec/unit/puppet/parser/functions/getvar_spec.rb
|
154
|
+
- spec/unit/puppet/parser/functions/grep_spec.rb
|
155
|
+
- spec/unit/puppet/parser/functions/has_interface_with_spec.rb
|
156
|
+
- spec/unit/puppet/parser/functions/has_ip_address_spec.rb
|
157
|
+
- spec/unit/puppet/parser/functions/has_ip_network_spec.rb
|
158
|
+
- spec/unit/puppet/parser/functions/has_key_spec.rb
|
159
|
+
- spec/unit/puppet/parser/functions/hash_spec.rb
|
160
|
+
- spec/unit/puppet/parser/functions/is_array_spec.rb
|
161
|
+
- spec/unit/puppet/parser/functions/is_domain_name_spec.rb
|
162
|
+
- spec/unit/puppet/parser/functions/is_float_spec.rb
|
163
|
+
- spec/unit/puppet/parser/functions/is_function_available.rb
|
164
|
+
- spec/unit/puppet/parser/functions/is_hash_spec.rb
|
165
|
+
- spec/unit/puppet/parser/functions/is_integer_spec.rb
|
166
|
+
- spec/unit/puppet/parser/functions/is_ip_address_spec.rb
|
167
|
+
- spec/unit/puppet/parser/functions/is_mac_address_spec.rb
|
168
|
+
- spec/unit/puppet/parser/functions/is_numeric_spec.rb
|
169
|
+
- spec/unit/puppet/parser/functions/is_string_spec.rb
|
170
|
+
- spec/unit/puppet/parser/functions/join_keys_to_values_spec.rb
|
171
|
+
- spec/unit/puppet/parser/functions/join_spec.rb
|
172
|
+
- spec/unit/puppet/parser/functions/keys_spec.rb
|
173
|
+
- spec/unit/puppet/parser/functions/lstrip_spec.rb
|
174
|
+
- spec/unit/puppet/parser/functions/max_spec.rb
|
175
|
+
- spec/unit/puppet/parser/functions/member_spec.rb
|
176
|
+
- spec/unit/puppet/parser/functions/merge_spec.rb
|
177
|
+
- spec/unit/puppet/parser/functions/min_spec.rb
|
178
|
+
- spec/unit/puppet/parser/functions/num2bool_spec.rb
|
179
|
+
- spec/unit/puppet/parser/functions/parsejson_spec.rb
|
180
|
+
- spec/unit/puppet/parser/functions/parseyaml_spec.rb
|
181
|
+
- spec/unit/puppet/parser/functions/pick_spec.rb
|
182
|
+
- spec/unit/puppet/parser/functions/prefix_spec.rb
|
183
|
+
- spec/unit/puppet/parser/functions/range_spec.rb
|
184
|
+
- spec/unit/puppet/parser/functions/reject_spec.rb
|
185
|
+
- spec/unit/puppet/parser/functions/reverse_spec.rb
|
186
|
+
- spec/unit/puppet/parser/functions/rstrip_spec.rb
|
187
|
+
- spec/unit/puppet/parser/functions/shuffle_spec.rb
|
188
|
+
- spec/unit/puppet/parser/functions/size_spec.rb
|
189
|
+
- spec/unit/puppet/parser/functions/sort_spec.rb
|
190
|
+
- spec/unit/puppet/parser/functions/squeeze_spec.rb
|
191
|
+
- spec/unit/puppet/parser/functions/str2bool_spec.rb
|
192
|
+
- spec/unit/puppet/parser/functions/str2saltedsha512_spec.rb
|
193
|
+
- spec/unit/puppet/parser/functions/strftime_spec.rb
|
194
|
+
- spec/unit/puppet/parser/functions/strip_spec.rb
|
195
|
+
- spec/unit/puppet/parser/functions/suffix_spec.rb
|
196
|
+
- spec/unit/puppet/parser/functions/swapcase_spec.rb
|
197
|
+
- spec/unit/puppet/parser/functions/time_spec.rb
|
198
|
+
- spec/unit/puppet/parser/functions/to_bytes_spec.rb
|
199
|
+
- spec/unit/puppet/parser/functions/type_spec.rb
|
200
|
+
- spec/unit/puppet/parser/functions/unique_spec.rb
|
201
|
+
- spec/unit/puppet/parser/functions/upcase_spec.rb
|
202
|
+
- spec/unit/puppet/parser/functions/uriescape_spec.rb
|
203
|
+
- spec/unit/puppet/parser/functions/validate_absolute_path_spec.rb
|
204
|
+
- spec/unit/puppet/parser/functions/validate_array_spec.rb
|
205
|
+
- spec/unit/puppet/parser/functions/validate_augeas_spec.rb
|
206
|
+
- spec/unit/puppet/parser/functions/validate_bool_spec.rb
|
207
|
+
- spec/unit/puppet/parser/functions/validate_cmd_spec.rb
|
208
|
+
- spec/unit/puppet/parser/functions/validate_hash_spec.rb
|
209
|
+
- spec/unit/puppet/parser/functions/validate_re_spec.rb
|
210
|
+
- spec/unit/puppet/parser/functions/validate_slength_spec.rb
|
211
|
+
- spec/unit/puppet/parser/functions/validate_string_spec.rb
|
212
|
+
- spec/unit/puppet/parser/functions/values_at_spec.rb
|
213
|
+
- spec/unit/puppet/parser/functions/values_spec.rb
|
214
|
+
- spec/unit/puppet/parser/functions/zip_spec.rb
|
215
|
+
- spec/unit/puppet/provider/file_line/ruby_spec.rb
|
216
|
+
- spec/unit/puppet/type/anchor_spec.rb
|
217
|
+
- spec/unit/puppet/type/file_line_spec.rb
|
218
|
+
- spec/watchr.rb
|
219
|
+
homepage: https://github.com/puppetlabs/puppetlabs-stdlib
|
220
|
+
licenses: []
|
221
|
+
post_install_message:
|
222
|
+
rdoc_options:
|
223
|
+
- --title
|
224
|
+
- Puppet Standard Library Module
|
225
|
+
- --main
|
226
|
+
- README.markdown
|
227
|
+
- --line-numbers
|
228
|
+
require_paths:
|
229
|
+
- lib
|
230
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
231
|
+
none: false
|
232
|
+
requirements:
|
233
|
+
- - ! '>='
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
segments:
|
237
|
+
- 0
|
238
|
+
hash: -1169862895975536617
|
239
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
|
+
none: false
|
241
|
+
requirements:
|
242
|
+
- - ! '>='
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: '0'
|
245
|
+
requirements: []
|
246
|
+
rubyforge_project: puppetmodule-stdlib
|
247
|
+
rubygems_version: 1.8.25
|
248
|
+
signing_key:
|
249
|
+
specification_version: 3
|
250
|
+
summary: This module provides a standard library of resources for developing Puppet
|
251
|
+
Modules.
|
252
|
+
test_files: []
|