ansible-powerplay 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semver +1 -1
- data/Gemfile.lock +18 -16
- data/README.org +25 -15
- data/RELEASE_NOTES.org +21 -19
- data/ansible-powerplay.gemspec +3 -3
- data/lib/ansible-powerplay/cli.rb +2 -0
- data/lib/ansible-powerplay/powerplay.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcbca3ad2a17db6631c7994c10159c5a64926776
|
4
|
+
data.tar.gz: 642d4d3ccd22d8541bf701040055fee8ea5c6bab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65eb7e156a9a8d47b76047b301c10e69763431998ccaac028e355da88903a78d0fcc4bd621af10485692cc561cdb7247075d5990aaeb5bb5ba24b2a7a215a7cf
|
7
|
+
data.tar.gz: 654602828ad67705ff3fb7601a8965f587ed48eccb666b2fbfaf544385954cafe0abc8f42eec091ead88afee26175551f2fbc6038752f3f77acda0bcc888dd7f
|
data/.semver
CHANGED
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ GEM
|
|
8
8
|
builder (3.2.2)
|
9
9
|
byebug (9.0.5)
|
10
10
|
coderay (1.1.1)
|
11
|
-
colorize (0.
|
11
|
+
colorize (0.8.1)
|
12
12
|
concurrent-ruby (1.0.2)
|
13
13
|
debug_inspector (0.0.2)
|
14
14
|
descendants_tracker (0.0.4)
|
@@ -17,15 +17,15 @@ GEM
|
|
17
17
|
docile (1.1.5)
|
18
18
|
faraday (0.9.2)
|
19
19
|
multipart-post (>= 1.2, < 3)
|
20
|
-
ffi (1.9.
|
20
|
+
ffi (1.9.13)
|
21
21
|
formatador (0.2.5)
|
22
22
|
git (1.3.0)
|
23
|
-
github_api (0.14.
|
23
|
+
github_api (0.14.3)
|
24
24
|
addressable (~> 2.4.0)
|
25
25
|
descendants_tracker (~> 0.0.4)
|
26
26
|
faraday (~> 0.8, < 0.10)
|
27
27
|
hashie (>= 3.4)
|
28
|
-
oauth2
|
28
|
+
oauth2 (~> 1.0.0)
|
29
29
|
guard (2.14.0)
|
30
30
|
formatador (>= 0.2.4)
|
31
31
|
listen (>= 2.7, < 4.0)
|
@@ -51,29 +51,31 @@ GEM
|
|
51
51
|
rake
|
52
52
|
rdoc
|
53
53
|
semver
|
54
|
-
jwt (1.5.
|
54
|
+
jwt (1.5.4)
|
55
55
|
listen (3.1.5)
|
56
56
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
57
57
|
rb-inotify (~> 0.9, >= 0.9.7)
|
58
58
|
ruby_dep (~> 1.2)
|
59
59
|
lumberjack (1.0.10)
|
60
60
|
method_source (0.8.2)
|
61
|
-
mini_portile2 (2.
|
61
|
+
mini_portile2 (2.1.0)
|
62
62
|
multi_json (1.12.1)
|
63
63
|
multi_xml (0.5.5)
|
64
64
|
multipart-post (2.0.0)
|
65
65
|
nenv (0.3.0)
|
66
|
-
nokogiri (1.6.
|
67
|
-
mini_portile2 (~> 2.
|
66
|
+
nokogiri (1.6.8)
|
67
|
+
mini_portile2 (~> 2.1.0)
|
68
|
+
pkg-config (~> 1.1.7)
|
68
69
|
notiffany (0.1.0)
|
69
70
|
nenv (~> 0.1)
|
70
71
|
shellany (~> 0.0)
|
71
|
-
oauth2 (1.
|
72
|
+
oauth2 (1.0.0)
|
72
73
|
faraday (>= 0.8, < 0.10)
|
73
|
-
jwt (~> 1.0
|
74
|
+
jwt (~> 1.0)
|
74
75
|
multi_json (~> 1.3)
|
75
76
|
multi_xml (~> 0.5)
|
76
|
-
rack (
|
77
|
+
rack (~> 1.2)
|
78
|
+
pkg-config (1.1.7)
|
77
79
|
pry (0.10.3)
|
78
80
|
coderay (~> 1.1.0)
|
79
81
|
method_source (~> 0.8.1)
|
@@ -81,7 +83,7 @@ GEM
|
|
81
83
|
pry-byebug (3.4.0)
|
82
84
|
byebug (~> 9.0)
|
83
85
|
pry (~> 0.10)
|
84
|
-
pry-doc (0.
|
86
|
+
pry-doc (0.9.0)
|
85
87
|
pry (~> 0.9)
|
86
88
|
yard (~> 0.8)
|
87
89
|
pry-remote (0.1.8)
|
@@ -97,7 +99,7 @@ GEM
|
|
97
99
|
aquarium (~> 0)
|
98
100
|
semver (~> 1)
|
99
101
|
rack (1.6.4)
|
100
|
-
rake (11.
|
102
|
+
rake (11.2.2)
|
101
103
|
rb-fsevent (0.9.7)
|
102
104
|
rb-inotify (0.9.7)
|
103
105
|
ffi (>= 0.5.0)
|
@@ -114,9 +116,9 @@ GEM
|
|
114
116
|
ruby_dep (1.3.1)
|
115
117
|
semver (1.0.1)
|
116
118
|
shellany (0.0.1)
|
117
|
-
simplecov (0.
|
119
|
+
simplecov (0.12.0)
|
118
120
|
docile (~> 1.1.0)
|
119
|
-
json (
|
121
|
+
json (>= 1.8, < 3)
|
120
122
|
simplecov-html (~> 0.10.0)
|
121
123
|
simplecov-html (0.10.0)
|
122
124
|
slop (3.6.0)
|
@@ -125,7 +127,7 @@ GEM
|
|
125
127
|
thor (0.19.1)
|
126
128
|
thread_safe (0.3.5)
|
127
129
|
tins (1.10.2)
|
128
|
-
yard (0.
|
130
|
+
yard (0.9.0)
|
129
131
|
|
130
132
|
PLATFORMS
|
131
133
|
ruby
|
data/README.org
CHANGED
@@ -32,21 +32,24 @@
|
|
32
32
|
|
33
33
|
** Release Notes
|
34
34
|
Please see [[RELEASE_NOTES.org][Release Notes]].
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
35
|
+
*** Hilights
|
36
|
+
**** DSL
|
37
|
+
The version 1.x releases adds new features to
|
38
|
+
the DSL, most notably, nestable groups, and being
|
39
|
+
able to label each group as :sync or :async.
|
40
|
+
**** STDOUT from ansible-playbook
|
41
|
+
The capture of the output from ansible-powerplay is
|
42
|
+
handled a bit more intelligently. If you do not specify the
|
43
|
+
--tmux (or -m) option, all output is now currently captured
|
44
|
+
by Powerplay and redumped to the console.
|
45
|
+
|
46
|
+
Because you may still want to see the color from
|
47
|
+
ansible-powerplay, you can alter ansible.cfg and
|
48
|
+
add the following line:
|
49
|
+
|
50
|
+
+ force_color = 1
|
51
|
+
|
52
|
+
Please see [[New STDOUT capturing with 1.0.x][New STDOUT capturing with 1.0.x]]
|
50
53
|
|
51
54
|
** Features and Cavets
|
52
55
|
*** Integration with TMUX
|
@@ -66,6 +69,13 @@
|
|
66
69
|
Your input on this is strongly encouarged. We will
|
67
70
|
not be supporting Screen at all. Sorry.
|
68
71
|
|
72
|
+
*** New STDOUT capturing with 1.0.x
|
73
|
+
The new capture, while properly capturing the STDOUT
|
74
|
+
of concurrent async runs, does not display until
|
75
|
+
ansible-playbook completes. If you are like me, you'll
|
76
|
+
like to see the progress as it runs. You still can using
|
77
|
+
tmux with the --tmux (-m) option.
|
78
|
+
|
69
79
|
** DSL Terminology & Documentation
|
70
80
|
Note that this is the DSL for version 1.x of
|
71
81
|
PowerPlay. For 0.x, please see those tags in
|
data/RELEASE_NOTES.org
CHANGED
@@ -9,12 +9,13 @@
|
|
9
9
|
** Release Notes
|
10
10
|
| Release | Feature / Bug | Description | Date |
|
11
11
|
|---------+----------------------------------------+-----------------------------------------------------------------------------------------------+------------|
|
12
|
+
| v1.0.8 | --ttys | List specific terminals you'd like the output to go to. | 2016-07-07 |
|
12
13
|
| v1.0.7 | Verosity Switch --apverbose=n (-Vn) | Pass to ansible-powerplay -v, -vv, etc. | |
|
13
14
|
| v1.0.6 | Ansible Verbosity | Pass to Ansi | |
|
14
15
|
| v1.0.5 | Many bug fixes | Critical bugs all fixed. | |
|
15
|
-
| v1.0.3 | DSL book | changed the named paramer back to the normal one. |
|
16
|
-
| v1.0.0 | version | Prints version |
|
17
|
-
| | powerplay / pp shorthand command | Play task defaults if you use the shorthand 'pp' on the commandline |
|
16
|
+
| v1.0.3 | DSL book | changed the named paramer back to the normal one. | 2016-06-08 |
|
17
|
+
| v1.0.0 | version | Prints version | 2016-06-04 |
|
18
|
+
| | powerplay / pp shorthand command | Play task defaults if you use the shorthand 'pp' on the commandline | 2016-06-04 |
|
18
19
|
| | DSL incompatible changes | Nestable groups, naked books. older DSL not gauranteed to be compatable. | |
|
19
20
|
| | Internal rewrite of the execution flow | Logic for execution flow rewritten to allow fine-grained control over what is sync and async. | |
|
20
21
|
| | Internal NOOP books | We need to demarcate groups executing synchronously that they themselves have async members. | |
|
@@ -35,24 +36,25 @@
|
|
35
36
|
** Known Outstanding Issues
|
36
37
|
Bugs and missing features that needs to be addressed. As they are,
|
37
38
|
we'll remove them from this list.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
| 2016-
|
42
|
-
| 2016-
|
43
|
-
|
|
44
|
-
| 2016-03-
|
45
|
-
|
|
39
|
+
|
40
|
+
| Date | Issue | Description |
|
41
|
+
|------------+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------|
|
42
|
+
| 2016-06-07 | execution planning dump (-v2) and -b | When using -b to select an individual book, the execution planning does not reflect this filtration. |
|
43
|
+
| 2016-06-05 | version | Command does not work properly. It hangs. |
|
44
|
+
| 2016-04-07 | --extra-vars | Powerplay duplicates keys on extra vars if already specified in the Powerplay. |
|
45
|
+
| 2016-03-11 | Grouping | Groups executes in parallel instead of serially. |
|
46
|
+
| | Core | Core process flow needs to be redone. |
|
47
|
+
| 2016-03-03 | Status dump out of order | Currently a bit out of order due to the fact that the output are being run in different threads and so the text is being printed nondeterministically. |
|
48
|
+
| 2016-02-20 | Platforms other than Linux | We need to test on Mac OSX and Windows. Should work fine on Macs. I do not plan to support Windows in general, but may accept pull requests to that end. |
|
46
49
|
|
47
50
|
** Wish List
|
48
51
|
Well, we can always wish upon a star... but it will take
|
49
52
|
my time and dedication to make stars happen. :p
|
50
53
|
|
51
|
-
| Date | Wish
|
52
|
-
|
53
|
-
| 2016-
|
54
|
-
|
|
55
|
-
|
|
56
|
-
| 2016-02-
|
57
|
-
|
|
58
|
-
| | Name Completion | Shell integration with name completion features of bash. | |
|
54
|
+
| Date | Wish | Description |
|
55
|
+
|------------+---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
56
|
+
| 2016-02-20 | Integration with Jenkins | I have no idea what form this will take |
|
57
|
+
| | Curses integration | Basically, the tmux integration is used because it was quick to do. But what I really want to do is full Curses support, similar with what you see with htop and other tools. |
|
58
|
+
| 2016-02-26 | Better and Error handling | When there's a failure in the underlying Ansible playbook, we want to handle that better in Powerplay. This would be a part of the Curses upgrade to come later. |
|
59
|
+
| 2016-02-29 | Configuration file | Add a (presumably yaml format) configuration file in a few key locations. |
|
60
|
+
| | Name Completion | Shell integration with name completion features of bash. |
|
data/ansible-powerplay.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: ansible-powerplay 1.0.
|
5
|
+
# stub: ansible-powerplay 1.0.8 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "ansible-powerplay"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.8"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Fred Mitchell"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-07-07"
|
15
15
|
s.description = "Ansible Powerplay, by way of its DSL, allows you to\n specify your Ansible playbooks and their vars, and common\n vars to all, so that you can run your\n indeoendent playbooks in full parallel."
|
16
16
|
s.email = "fred.mitchell@gmx.de"
|
17
17
|
s.executables = ["powerplay", "pp"]
|
@@ -19,6 +19,8 @@ module Powerplay
|
|
19
19
|
LONGDESC
|
20
20
|
option :tmux, type: :numeric, aliases: '-m', banner: "[WINDOWNUMBERopt]", lazy_default: 0,
|
21
21
|
desc: ' Send output to all tmux panes in the current window, or the numeric window specified.'
|
22
|
+
option :ttys, type: :array, aliases: '-M', banner: "[TTY1[ TTY2 ...]]",
|
23
|
+
desc: ' Send output to specified (pseudo) ttys.'
|
22
24
|
option :play, type: :array, aliases: ['-p', '--power'], banner: "[NAME[ NAME2...]|all]", required: true,
|
23
25
|
desc: 'Which PowerPlay playbooks (as opposed to Ansible playbooks) to specifically execute.'
|
24
26
|
option :group, type: :array, aliases: '-g', banner: "[NAME[ NAME2...]|all]", default: [:all],
|
@@ -23,7 +23,9 @@ module Powerplay
|
|
23
23
|
else
|
24
24
|
" -t #{Play::clopts[:tmux]} "
|
25
25
|
end
|
26
|
-
@ptys ||= if Play::clopts
|
26
|
+
@ptys ||= if Play::clopts[:ttys]
|
27
|
+
Play::clopts[:ttys]
|
28
|
+
elsif Play::clopts.nil? or Play::clopts[:tmux]
|
27
29
|
%x[tmux list-panes #{@window} -F '\#{pane_tty},']
|
28
30
|
.inspect
|
29
31
|
.chop
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ansible-powerplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Mitchell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|