From 29c79e59f5cfeca275059e6c4c2208623c1fe34f Mon Sep 17 00:00:00 2001 From: Roberto Date: Thu, 7 Sep 2017 12:23:27 +0200 Subject: [PATCH] group_vars/dm_pool_manager_pre/vault.yml encripted svn password ../library/roles/smartgears/dm_pool_manager/tasks/main.yml manage additional files and packages for dm-pool-manager service --- smartgears/dm_pool_manager/defaults/main.yml | 5 +++++ smartgears/dm_pool_manager/tasks/main.yml | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/smartgears/dm_pool_manager/defaults/main.yml b/smartgears/dm_pool_manager/defaults/main.yml index 7348640..099aa28 100644 --- a/smartgears/dm_pool_manager/defaults/main.yml +++ b/smartgears/dm_pool_manager/defaults/main.yml @@ -12,5 +12,10 @@ dm_pool_prod_ghost_instance: 'PROTO_PROD_STAGING_HOST: dataminer-proto-ghost.d4s dm_pool_dev_ghost_instance: 'DEV_STAGING_HOST: dataminer1-devnext.d4science.org' dm_pool_manager_pkgs: - subversion + - 'ansible' + +dm_pool_svn_url: https://svn.d4science.research-infrastructures.eu:443/gcube/trunk/data-analysis +svn_user: svn.d4science +svn_pass: "{{ vault_svn_pass }}" diff --git a/smartgears/dm_pool_manager/tasks/main.yml b/smartgears/dm_pool_manager/tasks/main.yml index 35d6908..74b8bfb 100644 --- a/smartgears/dm_pool_manager/tasks/main.yml +++ b/smartgears/dm_pool_manager/tasks/main.yml @@ -26,11 +26,18 @@ with_items: '{{ tomcat_m_instances }}' notify: Restart smartgears + - name: Install the ansible repository + become_user: root + apt_repository: repo="deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" update_cache=yes state=present + - name: Install the packages required to dm-pool-manager-service become_user: root - apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800 + apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800 force=yes with_items: '{{ dm_pool_manager_pkgs }}' + - name: First checkout from subversion + subversion: repo={{ dm_pool_svn_url }} dest={{ smartgears_user_home }}/checkout checkout=yes force=yes update=yes username="{{ svn_user }}" password="{{ svn_pass }}" + tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_svn' ] become: True become_user: '{{ d4science_user }}'