Skip to content
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

Generate SslCertificate in Terraform. #445

Merged

Conversation

rileykarson
Copy link
Member

Generate SslCertificate in Terraform.


[all]

Minor schema/docs update to SslCertificate.

[terraform]

Autogenerate google_compute_ssl_certificate.

[puppet]

[puppet-bigquery]

[puppet-compute]

[puppet-container]

[puppet-dns]

[puppet-logging]

[puppet-pubsub]

[puppet-resourcemanager]

[puppet-sql]

[puppet-storage]

[chef]

[chef-compute]

[chef-container]

[chef-dns]

[chef-logging]

[chef-spanner]

[chef-sql]

[chef-storage]

[ansible]

@modular-magician
Copy link
Collaborator

I am a robot that works on MagicModules PRs!

I built this PR into one or more PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: hashicorp/terraform-provider-google#2015
depends: modular-magician/ansible#89
depends: GoogleCloudPlatform/puppet-google#8
depends: GoogleCloudPlatform/puppet-google-compute#92
depends: GoogleCloudPlatform/chef-google#9
depends: GoogleCloudPlatform/chef-google-compute#61

@@ -0,0 +1,29 @@
<% if false # the license inside this if block pertains to this file -%>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things! One: you can just use

<%#
Copyright 2017 ...
...
#%>

I know all the existing code does it this way but it's making me bonkers. :)

Two: this is really "name or name prefix", right? Might be worth naming it "templates/terraform/custom_expand/name_or_name_prefix.go.erb" instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,17 @@
"name_prefix": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thumbs up. Problem - consider using name ssl_certificate instead of sslCertificate.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

testAccCheckComputeSslCertificateExists(
"google_compute_ssl_certificate.foobar"),
),
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd throw an import on all three tests, ignoring fields where necessary (like name_prefix on the name_prefix one).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@modular-magician
Copy link
Collaborator

I am (still) a robot that works on MagicModules PRs!

I just wanted to let you know that your changes (as of commit 8cefe69) have been included in your existing downstream PRs.

Copy link
Contributor

@nat-henderson nat-henderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoot, sorry, thought I'd marked LGTM!

Tracked submodules are build/puppet/_bundle build/puppet/auth build/puppet/bigquery build/puppet/compute build/puppet/sql build/puppet/storage build/puppet/spanner build/puppet/container build/puppet/dns build/puppet/pubsub build/puppet/resourcemanager build/chef/_bundle build/chef/auth build/chef/compute build/chef/sql build/chef/storage build/chef/spanner build/chef/container build/chef/dns build/chef/iam build/terraform build/ansible.
@modular-magician modular-magician merged commit e9e59ad into GoogleCloudPlatform:master Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants