Blame docs/operations/ci/adding_cico_tenant/adding_cico_tenants.md

792b29
# CentOS CI - On-boarding
792b29
792b29
## Steps
97a9dc
David Kirwan eb905a
1. Create an entry in duffy db (with ssh key) - [follow adding-duffy-tenant.md](/operations/ci/adding_cico_tenant/adding-duffy-tenant/)
97a9dc
2. Create an OpenShift namespace/project (done with ansible)
97a9dc
3. Create a PV(Persistent Volume) and deploy Jenkins instance (done with ansible)
97a9dc
David Kirwan eb905a
## Create an entry in duffy db (with ssh key) - [follow adding-duffy-tenant.md](/operations/ci/adding_cico_tenant/adding-duffy-tenant/)
792b29
792b29
792b29
### Create an OpenShift namespace
792b29
David Kirwan eb905a
!!! important
824c14
    It's all created automatically now, including groups/users membership, and tied to ACO/FAS. The only needed operation is to create in IPA a group with suffix `ocp-cico-` and then name of the group/project. So for example create `ocp-cico-kmods` group, itself nesting `sig-kmods` and so existing users. Maximum 2 minutes later, the project/group should be created automatically in openshift cluster
97a9dc
9b3876
97a9dc
## Deploy a PV (Persistent Volume) and Jenkins instance
792b29
97a9dc
!!! note
David Kirwan eb905a
    In case you just need to create a PV *outside* of jenkins, follow [Persistent storage via NFS](https://docs.infra.centos.org/operations/ci/installation/persistant_storage_nfs/).
f1ccc7
97a9dc
We have an ad-hoc ansible task (adhoc-ocp-deploy-jenkins-for-ci-tenant.yml) that will create the needed PV , create a template and apply it with the correct ssh keys and duffy api key so ensure that you followed previous steps so that you have the project keys into pkistore git repo (using project name) and also duffy api key ready (as script will ask you for it):
f1ccc7
97a9dc
```
97a9dc
ansible-playbook-ci playbooks/adhoc-ocp-deploy-jenkins-for-ci-tenant.yml
97a9dc
```
f1ccc7
97a9dc
Just answer the following questions (project has to exist first ! :
f1ccc7
97a9dc
```
97a9dc
Existing project/namespace in ocp we'll deploy jenkins to/for (has to exist before !) : samba
97a9dc
Persistent Volume size (example 10Gi) : 10Gi
97a9dc
Existing Duffy API key : <duffy_api_key>
97a9dc
97a9dc
```
792b29
David Kirwan eb905a
Now you just have to wait for jenkins to be up and running
792b29
97a9dc
!!! important
97a9dc
    We recently had an issue with the default jenkins image having outdated (and not working) [openshift sync plugin](https://plugins.jenkins.io/openshift-sync/) so be sure that you have at least 1.0.51 running in openshift. If not, update it first, and then configmap will be synced to jenkins, for the `cico-workspace` pod template