puppetlabs-onceover-lookup 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "puppetlabs-onceover/lookup/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "puppetlabs-onceover-lookup"
8
+ spec.version = PuppetlabsOnceover::Lookup::VERSION
9
+ spec.authors = ["Puppet, Inc."]
10
+ spec.email = ["modules-team@puppet.com"]
11
+ spec.license = "Apache-2.0"
12
+
13
+ spec.summary = %q{lookup plugin for puppetlabs-onceover}
14
+ spec.homepage = "https://github.com/puppetlabs/puppetlabs-onceover-lookup"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.2')
24
+
25
+ spec.add_dependency 'puppetlabs-onceover', '~> 5.0', '>= 5.0.4'
26
+ spec.add_dependency 'rake', '~> 13.3'
27
+ spec.add_dependency 'rspec', '~> 3.13'
28
+ end
@@ -0,0 +1,13 @@
1
+ [main]
2
+ hiera_config = <%= hiera_yaml %>
3
+ codedir = .onceover/etc/puppetlabs/code
4
+ ssldir = spec/ssl
5
+ certname = fake.fake
6
+
7
+ # Not strictly required but use separate directories to avoid polluting the host
8
+ vardir = <%= lookup_tmp_dir %>
9
+ logdir = <%= lookup_tmp_dir %>
10
+ statedir = <%= lookup_tmp_dir %>
11
+ rundir = <%= lookup_tmp_dir %>
12
+ libdir = <%= lookup_tmp_dir %>
13
+ environment = "production"
data/res/ssl_readme.md ADDED
@@ -0,0 +1,38 @@
1
+ # spec/ssl
2
+ If you like, you can build an entire mock puppet CA in this directory and puppet
3
+ will use it as part of its run.
4
+
5
+ You can choose to commit the files to git so that you only have to generate them
6
+ once. If you do so, be sure to never use these files for anything other then
7
+ logical testing as uploading to git would of-course compromise the secrecy of
8
+ the key.
9
+
10
+ This can be useful for testing out trusted facts, etc.
11
+
12
+ Puppet CAs are now managed using the puppetserver package which may not be
13
+ installable in your development environment. In this case, you can use `openssl`
14
+ to create the CA and sign the certificates.
15
+
16
+ ## Creating puppet certificates using OpenSSL
17
+
18
+ * All commands should be run from `spec/ssl`
19
+ * Any trusted attributes need to be set at the correct OID manually while
20
+ preparing CSR
21
+
22
+ ### Creating a CA
23
+ ```shell
24
+ openssl req -new -x509 -keyout ca/ca_key.pem -out ca/ca_crt.pem -days 3650 -nodes
25
+ ```
26
+ * Create a CA with 10 year validity
27
+
28
+ ### Creating a node
29
+ ```shell
30
+ openssl genrsa -out private_keys/fake.fake.pem 1024
31
+ openssl req -new -key private_keys/fake.fake.pem -out fake.fake.csr
32
+
33
+ openssl x509 -days 3650 -req -in fake.fake.csr -CA ca/ca_crt.pem -CAkey ca/ca_key.pem -set_serial 1 -out certs/fake.fake.pem
34
+ rm fake.fake.csr
35
+ ```
36
+
37
+ * Creates a node `fake.fake`
38
+ * 10 year validity
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: puppetlabs-onceover-lookup
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Puppet, Inc.
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2026-09-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: puppetlabs-onceover
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.4
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '5.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.4
33
+ - !ruby/object:Gem::Dependency
34
+ name: rake
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '13.3'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '13.3'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.13'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.13'
61
+ description:
62
+ email:
63
+ - modules-team@puppet.com
64
+ executables: []
65
+ extensions: []
66
+ extra_rdoc_files: []
67
+ files:
68
+ - ".gitattributes"
69
+ - ".github/dependabot.yml"
70
+ - ".github/labeler.yml"
71
+ - ".github/release.yml"
72
+ - ".github/workflows/ci.yml"
73
+ - ".github/workflows/labeler.yaml"
74
+ - ".github/workflows/mend.yml"
75
+ - ".github/workflows/nightly.yml"
76
+ - ".github/workflows/release.yaml"
77
+ - ".github/workflows/release_prep.yml"
78
+ - ".gitignore"
79
+ - ".rspec"
80
+ - ".rubocop.yml"
81
+ - ".rubocop_todo.yml"
82
+ - CHANGELOG.md
83
+ - CODEOWNERS
84
+ - Gemfile
85
+ - LICENSE
86
+ - README.md
87
+ - Rakefile
88
+ - bin/console
89
+ - bin/setup
90
+ - lib/puppetlabs-onceover/lookup.rb
91
+ - lib/puppetlabs-onceover/lookup/cli.rb
92
+ - lib/puppetlabs-onceover/lookup/lookup.rb
93
+ - lib/puppetlabs-onceover/lookup/version.rb
94
+ - puppetlabs-onceover-lookup.gemspec
95
+ - res/puppet.conf.erb
96
+ - res/ssl_readme.md
97
+ homepage: https://github.com/puppetlabs/puppetlabs-onceover-lookup
98
+ licenses:
99
+ - Apache-2.0
100
+ metadata: {}
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '3.2'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubygems_version: 3.4.19
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: lookup plugin for puppetlabs-onceover
120
+ test_files: []