From 20db324e4b9104581c3419ba917c53c87748a492 Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Tue, 3 Mar 2020 17:42:57 -0800 Subject: [PATCH] first try! --- products/compute/ansible.yaml | 4 - products/compute/ansible_version_added.yaml | 96 +++++++++++++++++++ .../examples/ansible/region_health_check.yaml | 29 ++++++ 3 files changed, 125 insertions(+), 4 deletions(-) create mode 100644 products/compute/examples/ansible/region_health_check.yaml diff --git a/products/compute/ansible.yaml b/products/compute/ansible.yaml index 2a2110a007d8..8bcf94c1e84d 100644 --- a/products/compute/ansible.yaml +++ b/products/compute/ansible.yaml @@ -39,8 +39,6 @@ datasources: !ruby/object:Overrides::ResourceOverrides exclude: true RegionDiskType: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true - RegionHealthCheck: !ruby/object:Overrides::Ansible::ResourceOverride - exclude: true RegionInstanceGroupManager: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true RegionTargetHttpProxy: !ruby/object:Overrides::Ansible::ResourceOverride @@ -327,8 +325,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides exclude: true RegionDiskType: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true - RegionHealthCheck: !ruby/object:Overrides::Ansible::ResourceOverride - exclude: true RegionInstanceGroupManager: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true RegionTargetHttpProxy: !ruby/object:Overrides::Ansible::ResourceOverride diff --git a/products/compute/ansible_version_added.yaml b/products/compute/ansible_version_added.yaml index 2a7305efd116..275ed565f4bc 100644 --- a/products/compute/ansible_version_added.yaml +++ b/products/compute/ansible_version_added.yaml @@ -48,6 +48,8 @@ :version_added: '2.10' :RegionDisk: :version_added: '2.8' + :RegionHealthCheck: + :version_added: '2.10' :Route: :version_added: '2.7' :Router: @@ -1009,6 +1011,100 @@ :version_added: '2.8' :kmsKeyName: :version_added: '2.8' + :RegionHealthCheck: + :version_added: '2.10' + :checkIntervalSec: + :version_added: '2.10' + :description: + :version_added: '2.10' + :healthyThreshold: + :version_added: '2.10' + :name: + :version_added: '2.10' + :unhealthyThreshold: + :version_added: '2.10' + :timeoutSec: + :version_added: '2.10' + :type: + :version_added: '2.10' + :httpHealthCheck: + :version_added: '2.10' + :host: + :version_added: '2.10' + :requestPath: + :version_added: '2.10' + :response: + :version_added: '2.10' + :port: + :version_added: '2.10' + :portName: + :version_added: '2.10' + :proxyHeader: + :version_added: '2.10' + :portSpecification: + :version_added: '2.10' + :httpsHealthCheck: + :version_added: '2.10' + :host: + :version_added: '2.10' + :requestPath: + :version_added: '2.10' + :response: + :version_added: '2.10' + :port: + :version_added: '2.10' + :portName: + :version_added: '2.10' + :proxyHeader: + :version_added: '2.10' + :portSpecification: + :version_added: '2.10' + :tcpHealthCheck: + :version_added: '2.10' + :request: + :version_added: '2.10' + :response: + :version_added: '2.10' + :port: + :version_added: '2.10' + :portName: + :version_added: '2.10' + :proxyHeader: + :version_added: '2.10' + :portSpecification: + :version_added: '2.10' + :sslHealthCheck: + :version_added: '2.10' + :request: + :version_added: '2.10' + :response: + :version_added: '2.10' + :port: + :version_added: '2.10' + :portName: + :version_added: '2.10' + :proxyHeader: + :version_added: '2.10' + :portSpecification: + :version_added: '2.10' + :http2HealthCheck: + :version_added: '2.10' + :host: + :version_added: '2.10' + :requestPath: + :version_added: '2.10' + :response: + :version_added: '2.10' + :port: + :version_added: '2.10' + :portName: + :version_added: '2.10' + :proxyHeader: + :version_added: '2.10' + :portSpecification: + :version_added: '2.10' + :region: + :version_added: '2.10' :Route: :version_added: '2.6' :destRange: diff --git a/products/compute/examples/ansible/region_health_check.yaml b/products/compute/examples/ansible/region_health_check.yaml new file mode 100644 index 000000000000..490b12431767 --- /dev/null +++ b/products/compute/examples/ansible/region_health_check.yaml @@ -0,0 +1,29 @@ +# Copyright 2018 Google Inc. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +--- !ruby/object:Provider::Ansible::Example +task: !ruby/object:Provider::Ansible::Task + name: gcp_compute_region_health_check + code: + name: <%= ctx[:name] %> + type: TCP + tcp_health_check: + port_name: service-health + request: ping + response: pong + healthy_threshold: 10 + timeout_sec: 2 + unhealthy_threshold: 5 + region: 'us-central1' + project: <%= ctx[:project] %> + auth_kind: <%= ctx[:auth_kind] %> + service_account_file: <%= ctx[:service_account_file] %>