mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Fixed review comments
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
487fb5586c
commit
89610eb569
3 changed files with 22 additions and 3 deletions
2
Gemfile
2
Gemfile
|
@ -20,8 +20,6 @@ end
|
|||
# but our runtime dep is still 3.9+
|
||||
gem "rspec", ">= 3.10"
|
||||
|
||||
gem "mongo"
|
||||
|
||||
def probably_x86?
|
||||
# We don't currently build on ARM windows, so assume x86 there
|
||||
return true if RUBY_PLATFORM =~ /windows|mswin|msys|mingw|cygwin/
|
||||
|
|
|
@ -49,12 +49,32 @@ Defaults to `27017`
|
|||
|
||||
#### `auth_mech`
|
||||
|
||||
Defaults to `:scram`
|
||||
Defaults to `:scram`. The available opitions are `:scram256`, `:mongodb_x509`, `:aws`. Refer this [docs](https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-authentication/) for more understanding about these options.
|
||||
|
||||
#### `auth_source`
|
||||
|
||||
Defaults to given database name. `database` name is mandatory.
|
||||
|
||||
#### `ssl`
|
||||
|
||||
Defaults to false. Set `true ` to use ssl transport. For ssl realted options also refer to this [docs](https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-authentication/#client-certificate-x-509) for more understanding.
|
||||
|
||||
#### 'ssl_cert'
|
||||
|
||||
Path to ssl certificate file.
|
||||
|
||||
#### `ssl_ca_cert`
|
||||
|
||||
Path to ssl ca cert file.
|
||||
|
||||
#### `ssl_key`
|
||||
|
||||
Path to ssl key file.
|
||||
|
||||
#### `auth_mech_properties`
|
||||
|
||||
This accepts hash of authetication mechanism properties. This option is generally used with `aws` auth mechanism. Example of this is given in this docs [here](https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-authentication/#aws)
|
||||
|
||||
### MongodDB query reference docs
|
||||
|
||||
This resource is using mongo ruby driver to fetch the data.
|
||||
|
|
|
@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
|
|||
spec.add_dependency "train-habitat", "~> 0.1"
|
||||
spec.add_dependency "train-aws", "~> 0.1"
|
||||
spec.add_dependency "train-winrm", "~> 0.2"
|
||||
spec.add_dependency "mongo"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue