terraform-google-modules / terraform-google-startup-scripts

Provides a library of useful startup scripts to embed in VMs
https://registry.terraform.io/modules/terraform-google-modules/startup-scripts/google
Apache License 2.0
73 stars 36 forks source link

add stdlib::setup_sudoers #21

Closed emalloy closed 5 years ago

emalloy commented 5 years ago

proposal drop #19 in favor of this -

setup_sudoers seeks to find a sudoers key with a comma,separated,value string list of users who will be added to sudoers on the linux box when called from startup_script_custom.

emalloy commented 5 years ago

failing due to;

   * google_compute_project_metadata.example: SetCommonInstanceMetadata failed: googleapi: Error 403: Required 'compute.projects.setCommonInstanceMetadata' permission for 'projects/ci-startup-scripts-v2', forbidden

will address tomorrow -

emalloy commented 5 years ago

cloud-foundation-infra tf code updated to give roles/compute.instanceAdmin.v1 role to the project sa

jeffmccune commented 5 years ago

We didn't use sudoers.d in the field because it isn't present on EL6.