▹ Toggle output
\n",
"\n",
"\n",
"\n",
"alias tfap='time terraform apply --auto-approve=true'\n",
"Acquiring state lock. This may take a few moments...\n",
"module.gitlab_ref_arch_gcp.data.google_compute_network.gitlab_network[0]: Reading...\n",
"module.gitlab_ref_arch_gcp.data.google_compute_subnetwork.gitlab_subnet[0]: Reading...\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].data.google_client_openid_userinfo.current_userinfo[0]: Reading...\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].data.google_client_openid_userinfo.current_userinfo[0]: Read complete after 1s [id=gitlab-mjl-mac@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.data.google_compute_network.gitlab_network[0]: Read complete after 1s [id=projects/mlockhart-56581c10/global/networks/default]\n",
"module.gitlab_ref_arch_gcp.data.google_compute_subnetwork.gitlab_subnet[0]: Read complete after 1s [id=projects/mlockhart-56581c10/regions/us-west1/subnetworks/default]\n",
"\n",
"Terraform used the selected providers to generate the following execution plan.\n",
"Resource actions are indicated with the following symbols:\n",
" + create\n",
"\n",
"Terraform will perform the following actions:\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_http_https_access[0] will be created\n",
" + resource \"google_compute_firewall\" \"gitlab_http_https_access\" {\n",
" + creation_timestamp = (known after apply)\n",
" + description = \"Enable HTTP / HTTPS access for GitLab environment 'mjl5658-gl8-1k-v170401' on the default network\"\n",
" + destination_ranges = (known after apply)\n",
" + direction = (known after apply)\n",
" + enable_logging = (known after apply)\n",
" + id = (known after apply)\n",
" + name = \"mjl5658-gl8-1k-v170401-http-https-access\"\n",
" + network = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/global/networks/default\"\n",
" + priority = 1000\n",
" + project = \"mlockhart-56581c10\"\n",
" + self_link = (known after apply)\n",
" + source_ranges = [\n",
" + \"0.0.0.0/0\",\n",
" ]\n",
" + target_tags = [\n",
" + \"mjl5658-gl8-1k-v170401-web\",\n",
" ]\n",
"\n",
" + allow {\n",
" + ports = [\n",
" + \"80\",\n",
" + \"443\",\n",
" ]\n",
" + protocol = \"tcp\"\n",
" }\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_icmp_access[0] will be created\n",
" + resource \"google_compute_firewall\" \"gitlab_icmp_access\" {\n",
" + creation_timestamp = (known after apply)\n",
" + description = \"Enable ICMP access for GitLab environment 'mjl5658-gl8-1k-v170401' on the default network\"\n",
" + destination_ranges = (known after apply)\n",
" + direction = (known after apply)\n",
" + enable_logging = (known after apply)\n",
" + id = (known after apply)\n",
" + name = \"mjl5658-gl8-1k-v170401-icmp-access\"\n",
" + network = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/global/networks/default\"\n",
" + priority = 1000\n",
" + project = \"mlockhart-56581c10\"\n",
" + self_link = (known after apply)\n",
" + source_ranges = [\n",
" + \"0.0.0.0/0\",\n",
" ]\n",
" + target_tags = [\n",
" + \"mjl5658-gl8-1k-v170401\",\n",
" ]\n",
"\n",
" + allow {\n",
" + ports = []\n",
" + protocol = \"icmp\"\n",
" }\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_vm_ssh_access[0] will be created\n",
" + resource \"google_compute_firewall\" \"gitlab_vm_ssh_access\" {\n",
" + creation_timestamp = (known after apply)\n",
" + description = \"Enable SSH access to VMs for GitLab environment 'mjl5658-gl8-1k-v170401' on the default network\"\n",
" + destination_ranges = (known after apply)\n",
" + direction = (known after apply)\n",
" + enable_logging = (known after apply)\n",
" + id = (known after apply)\n",
" + name = \"mjl5658-gl8-1k-v170401-vm-ssh-access\"\n",
" + network = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/global/networks/default\"\n",
" + priority = 1000\n",
" + project = \"mlockhart-56581c10\"\n",
" + self_link = (known after apply)\n",
" + source_ranges = [\n",
" + \"0.0.0.0/0\",\n",
" ]\n",
" + target_tags = [\n",
" + \"mjl5658-gl8-1k-v170401\",\n",
" ]\n",
"\n",
" + allow {\n",
" + ports = [\n",
" + \"22\",\n",
" ]\n",
" + protocol = \"tcp\"\n",
" }\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"artifacts\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-artifacts\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"backups\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-backups\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"ci-secure-files\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-ci-secure-files\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"dependency-proxy\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-dependency-proxy\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"lfs\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-lfs\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"mr-diffs\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-mr-diffs\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"packages\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-packages\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"pages\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-pages\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"registry\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-registry\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"terraform-state\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-terraform-state\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"uploads\"] will be created\n",
" + resource \"google_storage_bucket\" \"gitlab_object_storage_buckets\" {\n",
" + effective_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + force_destroy = true\n",
" + id = (known after apply)\n",
" + location = \"US\"\n",
" + name = \"mjl5658-gl8-1k-v170401-uploads\"\n",
" + project = (known after apply)\n",
" + project_number = (known after apply)\n",
" + public_access_prevention = \"enforced\"\n",
" + rpo = (known after apply)\n",
" + self_link = (known after apply)\n",
" + storage_class = \"STANDARD\"\n",
" + terraform_labels = {\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + uniform_bucket_level_access = true\n",
" + url = (known after apply)\n",
"\n",
" + soft_delete_policy (known after apply)\n",
"\n",
" + versioning {\n",
" + enabled = false\n",
" }\n",
"\n",
" + website (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"artifacts\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-artifacts\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"backups\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-backups\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"ci-secure-files\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-ci-secure-files\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"dependency-proxy\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-dependency-proxy\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"lfs\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-lfs\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"mr-diffs\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-mr-diffs\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"packages\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-packages\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"pages\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-pages\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"registry\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-registry\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"terraform-state\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-terraform-state\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"uploads\"] will be created\n",
" + resource \"google_storage_bucket_iam_member\" \"gitlab_rails_object_storage_buckets_member\" {\n",
" + bucket = \"mjl5658-gl8-1k-v170401-uploads\"\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/storage.objectAdmin\"\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.module.gitlab_rails.google_compute_instance.gitlab[0] will be created\n",
" + resource \"google_compute_instance\" \"gitlab\" {\n",
" + allow_stopping_for_update = true\n",
" + can_ip_forward = false\n",
" + cpu_platform = (known after apply)\n",
" + creation_timestamp = (known after apply)\n",
" + current_status = (known after apply)\n",
" + deletion_protection = false\n",
" + effective_labels = {\n",
" + \"gitlab_node_level\" = \"gitlab-rails-primary\"\n",
" + \"gitlab_node_prefix\" = \"mjl5658-gl8-1k-v170401\"\n",
" + \"gitlab_node_type\" = \"gitlab-rails\"\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + id = (known after apply)\n",
" + instance_id = (known after apply)\n",
" + label_fingerprint = (known after apply)\n",
" + labels = {\n",
" + \"gitlab_node_level\" = \"gitlab-rails-primary\"\n",
" + \"gitlab_node_prefix\" = \"mjl5658-gl8-1k-v170401\"\n",
" + \"gitlab_node_type\" = \"gitlab-rails\"\n",
" }\n",
" + machine_type = \"e2-standard-2\"\n",
" + metadata = {\n",
" + \"enable-oslogin\" = \"TRUE\"\n",
" }\n",
" + metadata_fingerprint = (known after apply)\n",
" + min_cpu_platform = (known after apply)\n",
" + name = \"mjl5658-gl8-1k-v170401-gitlab-rails-1\"\n",
" + project = \"mlockhart-56581c10\"\n",
" + self_link = (known after apply)\n",
" + tags = [\n",
" + \"gitlab-rails\",\n",
" + \"mjl5658-gl8-1k-v170401\",\n",
" + \"mjl5658-gl8-1k-v170401-gitlab-rails\",\n",
" + \"mjl5658-gl8-1k-v170401-ssh\",\n",
" + \"mjl5658-gl8-1k-v170401-web\",\n",
" ]\n",
" + tags_fingerprint = (known after apply)\n",
" + terraform_labels = {\n",
" + \"gitlab_node_level\" = \"gitlab-rails-primary\"\n",
" + \"gitlab_node_prefix\" = \"mjl5658-gl8-1k-v170401\"\n",
" + \"gitlab_node_type\" = \"gitlab-rails\"\n",
" + \"goog-terraform-provisioned\" = \"true\"\n",
" }\n",
" + zone = \"us-west1-c\"\n",
"\n",
" + boot_disk {\n",
" + auto_delete = true\n",
" + device_name = (known after apply)\n",
" + disk_encryption_key_sha256 = (known after apply)\n",
" + guest_os_features = (known after apply)\n",
" + kms_key_self_link = (known after apply)\n",
" + mode = \"READ_WRITE\"\n",
" + source = (known after apply)\n",
"\n",
" + initialize_params {\n",
" + architecture = (known after apply)\n",
" + image = \"ubuntu-2404-lts-amd64\"\n",
" + labels = (known after apply)\n",
" + provisioned_iops = (known after apply)\n",
" + provisioned_throughput = (known after apply)\n",
" + resource_policies = (known after apply)\n",
" + size = 20\n",
" + snapshot = (known after apply)\n",
" + type = \"pd-standard\"\n",
" }\n",
" }\n",
"\n",
" + confidential_instance_config (known after apply)\n",
"\n",
" + guest_accelerator (known after apply)\n",
"\n",
" + network_interface {\n",
" + internal_ipv6_prefix_length = (known after apply)\n",
" + ipv6_access_type = (known after apply)\n",
" + ipv6_address = (known after apply)\n",
" + name = (known after apply)\n",
" + network = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/global/networks/default\"\n",
" + network_attachment = (known after apply)\n",
" + network_ip = (known after apply)\n",
" + stack_type = (known after apply)\n",
" + subnetwork = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/regions/us-west1/subnetworks/default\"\n",
" + subnetwork_project = (known after apply)\n",
"\n",
" + access_config {\n",
" + nat_ip = \"34.168.4.189\"\n",
" + network_tier = (known after apply)\n",
" }\n",
" }\n",
"\n",
" + reservation_affinity (known after apply)\n",
"\n",
" + scheduling (known after apply)\n",
"\n",
" + service_account {\n",
" + email = \"gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + scopes = [\n",
" + \"https://www.googleapis.com/auth/cloud-platform\",\n",
" ]\n",
" }\n",
"\n",
" + shielded_instance_config {\n",
" + enable_integrity_monitoring = true\n",
" + enable_secure_boot = false\n",
" + enable_vtpm = true\n",
" }\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account.gitlab[0] will be created\n",
" + resource \"google_service_account\" \"gitlab\" {\n",
" + account_id = \"gl8-gitlab-rails\"\n",
" + disabled = false\n",
" + display_name = \"mjl5658-gl8-1k-v170401-gitlab-rails\"\n",
" + email = \"gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + name = (known after apply)\n",
" + project = \"mlockhart-56581c10\"\n",
" + unique_id = (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account_iam_member.gitlab_user_members[\"serviceAccount:gitlab-mjl-mac@mlockhart-56581c10.iam.gserviceaccount.com\"] will be created\n",
" + resource \"google_service_account_iam_member\" \"gitlab_user_members\" {\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gitlab-mjl-mac@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/iam.serviceAccountUser\"\n",
" + service_account_id = (known after apply)\n",
" }\n",
"\n",
" # module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account_iam_member.object_storage_profile_token_creator[0] will be created\n",
" + resource \"google_service_account_iam_member\" \"object_storage_profile_token_creator\" {\n",
" + etag = (known after apply)\n",
" + id = (known after apply)\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + role = \"roles/iam.serviceAccountTokenCreator\"\n",
" + service_account_id = (known after apply)\n",
" }\n",
"\n",
"Plan: 29 to add, 0 to change, 0 to destroy.\n",
"\n",
"Changes to Outputs:\n",
" + gitlab_ref_arch_gcp = {\n",
" + cloud_sql_geo_tracking_postgres_connection = {\n",
" + cloud_sql_host = \"\"\n",
" + cloud_sql_name = \"\"\n",
" + cloud_sql_version = \"\"\n",
" }\n",
" + cloud_sql_postgres_connection = {\n",
" + cloud_sql_host = \"\"\n",
" + cloud_sql_name = \"\"\n",
" + cloud_sql_read_replica_hosts = []\n",
" + cloud_sql_version = \"\"\n",
" }\n",
" + cloud_sql_praefect_postgres_connection = {\n",
" + cloud_sql_host = \"\"\n",
" + cloud_sql_name = \"\"\n",
" + cloud_sql_version = \"\"\n",
" }\n",
" + consul = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + gitaly = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + gitlab_nfs = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + gitlab_rails = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = [\n",
" + \"34.168.4.189\",\n",
" ]\n",
" + internal_addresses = {\n",
" + \"mjl5658-gl8-1k-v170401-gitlab-rails-1.c.mlockhart-56581c10.internal\" = (known after apply)\n",
" }\n",
" + machine_names = [\n",
" + \"mjl5658-gl8-1k-v170401-gitlab-rails-1\",\n",
" ]\n",
" + self_links = [\n",
" + (known after apply),\n",
" ]\n",
" + service_account = {\n",
" + email = \"gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + member = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" + name = (known after apply)\n",
" + unique_id = (known after apply)\n",
" }\n",
" + zones = [\n",
" + \"us-west1-c\",\n",
" ]\n",
" }\n",
" + haproxy_external = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + haproxy_internal = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + kubernetes = {\n",
" + kubernetes_cluster_id = \"\"\n",
" + kubernetes_cluster_name = \"\"\n",
" + kubernetes_cluster_version = \"\"\n",
" + kubernetes_gitaly_node_group_service_account_email = \"\"\n",
" + kubernetes_gitaly_node_group_version = \"\"\n",
" + kubernetes_node_group_service_account_email = \"\"\n",
" + kubernetes_registry_service_account_email = \"\"\n",
" + kubernetes_sidekiq_node_group_service_account_email = \"\"\n",
" + kubernetes_sidekiq_node_group_version = \"\"\n",
" + kubernetes_sidekiq_service_account_email = \"\"\n",
" + kubernetes_supporting_node_group_service_account_email = \"\"\n",
" + kubernetes_supporting_node_group_version = \"\"\n",
" + kubernetes_toolbox_service_account_email = \"\"\n",
" + kubernetes_webservice_node_group_service_account_email = \"\"\n",
" + kubernetes_webservice_node_group_version = \"\"\n",
" + kubernetes_webservice_service_account_email = \"\"\n",
" }\n",
" + memorystore_redis_cache_connection = {\n",
" + memorystore_redis_cache_address = \"\"\n",
" + memorystore_redis_cache_port = \"\"\n",
" }\n",
" + memorystore_redis_connection = {\n",
" + memorystore_redis_address = \"\"\n",
" + memorystore_redis_port = \"\"\n",
" }\n",
" + memorystore_redis_persistent_connection = {\n",
" + memorystore_redis_persistent_address = \"\"\n",
" + memorystore_redis_persistent_port = \"\"\n",
" }\n",
" + monitor = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + network = {\n",
" + vpc_id = \"projects/mlockhart-56581c10/global/networks/default\"\n",
" + vpc_name = \"default\"\n",
" + vpc_self_link = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/global/networks/default\"\n",
" + vpc_subnet_cidr_block = \"10.138.0.0/20\"\n",
" + vpc_subnet_id = \"projects/mlockhart-56581c10/regions/us-west1/subnetworks/default\"\n",
" + vpc_subnet_name = \"default\"\n",
" + vpc_subnet_self_link = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/regions/us-west1/subnetworks/default\"\n",
" }\n",
" + opensearch_vm = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + pgbouncer = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + postgres = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + praefect = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + praefect_postgres = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + redis = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + redis_cache = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + redis_persistent = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" + sidekiq = {\n",
" + data_disk_device_names = []\n",
" + external_addresses = []\n",
" + internal_addresses = {}\n",
" + machine_names = []\n",
" + self_links = []\n",
" + service_account = null\n",
" + zones = []\n",
" }\n",
" }\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"artifacts\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"ci-secure-files\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account.gitlab[0]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"uploads\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"terraform-state\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"packages\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"lfs\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"dependency-proxy\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"mr-diffs\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"pages\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"lfs\"]: Creation complete after 4s [id=mjl5658-gl8-1k-v170401-lfs]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"backups\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"packages\"]: Creation complete after 4s [id=mjl5658-gl8-1k-v170401-packages]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"registry\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"dependency-proxy\"]: Creation complete after 5s [id=mjl5658-gl8-1k-v170401-dependency-proxy]\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_vm_ssh_access[0]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"artifacts\"]: Creation complete after 6s [id=mjl5658-gl8-1k-v170401-artifacts]\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_http_https_access[0]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"mr-diffs\"]: Creation complete after 6s [id=mjl5658-gl8-1k-v170401-mr-diffs]\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_icmp_access[0]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"backups\"]: Creation complete after 3s [id=mjl5658-gl8-1k-v170401-backups]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"terraform-state\"]: Creation complete after 7s [id=mjl5658-gl8-1k-v170401-terraform-state]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"uploads\"]: Creation complete after 7s [id=mjl5658-gl8-1k-v170401-uploads]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"ci-secure-files\"]: Creation complete after 7s [id=mjl5658-gl8-1k-v170401-ci-secure-files]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"pages\"]: Creation complete after 8s [id=mjl5658-gl8-1k-v170401-pages]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket.gitlab_object_storage_buckets[\"registry\"]: Creation complete after 4s [id=mjl5658-gl8-1k-v170401-registry]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account.gitlab[0]: Still creating... [10s elapsed]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account.gitlab[0]: Creation complete after 15s [id=projects/mlockhart-56581c10/serviceAccounts/gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account_iam_member.object_storage_profile_token_creator[0]: Creating...\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account_iam_member.gitlab_user_members[\"serviceAccount:gitlab-mjl-mac@mlockhart-56581c10.iam.gserviceaccount.com\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"ci-secure-files\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"backups\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"uploads\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"pages\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.google_compute_instance.gitlab[0]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_vm_ssh_access[0]: Still creating... [10s elapsed]\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_http_https_access[0]: Still creating... [10s elapsed]\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_icmp_access[0]: Still creating... [10s elapsed]\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_vm_ssh_access[0]: Creation complete after 13s [id=projects/mlockhart-56581c10/global/firewalls/mjl5658-gl8-1k-v170401-vm-ssh-access]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"packages\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_http_https_access[0]: Creation complete after 12s [id=projects/mlockhart-56581c10/global/firewalls/mjl5658-gl8-1k-v170401-http-https-access]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"mr-diffs\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_compute_firewall.gitlab_icmp_access[0]: Creation complete after 12s [id=projects/mlockhart-56581c10/global/firewalls/mjl5658-gl8-1k-v170401-icmp-access]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"artifacts\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"backups\"]: Creation complete after 5s [id=b/mjl5658-gl8-1k-v170401-backups/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"pages\"]: Creation complete after 5s [id=b/mjl5658-gl8-1k-v170401-pages/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"terraform-state\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"dependency-proxy\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account_iam_member.object_storage_profile_token_creator[0]: Creation complete after 5s [id=projects/mlockhart-56581c10/serviceAccounts/gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com/roles/iam.serviceAccountTokenCreator/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"ci-secure-files\"]: Creation complete after 5s [id=b/mjl5658-gl8-1k-v170401-ci-secure-files/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"uploads\"]: Creation complete after 5s [id=b/mjl5658-gl8-1k-v170401-uploads/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"registry\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"lfs\"]: Creating...\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"packages\"]: Creation complete after 5s [id=b/mjl5658-gl8-1k-v170401-packages/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"mr-diffs\"]: Creation complete after 6s [id=b/mjl5658-gl8-1k-v170401-mr-diffs/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"artifacts\"]: Creation complete after 6s [id=b/mjl5658-gl8-1k-v170401-artifacts/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account_iam_member.gitlab_user_members[\"serviceAccount:gitlab-mjl-mac@mlockhart-56581c10.iam.gserviceaccount.com\"]: Still creating... [10s elapsed]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.google_compute_instance.gitlab[0]: Still creating... [10s elapsed]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"dependency-proxy\"]: Creation complete after 5s [id=b/mjl5658-gl8-1k-v170401-dependency-proxy/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.module.google_service_account[0].google_service_account_iam_member.gitlab_user_members[\"serviceAccount:gitlab-mjl-mac@mlockhart-56581c10.iam.gserviceaccount.com\"]: Creation complete after 10s [id=projects/mlockhart-56581c10/serviceAccounts/gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com/roles/iam.serviceAccountUser/serviceAccount:gitlab-mjl-mac@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"terraform-state\"]: Creation complete after 5s [id=b/mjl5658-gl8-1k-v170401-terraform-state/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"registry\"]: Creation complete after 6s [id=b/mjl5658-gl8-1k-v170401-registry/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.google_storage_bucket_iam_member.gitlab_rails_object_storage_buckets_member[\"lfs\"]: Creation complete after 6s [id=b/mjl5658-gl8-1k-v170401-lfs/roles/storage.objectAdmin/serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.google_compute_instance.gitlab[0]: Still creating... [20s elapsed]\n",
"module.gitlab_ref_arch_gcp.module.gitlab_rails.google_compute_instance.gitlab[0]: Creation complete after 23s [id=projects/mlockhart-56581c10/zones/us-west1-c/instances/mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"Apply complete! Resources: 29 added, 0 changed, 0 destroyed.\n",
"\n",
"Outputs:\n",
"\n",
"gitlab_ref_arch_gcp = {\n",
" \"cloud_sql_geo_tracking_postgres_connection\" = {\n",
" \"cloud_sql_host\" = \"\"\n",
" \"cloud_sql_name\" = \"\"\n",
" \"cloud_sql_version\" = \"\"\n",
" }\n",
" \"cloud_sql_postgres_connection\" = {\n",
" \"cloud_sql_host\" = \"\"\n",
" \"cloud_sql_name\" = \"\"\n",
" \"cloud_sql_read_replica_hosts\" = []\n",
" \"cloud_sql_version\" = \"\"\n",
" }\n",
" \"cloud_sql_praefect_postgres_connection\" = {\n",
" \"cloud_sql_host\" = \"\"\n",
" \"cloud_sql_name\" = \"\"\n",
" \"cloud_sql_version\" = \"\"\n",
" }\n",
" \"consul\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"gitaly\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"gitlab_nfs\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"gitlab_rails\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = tolist([\n",
" \"34.168.4.189\",\n",
" ])\n",
" \"internal_addresses\" = {\n",
" \"mjl5658-gl8-1k-v170401-gitlab-rails-1.c.mlockhart-56581c10.internal\" = \"10.138.0.78\"\n",
" }\n",
" \"machine_names\" = [\n",
" \"mjl5658-gl8-1k-v170401-gitlab-rails-1\",\n",
" ]\n",
" \"self_links\" = [\n",
" \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/zones/us-west1-c/instances/mjl5658-gl8-1k-v170401-gitlab-rails-1\",\n",
" ]\n",
" \"service_account\" = {\n",
" \"email\" = \"gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" \"member\" = \"serviceAccount:gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" \"name\" = \"projects/mlockhart-56581c10/serviceAccounts/gl8-gitlab-rails@mlockhart-56581c10.iam.gserviceaccount.com\"\n",
" \"unique_id\" = \"111971693028345180408\"\n",
" }\n",
" \"zones\" = [\n",
" \"us-west1-c\",\n",
" ]\n",
" }\n",
" \"haproxy_external\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"haproxy_internal\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"kubernetes\" = {\n",
" \"kubernetes_cluster_id\" = \"\"\n",
" \"kubernetes_cluster_name\" = \"\"\n",
" \"kubernetes_cluster_version\" = \"\"\n",
" \"kubernetes_gitaly_node_group_service_account_email\" = \"\"\n",
" \"kubernetes_gitaly_node_group_version\" = \"\"\n",
" \"kubernetes_node_group_service_account_email\" = \"\"\n",
" \"kubernetes_registry_service_account_email\" = \"\"\n",
" \"kubernetes_sidekiq_node_group_service_account_email\" = \"\"\n",
" \"kubernetes_sidekiq_node_group_version\" = \"\"\n",
" \"kubernetes_sidekiq_service_account_email\" = \"\"\n",
" \"kubernetes_supporting_node_group_service_account_email\" = \"\"\n",
" \"kubernetes_supporting_node_group_version\" = \"\"\n",
" \"kubernetes_toolbox_service_account_email\" = \"\"\n",
" \"kubernetes_webservice_node_group_service_account_email\" = \"\"\n",
" \"kubernetes_webservice_node_group_version\" = \"\"\n",
" \"kubernetes_webservice_service_account_email\" = \"\"\n",
" }\n",
" \"memorystore_redis_cache_connection\" = {\n",
" \"memorystore_redis_cache_address\" = \"\"\n",
" \"memorystore_redis_cache_port\" = \"\"\n",
" }\n",
" \"memorystore_redis_connection\" = {\n",
" \"memorystore_redis_address\" = \"\"\n",
" \"memorystore_redis_port\" = \"\"\n",
" }\n",
" \"memorystore_redis_persistent_connection\" = {\n",
" \"memorystore_redis_persistent_address\" = \"\"\n",
" \"memorystore_redis_persistent_port\" = \"\"\n",
" }\n",
" \"monitor\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"network\" = {\n",
" \"vpc_id\" = \"projects/mlockhart-56581c10/global/networks/default\"\n",
" \"vpc_name\" = \"default\"\n",
" \"vpc_self_link\" = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/global/networks/default\"\n",
" \"vpc_subnet_cidr_block\" = \"10.138.0.0/20\"\n",
" \"vpc_subnet_id\" = \"projects/mlockhart-56581c10/regions/us-west1/subnetworks/default\"\n",
" \"vpc_subnet_name\" = \"default\"\n",
" \"vpc_subnet_self_link\" = \"https://www.googleapis.com/compute/v1/projects/mlockhart-56581c10/regions/us-west1/subnetworks/default\"\n",
" }\n",
" \"opensearch_vm\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"pgbouncer\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"postgres\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"praefect\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"praefect_postgres\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"redis\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"redis_cache\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"redis_persistent\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
" \"sidekiq\" = {\n",
" \"data_disk_device_names\" = []\n",
" \"external_addresses\" = []\n",
" \"internal_addresses\" = {}\n",
" \"machine_names\" = []\n",
" \"self_links\" = []\n",
" \"service_account\" = null\n",
" \"zones\" = []\n",
" }\n",
"}\n",
"\n",
"real\t0m52.330s\n",
"user\t0m3.575s\n",
"sys\t0m0.862s\n",
"\n",
"\n",
"
\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"source": [
"## 4. Ansible Playbooks\n",
"\n",
"After provisioning the GCP infrastructure, we use Ansible to deploy GitLab into it. The aliases are _similar_ but we run the Ansible playbooks from the main ansible directory, not the environment directory for the individual configurations."
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"alias cdae='cd ${GET_HOME}/ansible/environments/'\n"
]
}
],
"source": [
"alias cdae\n",
"cdae"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The ansible command to run the playbook with the right inventory is quite long. I have a shell function to do it. It also takes care to start in the correct directory, so we didn't _need_ to use `cdae` first, but it does make it easier to get your bearings."
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"aplayall is a function\n",
"aplayall () \n",
"{ \n",
" local FUNCDESC='Play all ansible playbooks for specified environment';\n",
" [[ -z ${1} ]] && { \n",
" error \"${FUNCNAME}: error: must specify an environment from ${GET_HOME}/ansible/environments/\";\n",
" return 1\n",
" };\n",
" E=$(echo \"${1}\"|tr -d '/');\n",
" pushd ${GET_HOME}/ansible/;\n",
" time ansible-playbook -i environments/${E}/inventory/ playbooks/all.yml;\n",
" popd\n",
"}\n"
]
}
],
"source": [
"type aplayall"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 4.1 Ansible playall\n",
"\n",
"Let's run it to deploy GitLab! This step takes the longest time — about 20 minutes for a single-server \"1k\" reference architecture, and an hour or more for larger environments. Now is a good time to make a coffee or find another task to do.\n",
"\n",
"The output will be saved into the notebook, so any problems can be reviewed and then fixed and retried."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"outputs": [],
"source": [
"\n",
"aplayall gl8_1k_v170401"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"▹ Toggle output
\n",
"\n",
"\n",
"\n",
"/workspaces/get/ansible /workspaces/get/ansible/environments\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"[WARNING]: Found variable using reserved name: tags\n",
"[WARNING]: Found variable using reserved name: name\n",
"\n",
"TASK [common : Gather facts (common)] ******************************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Mark facts gathered] ********************************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Gather package facts (common)] **********************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Check if GitLab repository exists] ******************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Install system packages (Ubuntu / Debian)] **********************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Install Python packages] ****************************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Configure TCP keepalive settings] *******************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Get Group Data Disks Config] ************************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Create select GitLab dirs if missing] ***************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1] => (item={'path': '/etc/gitlab', 'mode': '0775'})\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1] => (item={'path': '/etc/gitlab/ssl', 'mode': '0755'})\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1] => (item={'path': '/etc/gitlab/trusted-certs', 'mode': '0755'})\n",
"\n",
"TASK [common : Create skip-unmigrated-data-check file] *************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Get GitLab json config file stats if it exists] *****************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Download GitLab repository installation script] *****************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Install GitLab repository] **************************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Install GitLab repo package (deb)] ******************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Lock GitLab package updates] ************************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Install unattended-upgrades package] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Run Automatic Security Upgrades directly (Ubuntu / Debian)] *****\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Check if custom config exists] **********************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1 -> localhost]\n",
"\n",
"TASK [common : Remove old Custom Config if not configured] *********************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Check if Custom Tasks file exists] ******************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1 -> localhost]\n",
"\n",
"TASK [common : Mark common has run] ********************************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [haproxy_*] ***************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [gitlab_nfs] **************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [consul] ******************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [postgres] ****************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [pgbouncer] ***************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [redis,redis_cache_*,redis_persistent_*] **********************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [gitaly] ******************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [praefect_postgres] *******************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [praefect] ****************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"TASK [Load Secrets if existing] ************************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"PLAY [gitlab_rails] ************************************************************\n",
"\n",
"TASK [Propagate Secrets if existing] *******************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Check if custom config exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1 -> localhost]\n",
"\n",
"TASK [gitlab_rails : Setup GitLab deploy node config file with DB Migrations] ***\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Reconfigure GitLab deploy node] ***************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Setup all GitLab Rails config files] **********************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Remove old Custom Config if not configured] ***************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Reconfigure all GitLab Rails] *****************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [Propagate Secrets if new or changed] *************************************\n",
"included: common for mjl5658-gl8-1k-v170401-gitlab-rails-1\n",
"\n",
"TASK [common : Check if GitLab Secrets file exists] ****************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Lookup GitLab Secrets file from first node] *********************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [common : Save GitLab Secrets file contents] ******************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1 -> localhost]\n",
"\n",
"TASK [common : Mark that secrets have been collected after first reconfigure] ***\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1 -> localhost]\n",
"\n",
"TASK [common : Write GitLab Secrets file] **************************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Configure SSH Fast Lookup if OpenSSH service being used] ***\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Reload OpenSSH service if being used] *********************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Restart GitLab] *******************************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Enable Incremental Logging (Object Storage)] **************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Create skip-auto-reconfigure file] ************************\n",
"changed: [mjl5658-gl8-1k-v170401-gitlab-rails-1]\n",
"\n",
"TASK [gitlab_rails : Check if Custom Tasks file exists] ************************\n",
"ok: [mjl5658-gl8-1k-v170401-gitlab-rails-1 -> localhost]\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"PLAY [sidekiq] *****************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"PLAY [monitor] *****************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"PLAY [localhost] ***************************************************************\n",
"\n",
"PLAY [all:!gitlab_*_node_pool:!ungrouped] **************************************\n",
"\n",
"PLAY [opensearch] **************************************************************\n",
"skipping: no hosts matched\n",
"\n",
"PLAY [localhost] ***************************************************************\n",
"FAILED - RETRYING: [localhost]: Wait for GitLab to be available (30 retries left).\n",
"FAILED - RETRYING: [localhost]: Wait for GitLab to be available (29 retries left).\n",
"FAILED - RETRYING: [localhost]: Wait for GitLab to be available (28 retries left).\n",
"FAILED - RETRYING: [localhost]: Wait for GitLab to be available (27 retries left).\n",
"FAILED - RETRYING: [localhost]: Wait for GitLab to be available (26 retries left).\n",
"\n",
"TASK [post_configure : Wait for GitLab to be available] ************************\n",
"ok: [localhost]\n",
"\n",
"TASK [post_configure : Get and save Environment Settings and License plan via GitLab Rails] ***\n",
"changed: [localhost -> mjl5658-gl8-1k-v170401-gitlab-rails-1(34.168.4.189)]\n",
"\n",
"TASK [post_configure : Save Environment Settings] ******************************\n",
"ok: [localhost]\n",
"\n",
"TASK [post_configure : Check for existing license or configure new subscription / license via GitLab Rails] ***\n",
"changed: [localhost -> mjl5658-gl8-1k-v170401-gitlab-rails-1(34.168.4.189)]\n",
"\n",
"TASK [post_configure : Save license plan] **************************************\n",
"ok: [localhost]\n",
"\n",
"TASK [post_configure : Disable Write to \"authorized_keys\" file setting via GitLab Rails] ***\n",
"changed: [localhost -> mjl5658-gl8-1k-v170401-gitlab-rails-1(34.168.4.189)]\n",
"\n",
"TASK [post_configure : Enable 'gitlab_environment_toolkit_instance' setting via GitLab Rails] ***\n",
"changed: [localhost -> mjl5658-gl8-1k-v170401-gitlab-rails-1(34.168.4.189)]\n",
"\n",
"TASK [post_configure : Check if Custom Tasks file exists] **********************\n",
"ok: [localhost]\n",
"\n",
"PLAY RECAP *********************************************************************\n",
"localhost : ok=8 changed=4 unreachable=0 failed=0 skipped=152 rescued=0 ignored=0 \n",
"mjl5658-gl8-1k-v170401-gitlab-rails-1 : ok=59 changed=18 unreachable=0 failed=0 skipped=232 rescued=0 ignored=0 \n",
"\n",
"\n",
"real\t20m17.253s\n",
"user\t0m49.661s\n",
"sys\t0m20.607s\n",
"/workspaces/get/ansible/environments\n",
"\n",
"
\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5. Confirm environment\n",
"\n",
"After we have installed GitLab, let's confirm that it is up and okay, before moving on to using it (testing, experimenting, or replicating our customer's problem)."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"outputs": [],
"source": [
"curl -fssL http://$(gaddress-ip gl8)/-/health\n",
"curl -fssL http://$(gaddress-ip gl8)/-/readiness?all=1|jq '.'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"