qb 0.1.18 → 0.1.19
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.
- checksums.yaml +4 -4
- data/exe/qb +3 -0
- data/lib/qb/version.rb +1 -1
- data/roles/nrser.state_mate/defaults/main.yml +1 -1
- data/roles/nrser.state_mate/library/state +23 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 318feb9ed96e8436116afdc7ca6e9c0c36d3f856
|
4
|
+
data.tar.gz: 270846ed027667040daf691f77d63e657118b6a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8cac0e79f2255e01a801111e7bdc94aba54dddd5c553ae3be646e9348aa04df8dc0690a405193db4135c5f191a325ba033c937c45fa6e6ee6ed2dc81d378ba8
|
7
|
+
data.tar.gz: 5202c0c0154ac74d51d2322c514b9556b5c924370d4405d4db2ec45edbb61d4fd0e79900b9193f74379ee4513e583186806ed7fc24b56b78d89a465f7b3ee212
|
data/exe/qb
CHANGED
@@ -264,6 +264,9 @@ def main args
|
|
264
264
|
# roles_path: tmp_roles_path.to_s
|
265
265
|
# end
|
266
266
|
# end
|
267
|
+
|
268
|
+
# the `gem` ansible module doesn't work right when the bunlder env vars
|
269
|
+
# are set... so we need to clear them.
|
267
270
|
with_clean_env do
|
268
271
|
Cmds.stream! "ANSIBLE_ROLES_PATH=<%= roles_path %> ansible-playbook <%= playbook_path %>",
|
269
272
|
roles_path: ansible_roles_path,
|
data/lib/qb/version.rb
CHANGED
@@ -1,18 +1,35 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# WANT_JSON
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
|
5
|
+
# def in_bundle?
|
6
|
+
|
7
|
+
|
8
|
+
# conditionally setup bundler if we're in a bundle
|
9
|
+
#
|
10
|
+
# if
|
11
|
+
# require 'bundler/setup'
|
12
|
+
# rescue Exception => e
|
13
|
+
# end
|
9
14
|
|
10
15
|
require 'json'
|
11
16
|
require 'shellwords'
|
12
17
|
require 'pp'
|
13
18
|
require 'yaml'
|
14
19
|
|
15
|
-
|
20
|
+
# ugh... we need to clear the bundler env vars before running
|
21
|
+
# `ansible-playbook` because they break the `git` ansible modules.
|
22
|
+
#
|
23
|
+
# so, what we'll do is just try to require the first gem, and if it fails,
|
24
|
+
# require bundler and try again...
|
25
|
+
#
|
26
|
+
begin
|
27
|
+
require 'nrser'
|
28
|
+
rescue LoadError => e
|
29
|
+
require 'bundler/setup'
|
30
|
+
require 'nrser'
|
31
|
+
end
|
32
|
+
|
16
33
|
require 'state_mate'
|
17
34
|
require 'state_mate/adapters/yaml'
|
18
35
|
|