-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Ansible Catchup #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rambleraptor
merged 16 commits into
GoogleCloudPlatform:master
from
rambleraptor:catchup
May 4, 2018
Merged
Ansible Catchup #145
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
990353f
Ansible: Input: true properties should use module values
rambleraptor a4a4e9e
Adding GcpRequestException back and fetch_wrapped_resource change
rambleraptor f32b6e5
Ansible: Instance
rambleraptor 01e3f15
Ansible: Compute Instance Template
rambleraptor c7356d8
Ansible: Compute Target HTTPS Proxy
rambleraptor d6e19ff
Ansible: Compute Instance Group Manager
rambleraptor 8342cc7
Ansible: Compute Target SSL Proxy
rambleraptor 0b57656
Ansible: Compute Firewall
rambleraptor c4fc4ba
Ansible: Adding HTTPHealthCheck alias for checkIntervalSec
rambleraptor 9f0844d
Ansible: Selflink + collection for resourcerefs
rambleraptor 4d3e886
Ansible: Outputting description fields using a YAML dumper
rambleraptor 9fab127
Ansible: Resource to request ignore input=false parameters
rambleraptor 0eba2b0
DNS - changing quota to use nested property
rambleraptor a27c7b5
Override support for Ansible
rambleraptor 04cb1ac
Changing Ansible to point to our fork
rambleraptor f7f68b6
Changing Ansible commit
rambleraptor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ansible
updated
3184 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Copyright 2017 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_firewall | ||
| code: | | ||
| name: <%= ctx[:name] %> | ||
| allowed: | ||
| - ip_protocol: 'tcp' | ||
| ports: | ||
| - "22" | ||
| target_tags: | ||
| - test-ssh-server | ||
| - staging-ssh-server | ||
| source_tags: | ||
| - test-ssh-clients | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| verifier: !ruby/object:Provider::Ansible::Verifier | ||
| command: | | ||
| gcloud compute firewall-rules describe | ||
| --project="{{ gcp_project}}" | ||
| "{{ resource_name }}" | ||
| failure: !ruby/object:Provider::Ansible::ComputeFailureCondition | ||
| region: global | ||
| type: firewalls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # Copyright 2017 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 | ||
| dependencies: | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_disk | ||
| register: disk | ||
| code: | | ||
| name: <%= dependency_name('disk', 'instance') %> | ||
| size_gb: 50 | ||
| source_image: 'projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts' | ||
| zone: us-central1-a | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_network | ||
| register: network | ||
| code: | | ||
| name: <%= dependency_name('network', 'instance') %> | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_address | ||
| register: address | ||
| code: | | ||
| name: <%= dependency_name('address', 'instance') %> | ||
| region: 'us-central1' | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| task: !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_instance | ||
| code: | | ||
| name: <%= ctx[:name] %> | ||
| machine_type: n1-standard-1 | ||
| disks: | ||
| - auto_delete: true | ||
| boot: true | ||
| source: "{{ disk }}" | ||
| metadata: | ||
| startup-script-url: 'gs:://graphite-playground/bootstrap.sh' | ||
| cost-center: '12345' | ||
| network_interfaces: | ||
| - network: "{{ network }}" | ||
| access_configs: | ||
| - name: 'External NAT' | ||
| nat_ip: "{{ address }}" | ||
| type: 'ONE_TO_ONE_NAT' | ||
| zone: 'us-central1-a' | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| verifier: !ruby/object:Provider::Ansible::Verifier | ||
| command: | | ||
| gcloud compute instances describe | ||
| --project="{{ gcp_project }}" | ||
| --zone="us-central1-a" | ||
| "{{ resource_name }}" | ||
| failure: !ruby/object:Provider::Ansible::ComputeFailureCondition | ||
| region: zones/us-central1-a | ||
| type: instances |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
products/compute/examples/ansible/instance_group_manager.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # Copyright 2017 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 | ||
| dependencies: | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_network | ||
| register: network | ||
| code: | | ||
| name: <%= dependency_name('network', 'instanceTemplate') %> | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_address | ||
| register: address | ||
| code: | | ||
| name: <%= dependency_name('address', 'instanceTemplate') %> | ||
| region: 'us-west1' | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_instance_template | ||
| register: instancetemplate | ||
| code: | | ||
| name: <%= ctx[:name] %> | ||
| properties: | ||
| disks: | ||
| - auto_delete: true | ||
| boot: true | ||
| initialize_params: | ||
| source_image: 'projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts' | ||
| machine_type: n1-standard-1 | ||
| network_interfaces: | ||
| - network: "{{ network }}" | ||
| access_configs: | ||
| - name: 'test-config' | ||
| type: 'ONE_TO_ONE_NAT' | ||
| nat_ip: "{{ address }}" | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| task: !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_instance_group_manager | ||
| code: | | ||
| name: <%= ctx[:name] %> | ||
| base_instance_name: 'test1-child' | ||
| instance_template: "{{ instancetemplate }}" | ||
| target_size: 3 | ||
| zone: 'us-west1-a' | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| verifier: !ruby/object:Provider::Ansible::Verifier | ||
| command: | | ||
| gcloud compute instance-groups managed describe | ||
| --zone=us-west1-a | ||
| --project="{{ gcp_project}}" | ||
| "{{ resource_name }}" | ||
| failure: !ruby/object:Provider::Ansible::ComputeFailureCondition | ||
| region: zones/us-west1-a | ||
| type: instanceGroupManagers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Copyright 2017 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 | ||
| dependencies: | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_network | ||
| register: network | ||
| code: | | ||
| name: <%= dependency_name('network', 'instanceTemplate') %> | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| - !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_address | ||
| register: address | ||
| code: | | ||
| name: <%= dependency_name('address', 'instanceTemplate') %> | ||
| region: 'us-west1' | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| task: !ruby/object:Provider::Ansible::Task | ||
| name: gcp_compute_instance_template | ||
| code: | | ||
| name: <%= ctx[:name] %> | ||
| properties: | ||
| disks: | ||
| - auto_delete: true | ||
| boot: true | ||
| initialize_params: | ||
| source_image: 'projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts' | ||
| machine_type: n1-standard-1 | ||
| network_interfaces: | ||
| - network: "{{ network }}" | ||
| access_configs: | ||
| - name: 'test-config' | ||
| type: 'ONE_TO_ONE_NAT' | ||
| nat_ip: "{{ address }}" | ||
| project: <%= ctx[:project] %> | ||
| auth_kind: <%= ctx[:auth_kind] %> | ||
| service_account_file: <%= ctx[:service_account_file] %> | ||
| verifier: !ruby/object:Provider::Ansible::Verifier | ||
| command: | | ||
| gcloud compute instance-templates describe | ||
| --project="{{ gcp_project}}" | ||
| "{{ resource_name }}" | ||
| failure: !ruby/object:Provider::Ansible::ComputeFailureCondition | ||
| region: global | ||
| type: instanceTemplates |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix tabs/spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.