Changes after tarball PR was merged

This commit is contained in:
Azra Sulthana
2019-07-15 06:24:23 +00:00
parent 6645ee5369
commit 8f506a16cc
5 changed files with 51 additions and 20 deletions

View File

@@ -1,14 +1,19 @@
--- ---
- name: Create crowd.cfg.xml
template:
src: crowd.cfg.xml.j2
dest: "{{ atl_product_home_shared }}/crowd.cfg.xml"
- name: Create server config - name: Create server config
template: template:
src: server.xml.j2 src: server.xml.j2
dest: "{{ atl_product_installation_versioned }}/atlassian-crowd-{{atl_product_version}}/apache-tomcat/conf/server.xml" dest: "{{ atl_product_installation_versioned }}/apache-tomcat/conf/server.xml"
- name: Override JVM memory settings. - name: Override JVM memory settings.
# Ugly but necessary as the product installs this file so we need to make the change here. # Ugly but necessary as the product installs this file so we need to make the change here.
lineinfile: lineinfile:
path: "{{ atl_product_installation_versioned }}/atlassian-crowd-{{atl_product_version}}/apache-tomcat/bin/setenv.sh" path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
backrefs: true backrefs: true
regexp: "^{{ item }}=" regexp: "^{{ item }}="
line: "{{ item }}=\"{{ atl_jvm_heap }}\"" line: "{{ item }}=\"{{ atl_jvm_heap }}\""
@@ -18,16 +23,27 @@
- name: Set Crowd home directory - name: Set Crowd home directory
lineinfile: lineinfile:
path: "{{ atl_product_installation_versioned }}/atlassian-crowd-{{atl_product_version}}/apache-tomcat/bin/setenv.sh" path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
regexp: "CROWD_HOME=" regexp: "CROWD_HOME="
line: 'CROWD_HOME="{{ atl_product_home }}"' line: 'CROWD_HOME="{{ atl_product_home }}"'
- name: Set Crowd home directory in crowd-init.properties file
lineinfile:
path: "{{ atl_product_installation_versioned }}/crowd-webapp/WEB-INF/classes/crowd-init.properties"
line: 'crowd.home="{{ atl_product_home }}"'
- name: Set the Tomcat environment - name: Set the Tomcat environment
lineinfile: lineinfile:
path: "{{ atl_product_installation_versioned }}/atlassian-crowd-{{atl_product_version}}/apache-tomcat/bin/setenv.sh" path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
insertafter: "EOF" insertafter: "EOF"
line: 'export CATALINA_OPTS="${CATALINA_OPTS} {{ atl_catalina_opts }} {{ atl_catalina_opts_extra }}"' line: 'export CATALINA_OPTS="${CATALINA_OPTS} {{ atl_catalina_opts }} {{ atl_catalina_opts_extra }}"'
- name: Set JAVA_HOME
lineinfile:
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
insertafter: "EOF"
line: 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.201.b09-0.amzn2.x86_64'
- name: Create application directories - name: Create application directories
file: file:
path: "{{ item }}" path: "{{ item }}"

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<application-configuration>
<setupStep>complete</setupStep>
<setupType>install.xml</setupType>
<properties>
<property name="crowd.clustering.enabled">true</property>
<property name="hibernate.c3p0.acquire_increment">1</property>
<property name="hibernate.c3p0.idle_test_period">100</property>
<property name="hibernate.c3p0.max_size">30</property>
<property name="hibernate.c3p0.max_statements">0</property>
<property name="hibernate.c3p0.min_size">0</property>
<property name="hibernate.c3p0.timeout">30</property>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.password">{{ atl_jdbc_password }}</property>
<property name="hibernate.connection.url">{{ atl_jdbc_url }}</property>
<property name="hibernate.connection.username">{{ atl_jdbc_password }}</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.setup">true</property>
</properties>
</application-configuration>

View File

@@ -8,17 +8,16 @@ atl_product_latest_version_url: "https://marketplace.atlassian.com/rest/2/applic
atl_product_version_cache_dir: "{{ atl_product_home_shared }}" atl_product_version_cache_dir: "{{ atl_product_home_shared }}"
atl_product_version_cache: "{{ atl_product_home_shared }}/{{ atl_product_edition }}.version" atl_product_version_cache: "{{ atl_product_home_shared }}/{{ atl_product_edition }}.version"
atl_download_format: 'installer' atl_download_format: 'tarball'
atl_download_format_suffix_map: atl_download_format_suffix_map:
installer: '-x64.bin' installer: '-x64.bin'
tarball: '.tar.gz' tarball: '.tar.gz'
atl_download_suffix: "{{ atl_download_format_suffix_map[atl_download_format] }}" atl_download_suffix: "{{ atl_download_format_suffix_map[atl_download_format] }}"
atl_crowd_suffix: "{{ atl_download_format_suffix_map[atl_download_format] }}"
atl_release_base_url: "https://product-downloads.atlassian.com/software" atl_release_base_url: "https://product-downloads.atlassian.com/software"
atl_product_base_url: "{{ atl_release_base_url }}/{{ atl_product_family }}/downloads" atl_product_base_url: "{{ atl_release_base_url }}/{{ atl_product_family }}/downloads"
#atl_crowd_download_url: "{{ atl_product_base_url }}/atlassian-{{ atl_download_edition | default(atl_product_edition) }}-{{ atl_product_version }}.tar.gz" atl_product_download_url: "{{ atl_product_base_url }}/atlassian-{{ atl_download_edition | default(atl_product_edition) }}-{{ atl_product_version }}{{ atl_crowd_suffix }}"
#atl_crowd_latest_url: "https://www.atlassian.com/software/crowd/downloads/binary/crowd-standalone-distribution-{{atl_latest_version}}.tar.gz"
atl_product_download_url: "{{ atl_product_base_url }}/atlassian-{{ atl_download_edition | default(atl_product_edition) }}-{{ atl_product_version }}{{ atl_download_suffix }}"
atl_product_download_filename: "{{ atl_download_edition | default(atl_product_edition) }}.{{ atl_product_version }}{{ atl_download_suffix }}" atl_product_download_filename: "{{ atl_download_edition | default(atl_product_edition) }}.{{ atl_product_version }}{{ atl_download_suffix }}"
atl_product_download: "{{ atl_installer_temp }}/{{ atl_product_download_filename }}" atl_product_download: "{{ atl_installer_temp }}/{{ atl_product_download_filename }}"

View File

@@ -1,5 +1,6 @@
--- ---
- name: Check for existing version cache file - name: Check for existing version cache file
stat: stat:
path: "{{ atl_product_version_cache }}" path: "{{ atl_product_version_cache }}"
@@ -124,6 +125,7 @@
dest: "{{ atl_product_version_cache }}" dest: "{{ atl_product_version_cache }}"
force: true force: true
# Note: We don't the cache binary in the shared drive to the complexity # Note: We don't the cache binary in the shared drive to the complexity
# around download race-conditions if multiple nodes are starting at # around download race-conditions if multiple nodes are starting at
# the same time. When downloading from product-downloads.atlassian.com # the same time. When downloading from product-downloads.atlassian.com
@@ -134,14 +136,12 @@
dest: "{{ atl_product_download }}" dest: "{{ atl_product_download }}"
mode: 0755 mode: 0755
force: false force: false
when: atl_product_edition!= "crowd"
- name: Create installer varfile - name: Create installer varfile
template: template:
src: "{{ atl_product_family }}.varfile.j2" src: "{{ atl_product_family }}.varfile.j2"
dest: "{{ atl_product_varfile }}" dest: "{{ atl_product_varfile }}"
mode: 0755 mode: 0755
when: atl_product_edition!= "crowd"
# NOTE: We run the installer as the user rather than root to limit its # NOTE: We run the installer as the user rather than root to limit its
# actions. For example, if root and the 'jira' user exists then it # actions. For example, if root and the 'jira' user exists then it
@@ -155,10 +155,6 @@
become_user: "{{ atl_product_user }}" become_user: "{{ atl_product_user }}"
when: atl_product_edition!= "crowd" when: atl_product_edition!= "crowd"
- import_tasks: crowd_install.yml
when: atl_product_edition == "crowd"
- name: Unpack the downloaded application depending on format - name: Unpack the downloaded application depending on format
include_tasks: "unpack_{{ atl_download_format }}.yml" include_tasks: "unpack_{{ atl_download_format }}.yml"
@@ -168,4 +164,3 @@
dest: "{{ atl_product_installation_current }}" dest: "{{ atl_product_installation_current }}"
state: link state: link
force: true force: true
when: atl_product_edition != "crowd"

View File

@@ -5,12 +5,12 @@ atl_startup_enable: true
atl_startup_restart: true atl_startup_restart: true
atl_startup_script_map: atl_startup_script_map:
jira: "start-jira.sh" jira: "/bin/start-jira.sh"
confluence: "start-confluence.sh" confluence: "bin/start-confluence.sh"
stash: "start-bitbucket.sh" stash: "bin/start-bitbucket.sh"
crowd: "../start_crowd.sh" crowd: "start_crowd.sh"
atl_startup_exec_path: "{{ atl_product_installation_current }}/bin/{{ atl_startup_script_map[atl_product_family] }}" atl_startup_exec_path: "{{ atl_product_installation_current }}/{{ atl_startup_script_map[atl_product_family] }}"
atl_startup_exec_options: ["-fg"] atl_startup_exec_options: ["-fg"]
atl_startup_systemd_params: [] atl_startup_systemd_params: []