mirror of
https://github.com/puppetlabs/vmpooler-provider-gce.git
synced 2026-01-25 19:18:40 -05:00
Adding the cloud DNS API library and related methods
we setup DNS when a VM is created and tear it down when a VM is deleted the DNS zone should exist already and is referenced by a provider setting the dns zone is also set in order to use it for vm_ready? instead of the global domain instances have a label that identifies which project they belong to, so it can be used for FW rules
This commit is contained in:
parent
f6ec318b2d
commit
daa55fe5b8
9 changed files with 167 additions and 12 deletions
11
README.md
11
README.md
|
|
@ -14,6 +14,10 @@ GCE authorization is handled via a service account (or personal account) private
|
|||
|
||||
1. GOOGLE_APPLICATION_CREDENTIALS environment variable eg GOOGLE_APPLICATION_CREDENTIALS=/my/home/directory/my_account_key.json
|
||||
|
||||
### DNS
|
||||
DNS is integrated via Google's CloudDNS service. To enable a CloudDNS zone name must be provided in the config (see the example yaml file dns_zone_resource_name)
|
||||
|
||||
An A record is then created in that zone upon instance creation with the VM's internal IP, and deleted when the instance is destroyed.
|
||||
|
||||
### Labels
|
||||
This provider adds labels to all resources that are managed
|
||||
|
|
@ -27,6 +31,13 @@ This provider adds labels to all resources that are managed
|
|||
Also see the usage of vmpooler's optional purge_unconfigured_resources, which is used to delete any resource found that
|
||||
do not have the pool label, and can be configured to allow a specific list of unconfigured pool names.
|
||||
|
||||
### Pre-requisite
|
||||
|
||||
- A service account needs to be created and a private json key generated (see usage section)
|
||||
- The service account needs given permissions to the project (broad permissions would be compute v1 admin and dns admin). A yaml file is provided that lists the least-privilege permissions needed
|
||||
- if using DNS, a DNS zone needs to be created
|
||||
|
||||
|
||||
## License
|
||||
|
||||
vmpooler-provider-gce is distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html). See the [LICENSE](LICENSE) file for more details.
|
||||
Loading…
Add table
Add a link
Reference in a new issue