zinv 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -1
  3. data/lib/zinv/version.rb +1 -1
  4. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86314f00d9a9972624e43251f0229d59db862cfc
4
- data.tar.gz: 290eeae1e53e7aaa8b15c670153fc5cc909969d9
3
+ metadata.gz: 4c535421a13c6d4073b24e1ac9fe232596f4a981
4
+ data.tar.gz: 300830bd15285c4bb3c4c87ebb270c340f3c82ea
5
5
  SHA512:
6
- metadata.gz: 313efc1d49516bf8bf32d31c2c733d60b80ca2220037e832e16f000a4e5c17c3c70af0cabd3f3f3a85c4da8e5efcfed894eaf903263e29450021998eea9a4d5e
7
- data.tar.gz: aba6e685e120f0e5b05d1ef09f1b86a74329fc204aad85c31ea034e0d29b60a6a532c720d73867980d18a41e9d6da8b19cd2a3aa116f373994b267fdf142f91b
6
+ metadata.gz: 1c82d0c48a8dc7b6c63f2df23707b8573186cf7521a3282483e355d32bc460a26c74efa6f6d69ddbf679b9b9e9415bc639f88edb1dc7c4cda4f408f419085929
7
+ data.tar.gz: f84f6f96870327cad8e21a2b8810d3c2dd8577576f688868599bc2f706318818f07476b71b48356c9ecd311940e9c07268e8046b9c540674e190ee7e39819c3f
data/README.md CHANGED
@@ -44,6 +44,20 @@ You can insert hosts into the inventory "manually" by setting the following:
44
44
  In all cases, zinv.rb presumes that the host names it's getting from zabbix (or you, in the case of ZINV_ADD_HOSTS) are resolvable by the host you're running ansible on. Which is to say if you have a host called myhost1, you should be able to ping myhost1 on the ansible machine. The implication is that you've either defined all your host names as fqdns in Zabbix, or you've set up your resolver search list properly.
45
45
 
46
46
 
47
+ zinv overloads a couple of the fields in a host definition:
48
+
49
+ You can place the string DONOTMANAGE anywhere in a host's Description field to force zinv to ignore it. If zinv finds DONOTMANAGE in the description, it omits that host from the inventory altogether.
50
+
51
+ You can define host vars in the host's inventory's Notes field. Put yaml in it like:
52
+
53
+ ```yaml
54
+ ---
55
+ ereiamjh: The ghost in the machine
56
+ kilroy: was here
57
+ ```
58
+
59
+ Variables defined in this way will be available to to ansible when it processes the host in question.
60
+
47
61
  ## Development
48
62
 
49
63
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -52,7 +66,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
52
66
 
53
67
  ## Contributing
54
68
 
55
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/zinv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
69
+ Bug reports and pull requests are welcome on GitHub at https://github.com/svdasein/zinv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
56
70
 
57
71
 
58
72
  ## License
@@ -1,3 +1,3 @@
1
1
  module Zinv
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zinv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Parker
@@ -121,9 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.5.1
124
+ rubygems_version: 2.6.11
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Ansible dynamic inventory script for hosts monitored by zabbix
128
128
  test_files: []
129
- has_rdoc: