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

bootstrat a terraform project for oracle #2973

Closed
smerle33 opened this issue Jun 6, 2022 · 9 comments
Closed

bootstrat a terraform project for oracle #2973

smerle33 opened this issue Jun 6, 2022 · 9 comments

Comments

@smerle33
Copy link
Contributor

smerle33 commented Jun 6, 2022

Service(s)

Oracle / Terraform bootstrap state

Summary

Boostrap a terraform project for oracle with a terraform-state hosted in an azure bucket.

The aim is to create the kernel with authentication user / api-token / principal object (bdd ?)
then to output the authentifications infos to pass within SOPS that will be consumed by the pipeline within the final oracle project based on this bootstrap.

the final project would then be used for : #2682 and #2649

work in progress :
as per https://github.com/jenkins-infra/terraform-states/commit/eeb514512f7ece88067e6f6d68cc492d62895d51 for the skeleton

and https://github.com/jenkins-infra/terraform-states/commit/0679ee48048ab2a11441fa4590035016ebdf6de8

need to login the oracle cloud infra from the source computer that will terraform apply and then add the outputs.

@github-actions github-actions bot added triage Incoming issues that need review oracle/terraformbootstrapstate labels Jun 6, 2022
@smerle33 smerle33 removed the triage Incoming issues that need review label Jun 6, 2022
@smerle33 smerle33 self-assigned this Jun 6, 2022
@github-actions github-actions bot added the triage Incoming issues that need review label Jun 6, 2022
@lemeurherve lemeurherve added terraform oracle and removed triage Incoming issues that need review oracle/terraformbootstrapstate labels Jun 6, 2022
@lemeurherve lemeurherve added this to the infra-team-sync-2022-06-07 milestone Jun 6, 2022
@smerle33
Copy link
Contributor Author

smerle33 commented Jun 7, 2022

use this page to setup key pair for oci-cli : https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#Required_Keys_and_OCIDs

@smerle33
Copy link
Contributor Author

smerle33 commented Jun 7, 2022

lock at the upload public key as the user we use is a federated user linked with the azureAD SSO, we need to synchronize users :
https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/usingscim.htm

https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/oracle-cloud-infrastructure-console-provisioning-tutorial

@smerle33
Copy link
Contributor Author

smerle33 commented Jun 7, 2022

we decided to create a local user with 2FA to access the CLI

TODO : try to add a local user smerle synchronized with the federate process azureAD with mark account

@smerle33
Copy link
Contributor Author

smerle33 commented Jun 8, 2022

complete the oracle project by setting those files, based on the AWS ones :
version.tf
providers.tf
Jenkinsfile_k8s

@dduportal
Copy link
Contributor

@dduportal
Copy link
Contributor

Opened a bug in jenkins-infra/helm-charts#148 about the multiline string failing the job-dsl

@smerle33
Copy link
Contributor Author

smerle33 commented Jun 9, 2022

as per jenkins-infra/oracle#2
the terraform skeleton is done,
lets set-up the updatecli update process

@smerle33
Copy link
Contributor Author

smerle33 commented Jun 9, 2022

the first updatecli run fail over a

ERROR: 	Could not resolve to a PullRequest with the number of 4.

Pipeline "Bump Jenkinsfile_k8s for updatecli `hashicorp-tools` docker image version to lastest image release" failed

Skipping due to:

	pull Request stage:	"Could not resolve to a PullRequest with the number of 4."

adding the group https://github.com/orgs/jenkins-infra/teams/ci-bot in read/write seems to solve it

@smerle33
Copy link
Contributor Author

smerle33 commented Jun 9, 2022

merged all the updatecli PR done.

@smerle33 smerle33 closed this as completed Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants