librarian-ansible 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/librarian/ansible/manifest_reader.rb +3 -1
- data/lib/librarian/ansible/source/local.rb +8 -2
- data/lib/librarian/ansible/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a06fe9e351797518a44310efdb5dcec17ed2509b
|
4
|
+
data.tar.gz: 8fea7c4a43bbc4aa9ebdbf0e2637fb87350f989a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 275a33554b8d29f62fe50229531cecd0ccebb31cb96d9dbcb68ac40293ca829c75103203c47df0ed9d1b1ef01c8c38d8359e93b8fdc77be8ea9ed22a18a14c34
|
7
|
+
data.tar.gz: d02f395a63d885078910dadee63a8f8d6afee10fb8c0cb2257236f4533d82fed4c7fca14b8cb35893bf7cc1e9263502b2ed4fcb3d5924bb1d4fce0e523425ea2
|
data/README.md
CHANGED
@@ -107,6 +107,15 @@ And update your Ansiblefile accordingly:
|
|
107
107
|
role "kunik.deploy-upstart-scripts", "1.0.0"
|
108
108
|
```
|
109
109
|
|
110
|
+
Specifying git branch
|
111
|
+
---------------------
|
112
|
+
|
113
|
+
librarian-ansible support git branch checkout, using the `ref` attribute:
|
114
|
+
|
115
|
+
```ruby
|
116
|
+
role "pgolm.ansible-playbook-monit", git: "git@github.com:pgolm/ansible-playbook-monit.git", ref: "origin/develop"
|
117
|
+
```
|
118
|
+
|
110
119
|
### Configuration
|
111
120
|
|
112
121
|
Configuration comes from three sources with the following highest-to-lowest
|
@@ -15,7 +15,9 @@ module Librarian
|
|
15
15
|
def read_manifest(name, manifest_path)
|
16
16
|
if [".yml", ".yaml"].include?(manifest_path.extname)
|
17
17
|
YAML.load(binread(manifest_path)).tap do |m|
|
18
|
-
m
|
18
|
+
if m.is_a?(Hash)
|
19
|
+
m["dependencies"] = []
|
20
|
+
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
@@ -26,11 +26,17 @@ module Librarian
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def fetch_version(name, extra)
|
29
|
-
manifest_data(name)
|
29
|
+
if manifest_data(name).is_a?(Hash) and manifest_data(name).has_key?("version")
|
30
|
+
manifest_data(name)["version"]
|
31
|
+
else
|
32
|
+
"0.0.0"
|
33
|
+
end
|
30
34
|
end
|
31
35
|
|
32
36
|
def fetch_dependencies(name, version, extra)
|
33
|
-
manifest_data(name)
|
37
|
+
if manifest_data(name).is_a?(Hash) and manifest_data(name).has_key?("dependencies")
|
38
|
+
manifest_data(name)["dependencies"]
|
39
|
+
end
|
34
40
|
end
|
35
41
|
|
36
42
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librarian-ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Coe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: librarian
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.6.6
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: A Bundler for your Ansible roles.
|