puppetserver-ca 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b557070928191df64bd5c16ffe5f523953056da761ba306f6601c422bf442e2
|
4
|
+
data.tar.gz: 0cb7ba011bd18b86a8842922d1b7c673754f1bacdcf25f3e80182bae237cde24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc1a23d03d22196b32f6dc6af78033c2600c1b1afac7f7d50df6b2abe56ed44197b07aafb76e9a95e5916cbc21464b5b1ce30cd6cfb74d81793206b04be7224
|
7
|
+
data.tar.gz: 06390ed9834caebe8b3847dc349d9a1af887086cd1ffee0ba774148c7da2c4c6e1055b4349e505e6cb67856315b325dff4f0f72502112e2628f34fb064c68457
|
data/README.md
CHANGED
@@ -73,8 +73,26 @@ interactive prompt that will allow you to experiment.
|
|
73
73
|
|
74
74
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
75
75
|
|
76
|
-
|
77
|
-
|
76
|
+
### Testing
|
77
|
+
To test your changes on a VM:
|
78
|
+
1. Build the gem with your changes: `gem build puppetserver-ca.gemspec`
|
79
|
+
1. Copy the gem to your VM: `scp puppetserver-ca-<version>.gem <your-vm>:.`
|
80
|
+
1. Install puppetserver (FOSS) by installing the relevant release package and then installing the puppetserver package. For example:
|
81
|
+
```
|
82
|
+
$ wget http://nightlies.puppet.com/yum/puppet6-nightly-release-el-7.noarch.rpm
|
83
|
+
$ rpm -i puppet6-nightly-release-el-7.noarch.rpm
|
84
|
+
$ yum update
|
85
|
+
$ yum install -y puppetserver
|
86
|
+
```
|
87
|
+
1. Restart your shell so that puppet's bin dir is on your $PATH: `exec bash`
|
88
|
+
1. Install the gem into puppet's gem directory using puppet's gem command:
|
89
|
+
```
|
90
|
+
$ /opt/puppetlabs/puppet/bin/gem install --install-dir "/opt/puppetlabs/puppet/lib/ruby/vendor_gems" puppetserver-ca-<version>.gem
|
91
|
+
```
|
92
|
+
1. To confirm that installation was successful, run `puppetserver ca --help`
|
93
|
+
|
94
|
+
### Releasing
|
95
|
+
To release a new version, run the [release pipeline](https://jenkins-master-prod-1.delivery.puppetlabs.net/job/platform_puppetserver-ca_init-multijob_1.x/), which will bump the version, tag, build, and release the gem.
|
78
96
|
|
79
97
|
|
80
98
|
## Contributing & Support
|
@@ -66,6 +66,14 @@ SUCCESS_MESSAGE
|
|
66
66
|
def migrate(old_cadir, new_cadir=PUPPETSERVER_CA_DIR)
|
67
67
|
FileUtils.mv(old_cadir, new_cadir)
|
68
68
|
FileUtils.symlink(new_cadir, old_cadir)
|
69
|
+
# Ensure the symlink has the same ownership as the actual cadir.
|
70
|
+
# This requires using `FileUtils.chown` rather than `File.chown`, as
|
71
|
+
# the latter will update the ownership of the target rather than the
|
72
|
+
# link itself.
|
73
|
+
# Symlink permissions are ignored in favor of the target's permissions,
|
74
|
+
# so we don't have to change those.
|
75
|
+
cadir = File.stat(new_cadir)
|
76
|
+
FileUtils.chown(cadir.uid, cadir.gid, old_cadir)
|
69
77
|
end
|
70
78
|
|
71
79
|
def parse(args)
|
@@ -66,10 +66,13 @@ module Puppetserver
|
|
66
66
|
|
67
67
|
results ||= {}
|
68
68
|
results[:main] ||= {}
|
69
|
+
# The [master] config section is deprecated
|
70
|
+
# We now favor [server], but support both for backwards compatibility
|
69
71
|
results[:master] ||= {}
|
72
|
+
results[:server] ||= {}
|
70
73
|
results[:agent] ||= {}
|
71
74
|
|
72
|
-
overrides = results[:agent].merge(results[:main]).merge(results[:master])
|
75
|
+
overrides = results[:agent].merge(results[:main]).merge(results[:master]).merge(results[:server])
|
73
76
|
overrides.merge!(cli_overrides)
|
74
77
|
|
75
78
|
@settings = resolve_settings(overrides).freeze
|
@@ -174,7 +174,7 @@ module Puppetserver
|
|
174
174
|
self.new(settings, with_client_cert: false).with_connection(status_url) do |conn|
|
175
175
|
result = conn.get
|
176
176
|
if result.body == "running"
|
177
|
-
logger.err "
|
177
|
+
logger.err "Puppetserver service is running. Please stop it before attempting to run this command."
|
178
178
|
true
|
179
179
|
else
|
180
180
|
false
|
data/puppetserver-ca.gemspec
CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency "facter", [">= 2.0.1", "< 5"]
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", ">= 1.16"
|
26
|
-
spec.add_development_dependency "rake", "
|
26
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
27
27
|
spec.add_development_dependency "rspec", "~> 3.0"
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppetserver-ca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -48,16 +48,16 @@ dependencies:
|
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 12.3.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 12.3.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rspec
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|