Skip to content

Commit

Permalink
first try!
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Mar 4, 2020
1 parent e694f56 commit 20db324
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 4 deletions.
4 changes: 0 additions & 4 deletions products/compute/ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
96 changes: 96 additions & 0 deletions products/compute/ansible_version_added.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
:version_added: '2.10'
:RegionDisk:
:version_added: '2.8'
:RegionHealthCheck:
:version_added: '2.10'
:Route:
:version_added: '2.7'
:Router:
Expand Down Expand Up @@ -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:
Expand Down
29 changes: 29 additions & 0 deletions products/compute/examples/ansible/region_health_check.yaml
Original file line number Diff line number Diff line change
@@ -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] %>

0 comments on commit 20db324

Please sign in to comment.