salt-api 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbfb634bb2a144b4d0e446dace362ea130d1365b
4
- data.tar.gz: 37985df57334e408f9f8102ccf84acec4e211a69
3
+ metadata.gz: 295222261bd3f155d1557197be73c76185ae10a0
4
+ data.tar.gz: f95b391cb805461a6075304af2688fbe1238643f
5
5
  SHA512:
6
- metadata.gz: 9a7aea2c8dd879de024474a936b6d3cae65bb4206d85af4caa582b0728859ca6f29932213bcb50b3c991c49953570e34642975d8bf1ced438c29b00a864b09e9
7
- data.tar.gz: 5d9b763600de02900dd34c5d00bfae6a834f6635647b70ca6671ce509ea79988687c1c29a793e014e01a60097340da3a87f414d5882c7d0a71c9ca793c2a12cc
6
+ metadata.gz: 0310d924e740f482cc36b24794d9f90a6bdc6385a67002d128d34bc64a1bf43372fcb12d08d25b2ebcdfb5ab6ba8437deea08ba71f1163d47d0f16597a3c6f8e
7
+ data.tar.gz: 115f856688124636dfa1ee650651682af1331bf5106da6a23072da5e8031eb4a1e9834f93a2f36d5daff835fb5fb1656350a606ef4739da64efacbe28ed6b865
data/README.md CHANGED
@@ -29,6 +29,7 @@ Salt::Api.configure do |config|
29
29
  config.hostname = "salt.example.com"
30
30
  config.username = "user1"
31
31
  config.password = "password"
32
+ config.eauth = "ldap"
32
33
  end
33
34
 
34
35
  puts Salt::Api.minions
@@ -16,7 +16,7 @@ module Salt
16
16
  def login
17
17
  req = Net::HTTP::Post.new("/login")
18
18
  req.set_form_data({
19
- 'eauth' => 'pam',
19
+ 'eauth' => eauth,
20
20
  'username' => username,
21
21
  'password' => password
22
22
  })
@@ -6,6 +6,7 @@ module Salt
6
6
  :username,
7
7
  :password,
8
8
  :timeout,
9
+ :eauth,
9
10
  :port,
10
11
  :use_ssl
11
12
  ].freeze
@@ -16,6 +17,7 @@ module Salt
16
17
  @hostname = "salt"
17
18
  @port = 8000
18
19
  @use_ssl = true
20
+ @eauth = 'pam'
19
21
  end
20
22
 
21
23
  def configure
@@ -1,5 +1,5 @@
1
1
  module Salt
2
2
  module Api
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salt-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua B. Bussdieker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-26 00:00:00.000000000 Z
11
+ date: 2016-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler