mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-17 10:23:13 -06:00
Added Ansible playbook to upgrade ZDU bitbucket
This commit is contained in:
39
aws_bitbucket_dc_upgrade_node.yml
Normal file
39
aws_bitbucket_dc_upgrade_node.yml
Normal 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
|
||||
Reference in New Issue
Block a user