Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | jenkins_cloud_deploy_pipelines: |
| 4 | - stack_name: k8s_calico |
| 5 | stack_type: heat |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 6 | stack_install: core,k8s,calico |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 7 | job_timer: "" |
| 8 | - stack_name: k8s_calico |
| 9 | stack_type: aws |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 10 | stack_install: core,k8s,calico |
| 11 | job_timer: "H H * * *" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 12 | jenkins: |
| 13 | client: |
| 14 | job_template: |
| 15 | cloud_deploy_heat_template: |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 16 | name: deploy-{{stack_type}}-{{stack_name}} |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 17 | jobs: ${_param:jenkins_cloud_deploy_pipelines} |
| 18 | template: |
| 19 | type: workflow-scm |
| 20 | discard: |
| 21 | build: |
| 22 | keep_num: 20 |
| 23 | concurrent: true |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 24 | display_name: "Deploy - {{stack_name}} {{stack_type}}" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 25 | scm: |
| 26 | type: git |
| 27 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 28 | credentials: "gerrit" |
| 29 | script: cloud-deploy-pipeline.groovy |
| 30 | trigger: |
| 31 | timer: |
| 32 | spec: "{{job_timer}}" |
| 33 | param: |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 34 | # general parameters |
| 35 | ASK_ON_ERROR: |
| 36 | type: boolean |
| 37 | default: 'false' |
| 38 | |
| 39 | # deployments |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 40 | STACK_NAME: |
| 41 | type: string |
| 42 | description: Heat stack name. Will be generated if missing. |
| 43 | STACK_TEMPLATE: |
| 44 | type: string |
| 45 | default: "{{stack_name}}" |
| 46 | STACK_TYPE: |
| 47 | type: string |
| 48 | default: "{{stack_type}}" |
| 49 | STACK_INSTALL: |
| 50 | type: string |
| 51 | default: "{{stack_install}}" |
| 52 | STACK_TEST: |
| 53 | type: string |
| 54 | default: "" |
| 55 | STACK_DELETE: |
| 56 | type: boolean |
| 57 | default: 'true' |
| 58 | description: "Don't enable it if you need to use the lab after" |
| 59 | STACK_REUSE: |
| 60 | type: boolean |
| 61 | default: 'false' |
Tomáš Kukrál | c113ac6 | 2017-06-05 15:26:55 +0200 | [diff] [blame] | 62 | STACK_COMPUTE_COUNT: |
| 63 | type: string |
| 64 | default: '2' |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 65 | |
| 66 | STACK_TEMPLATE_URL: |
| 67 | type: string |
| 68 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
| 69 | STACK_TEMPLATE_CREDENTIALS: |
| 70 | type: string |
| 71 | default: "gerrit" |
| 72 | STACK_TEMPLATE_BRANCH: |
| 73 | type: string |
| 74 | default: "master" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 75 | STACK_CLEANUP_JOB: |
| 76 | type: string |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 77 | default: 'deploy-stack-cleanup' |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 78 | |
| 79 | # salt master |
| 80 | SALT_MASTER_CREDENTIALS: |
| 81 | type: string |
| 82 | default: "salt-qa-credentials" |
| 83 | SALT_MASTER_URL: |
| 84 | type: string |
| 85 | default: "" |
| 86 | |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 87 | # aws api |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 88 | AWS_STACK_REGION: |
| 89 | type: string |
| 90 | default: "us-west-2" |
| 91 | AWS_API_CREDENTIALS: |
| 92 | type: string |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 93 | default: "aws-credentials" |
| 94 | AWS_SSH_KEY: |
| 95 | type: string |
| 96 | default: "jenkins-mk" |
| 97 | |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 98 | |
| 99 | # openstack api |
| 100 | OPENSTACK_API_URL: |
| 101 | type: string |
Jakub Josef | 04f3320 | 2017-05-30 17:53:21 +0200 | [diff] [blame] | 102 | default: "https://vpc.tcpisek.cz:5000" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 103 | OPENSTACK_API_CREDENTIALS: |
| 104 | type: string |
| 105 | default: "openstack-qa-credentials" |
| 106 | OPENSTACK_API_PROJECT: |
| 107 | type: string |
| 108 | default: "mirantis_mk20_qa" |
| 109 | OPENSTACK_API_CLIENT: |
| 110 | type: string |
| 111 | default: "liberty" |
| 112 | OPENSTACK_API_VERSION: |
| 113 | type: string |
| 114 | default: "2" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 115 | OPENSTACK_API_PROJECT_DOMAIN: |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 116 | type: string |
| 117 | default: "default" |
| 118 | OPENSTACK_API_USER_DOMAIN_ID: |
| 119 | type: string |
| 120 | default: "default" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 121 | OPENSTACK_API_PROJECT_ID: |
| 122 | type: string |
| 123 | default: "" |
| 124 | OPENSTACK_API_USER_DOMAIN: |
| 125 | type: string |
| 126 | default: "default" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 127 | |
| 128 | # heat |
| 129 | HEAT_STACK_ENVIRONMENT: |
| 130 | type: string |
| 131 | default: "tcpisek" |
| 132 | HEAT_STACK_ZONE: |
| 133 | type: string |
| 134 | default: "workshop-sunnyvale" |
| 135 | HEAT_STACK_PUBLIC_NET: |
| 136 | type: string |
| 137 | default: "mirantis-private" |
| 138 | |
| 139 | # k8s setttings |
| 140 | K8S_API_SERVER: |
| 141 | type: string |
| 142 | default: "http://127.0.0.1:8080" |
| 143 | K8S_CONFORMANCE_IMAGE: |
| 144 | type: string |
| 145 | default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.5.1-3_1482332392819" |
| 146 | |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 147 | # Openstack settings |
| 148 | TEMPEST_IMAGE: |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 149 | type: string |
| 150 | default: "sandbox-docker-prod-local.docker.mirantis.net/mirantis/rally_tempest:0.1" |
| 151 | |