Git Product home page Git Product logo

ansible-ei's People

Contributors

irunika avatar kasunsiyambalapitiya avatar maheshika avatar msmshariq avatar nihlaakram avatar nishikadesilva avatar savidude avatar vimukthiperera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-ei's Issues

Update project directory structure

Description:
The default directory structure does not contains the files/packs and files/lib directories. The user needs to manually add it.

Ex:

image

Optimize Ansible scripts by removing repeatable tasks

Description:

Ansible scripts for Identity Server use a repeatable task to copy every single configuration file as below.

      template:
        src: "carbon-home/repository/conf/datasources/master-datasources.xml.j2"
        dest: "{{ setup_path }}/{{ product_name }}/{{ product_version }}/repository/conf/datasources/master-datasources.xml"

    - name: "Copy identity.xml"
      template:
        src: "carbon-home/repository/conf/identity/identity.xml.j2"
        dest: "{{ setup_path }}/{{ product_name }}/{{ product_version }}/repository/conf/identity/identity.xml"

    - name: "Copy carbon.xml"
      template:
        src: "carbon-home/repository/conf/carbon.xml.j2"
        dest: "{{ setup_path }}/{{ product_name }}/{{ product_version }}/repository/conf/carbon.xml"

    - name: "Copy registry.xml"
      template:
        src: "carbon-home/repository/conf/registry.xml.j2"
        dest: "{{ setup_path }}/{{ product_name }}/{{ product_version }}/repository/conf/registry.xml"

    - name: "Copy axis2.xml"
      template:
        src: "carbon-home/repository/conf/axis2/axis2.xml.j2"
        dest: "{{ setup_path }}/{{ product_name }}/{{ product_version }}/repository/conf/axis2/axis2.xml"

But there is an optimal way to achieve the same as follows:

TASKS:

- name: copy wso2 conf files
  template:
    src:   "{{ carbon_home }}/repository/conf/{{ item.source }}"
    dest: "{{ setup_path }}/{{ product_name }}/{{ product_version }}/repository/conf/{{ item.dest }}"
    owner: "{{ wso2_user }}"
    group: "{{ wso2_group }}"
  with_items: "{{ config_files }}"

VARS:

config_files:

  - source: 'datasources/master-datasources.xml.j2'
    dest: 'datasources/master-datasources.xml'

  - source: 'identity/identity.xml.j2'
    dest: 'identity/identity.xml'

  - source: 'carbon.xml.j2'
    dest: 'carbon.xml'

  - source: 'registry.xml.j2'
    dest: 'registry.xml'

  - source: 'axis2/axis2.xml.j2'
    dest: 'axis2/axis2.xml' 

Affected Product Version:
v6.4.0.1

Ansible pack tree is wrong

The Ansible zip file for 660.v2 differs from the tree image. There is no files sub directry for one and the instructions for downloading file like corretto, ei660 and mysql jdbc hence also do not make sense

image

JDK unzipping failure

Description:
Sometimes the JDK archive name is different from the extracted folder name. Current Ansible scripts expect them to be the same.

Possible Fix

- name: Unzip JDK
  unarchive:
    src: /path/to/jdk.tar.gz
    dest: /path/to/extract/{{ jdk_name }}
    extra_opts: [--strip-components=1]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.