Added Ansible playbook to upgrade ZDU bitbucket

This commit is contained in:
nghazalibeiklar
2020-11-03 14:43:33 +11:00
parent 6e1c9654fd
commit 5306637da7
8 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
---
- hosts: aws_node_local
become: true
vars:
# See group_vars/aws_node_local.yml, which pull vars from the environment.
atl_product_family: "stash"
atl_product_edition: "bitbucket"
atl_product_user: "bitbucket"
atl_product_home: "{{ atl_shared_mountpoint }}/{{ atl_product_edition }}"
atl_nfs_mountpoint: "{{ atl_shared_mountpoint }}/bitbucket/shared"
atl_nfs_target: "{{ atl_shared_mountpoint }}/bitbucket/shared"
atl_nfs_version: "3"
atl_startup_systemd_params:
- "UMask=0027"
- "LimitNOFILE=4096"
- "Environment=BITBUCKET_HOME={{ atl_product_home }}"
- "Environment=JVM_MAXIMUM_MEMORY={{ atl_jvm_heap }}"
- "Environment=JVM_MINIMUM_MEMORY={{ atl_jvm_heap }}"
- "Environment=JVM_SUPPORT_RECOMMENDED_ARGS={{ atl_jvm_opts }}"
atl_startup_exec_options:
- "-fg"
- "--no-search"
pre_tasks:
- name: Stop bitbucket
service:
name: "{{ atl_systemd_service_name }}"
state: stopped
roles:
# This is needed because it sets the node ID
- role: aws_common
- role: product_common
- role: product_install
- role: bitbucket_config
- role: product_startup