master_manipulator 1.2.7 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/HISTORY.md +21 -2
- data/Rakefile +1 -1
- data/lib/master_manipulator/service.rb +20 -0
- data/lib/master_manipulator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTc3OGRjYjUyYTQ1MDNjYmE3NzM3NTFmMzc0YTMwMDFiY2JlY2EyOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2U4NTA0MWRiODk3ODk0N2I0ODdlZmUyMjg1YjhhZTBiM2U2MzhkMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzdhNTBmNTVhZDRlZmI3MjZjNTg4ZWYwMGFjMDBkYWJkNDM4YzE1NTY2N2Jl
|
10
|
+
ODE4OTIyNjg4ZWExYTIwYTUyZTg2MGI2MTNjMmEwNmQ1ZGE3ZDlhY2VkYTNj
|
11
|
+
ODczZGM3YTA3NmFiNmViZmVkNTE2MDhjNDAyY2JhN2E4MjQyZDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2M1Njg0NGE2MDM5ZDg2NjI1YTJmNGFiY2UzY2M0ZTNhZjUyOWRlOGMyZDll
|
14
|
+
MzU0M2RkMDI3M2ZmYmViNjBhODk4MjRkMWU2ZjEyZjEyNGI2ZjFhMTYyOTVk
|
15
|
+
ZjJlMDk5ZTRkZjJmYWFiNTVjMmI2ODVkNzliOGM3ODFiYzU0NTI=
|
data/HISTORY.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# worker - History
|
2
2
|
## Tags
|
3
|
-
* [LATEST -
|
3
|
+
* [LATEST - 15 Mar, 2017 (98f7b9fe)](#LATEST)
|
4
|
+
* [1.2.7 - 8 Mar, 2017 (cb51b95b)](#1.2.7)
|
4
5
|
* [1.2.6 - 10 Jan, 2017 (866a03cb)](#1.2.6)
|
5
6
|
* [1.2.4 - 27 Sep, 2016 (48017488)](#1.2.4)
|
6
7
|
* [1.2.3 - 20 Nov, 2015 (f31e884e)](#1.2.3)
|
@@ -14,7 +15,25 @@
|
|
14
15
|
* [1.0.0 - 6 May, 2015 (8ae50d90)](#1.0.0)
|
15
16
|
|
16
17
|
## Details
|
17
|
-
### <a name = "LATEST">LATEST -
|
18
|
+
### <a name = "LATEST">LATEST - 15 Mar, 2017 (98f7b9fe)
|
19
|
+
|
20
|
+
* (GEM) update master_manipulator version to 2.0.0 (98f7b9fe)
|
21
|
+
|
22
|
+
* Merge pull request #28 from kurtwall/add-reload-server (8d413112)
|
23
|
+
|
24
|
+
|
25
|
+
```
|
26
|
+
Merge pull request #28 from kurtwall/add-reload-server
|
27
|
+
|
28
|
+
(QA-2367) Add a .reload_puppet_server method and spec tests
|
29
|
+
```
|
30
|
+
* Add method signature and short description to API quick reference (92aab7dc)
|
31
|
+
|
32
|
+
* Add a .reload_puppet_server method and spec tests (dc24b159)
|
33
|
+
|
34
|
+
### <a name = "1.2.7">1.2.7 - 8 Mar, 2017 (cb51b95b)
|
35
|
+
|
36
|
+
* (HISTORY) update master_manipulator history for gem release 1.2.7 (cb51b95b)
|
18
37
|
|
19
38
|
* (GEM) update master_manipulator version to 1.2.7 (325436d0)
|
20
39
|
|
data/Rakefile
CHANGED
@@ -3,6 +3,26 @@ require 'json'
|
|
3
3
|
module MasterManipulator
|
4
4
|
module Service
|
5
5
|
|
6
|
+
# Reload puppetserver, causing it to reread its config without
|
7
|
+
# restarting the JVM. use this instead of restart_puppet_server
|
8
|
+
# unless you absolutely have to stop and restart the server because
|
9
|
+
# JVM restarts are very expensive. This implementation relies on
|
10
|
+
# puppetserver's "reload" subcommand, which handles all the waiting
|
11
|
+
# for services to refresh. Older code using a forced HUP on the
|
12
|
+
# server process should be replaced with this.
|
13
|
+
# @param [Beaker::Host] master_host The host to manipulate.
|
14
|
+
# @param [Hash] opts Optional options hash containing options
|
15
|
+
# @return nil
|
16
|
+
# @example Restart the puppetserver process on a PE or FOSS master
|
17
|
+
# restart_puppet_server(master)
|
18
|
+
def reload_puppet_server(master_host, opts = {})
|
19
|
+
# 2015.x (Everett) and newer
|
20
|
+
rc = on(master_host, "puppetserver reload", :accept_all_exit_codes => true)
|
21
|
+
if rc.exit_code != 0
|
22
|
+
raise "'puppetserver reload' failed, returned: #{rc.exit_code}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
6
26
|
# Restart the puppet server and wait for it to come back up or raise
|
7
27
|
# an error if the wait times out
|
8
28
|
# @param [Beaker::Host] master_host The host to manipulate.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: master_manipulator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|