Initial commit
Add jenkins configuration for sandbox
Change-Id: I117fecfe3af0b14ea4aac7db3211bc3517caf56b
Related-PROD: RE-336
diff --git a/clouds/k8s-infra.yaml.example b/clouds/k8s-infra.yaml.example
new file mode 100644
index 0000000..927fa19
--- /dev/null
+++ b/clouds/k8s-infra.yaml.example
@@ -0,0 +1,53 @@
+---
+jenkins:
+ clouds:
+ - kubernetes:
+ name: k8s-infra
+ connectTimeout: 5
+ containerCapStr: 10
+ credentialsId: k8s-infra-config
+ maxRequestsPerHostStr: 32
+ readTimeout: 15
+ skipTlsVerify: true
+ webSocket: true
+ templates:
+ - name: dind-infra
+ showRawYaml: false
+ containers:
+ - name: docker
+ args: 99d
+ command: sleep
+ envVars:
+ - envVar:
+ key: DOCKER_HOST
+ value: tcp://localhost:2375
+ image: docker:19.03.1
+ livenessProbe:
+ failureThreshold: 0
+ initialDelaySeconds: 0
+ periodSeconds: 0
+ successThreshold: 0
+ timeoutSeconds: 0
+ workingDir: /home/jenkins/agent
+ - name: docker-daemon
+ envVars:
+ - envVar:
+ key: DOCKER_TLS_CERTDIR
+ image: docker:19.03.1-dind
+ livenessProbe:
+ failureThreshold: 0
+ initialDelaySeconds: 0
+ periodSeconds: 0
+ successThreshold: 0
+ timeoutSeconds: 0
+ privileged: true
+
+credentials:
+ system:
+ domainCredentials:
+ - credentials:
+ - file:
+ id: k8s-infra-config
+ fileName: k8s-re-jenkins-us-prod.yaml
+ secretBytes: ${CRED_K8S_RE_JENKINS_CONFIG_CONTENT}
+
diff --git a/clouds/openstack.ic-us.sandbox-ci.yaml.example b/clouds/openstack.ic-us.sandbox-ci.yaml.example
new file mode 100644
index 0000000..0a6f95e
--- /dev/null
+++ b/clouds/openstack.ic-us.sandbox-ci.yaml.example
@@ -0,0 +1,53 @@
+---
+jenkins:
+ clouds:
+ - openstack:
+ name: "IC-US sandbox-ci"
+ credentialsId: ic-us-sandbox-ci
+ endPointUrl: https://ic-us.ssl.mirantis.net:5000/v3
+ zone: RegionOne
+ slaveOptions:
+ availabilityZone: nova
+ bootSource:
+ image:
+ name: bionic-server-cloudimg-amd64-20200218
+ floatingIpPool: public
+ fsRoot: /var/lib/jenkins
+ hardwareId: d4d834ab-07e3-4fa3-8134-f4001d642bbd
+ instancesMin: 1
+ instanceCap: 1
+ keyPairName: sandbox-ci
+ launcherFactory:
+ ssh:
+ credentialsId: sandbox-ci-agent
+ networkId: jenkins
+ securityGroups: jenkins-agent
+ templates:
+ - name: sandbox-ci-agent-dynamic
+ labels: 'dynamic docker libvirt'
+ slaveOptions:
+ fsRoot: /home/jenkins
+ bootSource:
+ image:
+ name: bionic-jenkins-agent-amd64-20200603
+ userDataId: sandbox-ci-agent-cloudinit
+
+unclassified:
+ globalConfigFiles:
+ configs:
+ - openstackUserData:
+ id: sandbox-ci-agent-cloudinit
+ name: sandbox-ci-agent-cloudinit
+ comment: sandbox-ci-agent-cloudinit
+ content: >
+ #cloud-config
+
+ system_info:
+ default_user:
+ name: jenkins
+ gecos: "Jenkins CI agent"
+ lock_passwd: true
+ runcmd:
+ - [chmod, -x, /etc/update-motd.d/50-motd-news]
+ - [chmod, -x, /etc/update-motd.d/80-livepatch]
+