sgarbuz | 96a6c79 | 2019-07-04 12:05:10 +0300 | [diff] [blame^] | 1 | # |
| 2 | # Jobs to upgrade Galera packages on given Salt master environment |
| 3 | # |
| 4 | parameters: |
| 5 | jenkins: |
| 6 | client: |
| 7 | job: |
| 8 | deploy-upgrade-galera: |
| 9 | type: workflow-scm |
| 10 | concurrent: true |
| 11 | discard: |
| 12 | build: |
| 13 | keep_num: 10 |
| 14 | artifact: |
| 15 | keep_num: 10 |
| 16 | display_name: "Deploy - upgrade Galera cluster" |
| 17 | scm: |
| 18 | type: git |
| 19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 20 | branch: "${_param:jenkins_pipelines_branch}" |
| 21 | credentials: ${_param:jenkins_gerrit_credentials} |
| 22 | script: openstack-galera-upgrade.groovy |
| 23 | param: |
| 24 | SALT_MASTER_URL: |
| 25 | type: string |
| 26 | default: "${_param:jenkins_salt_api_url}" |
| 27 | SALT_MASTER_CREDENTIALS: |
| 28 | type: string |
| 29 | default: "salt" |
| 30 | BACKUP_GALERA: |
| 31 | type: boolean |
| 32 | default: 'true' |
| 33 | description: "Backup galera cluster" |
| 34 | SHUTDOWN_CLUSTER: |
| 35 | type: boolean |
| 36 | default: 'false' |
| 37 | description: "Shutdown all mysql instances on target nodes during upgrade" |
| 38 | OS_DIST_UPGRADE: |
| 39 | type: boolean |
| 40 | default: 'false' |
| 41 | description: "Upgrade system packages including kernel (apt-get dist-upgrade)" |
| 42 | OS_UPGRADE: |
| 43 | type: boolean |
| 44 | default: 'false' |
| 45 | description: "Upgrade all installed applications (apt-get upgrade)" |
| 46 | INTERACTIVE: |
| 47 | type: boolean |
| 48 | default: 'true' |
| 49 | description: "Ask interactive questions during pipeline run (bool)" |
| 50 | TARGET_SERVERS: |
| 51 | type: string |
| 52 | default: 'dbs*' |
| 53 | description: "Salt compound expression to get mysql servers to upgrade." |