Discover Packages
github.com/xlucas/ansible-openstack-inventory
pkg
model
package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Sep 14, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Clouds struct {
Providers []*Provider `hcl:"provider"`
}
BuildInventory constructs the ansible inventory and returns it as raw json
bytes.
Refresh updates the Clouds structure with information retrieved from cloud
providers.
type Identity struct {
DomainName string `hcl:"domain"`
Endpoint string `hcl:"endpoint"`
Username string `hcl:"username"`
Password string `hcl:"password"`
ProjectID string `hcl:"project_id"`
TenantID string `hcl:"tenant_id"`
Version int `hcl:"version"`
}
type Meta struct {
User string `hcl:"user"`
Groups string `hcl:"groups"`
HostVarsPrefix string `hcl:"hostvars_prefix"`
Env string `hcl:"environment"`
}
type Options struct {
FallBackUser string `hcl:"fallback_user"`
Meta Meta `hcl:"meta"`
}
type Provider struct {
Identity Identity `hcl:"identity"`
Options Options `hcl:"options"`
Name string `hcl:",key"`
RegionGroups []*RegionGroup `hcl:"regions"`
}
type Region struct {
Label string `hcl:",key"`
Name string `hcl:"name"`
}
type RegionGroup struct {
Name string `hcl:",key"`
Regions []*Region `hcl:"region"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.