Andrea Dell'Amico
603cc237be
Fix the downloads dir creation. The ownership must be assigned to the gcube user.
2017-09-14 17:41:52 +02:00
Andrea Dell'Amico
ea49eb993a
Move the data_transfer variables from the nginx role to the main smartgears one.
2017-09-14 17:23:17 +02:00
Andrea Dell'Amico
8687fdab47
Add new tags to the task that creates the downloads directory so that we can use it without running all the smartgears role.
2017-09-14 13:30:25 +02:00
Andrea Dell'Amico
704f990d5c
Create a downloads directory inside the gcube home directory where to download all the smartgears related wars and jars.
2017-09-13 18:19:18 +02:00
Andrea Dell'Amico
e9e8fa5c7c
Fix the logback template when we use the SizeAndTimeBasedRollingPolicy, see https://support.d4science.org/issues/9576
2017-09-12 18:25:43 +02:00
Andrea Dell'Amico
7d1dda3e32
Fix a typo.
2017-09-12 15:59:56 +02:00
Andrea Dell'Amico
7ea507790f
Change the default listen host for tomcat to 127.0.0.1.
...
Change the virtualhost filename to a fixed one plus a numeric ID. So if the hostname changes, we do not duplicate files.
2017-09-12 15:35:27 +02:00
Andrea Dell'Amico
be5ff553de
Restart the tomcat instance after a logback.xml update.
2017-09-05 13:09:16 +02:00
Andrea Dell'Amico
04c74c3e67
Add a variable to switch from a time based only logback appender to the new size and time based. The new one needs a logback version newer that the one currently installed. See https://support.d4science.org/issues/9599
2017-09-05 12:43:46 +02:00
Andrea Dell'Amico
30c4f0e415
smartgears: install the logback configuration from a template, if not instructed to use the old way. See https://support.d4science.org/issues/9576
2017-09-04 20:02:37 +02:00
Roberto Cirillo
7258e12d3b
dm-pool-manager update version
...
smartgears update version
2017-09-04 12:00:05 +02:00
Andrea Dell'Amico
7ac767247f
The NRPE handler will run a service restart and not a 'start'.
2017-08-28 19:54:14 +02:00
Andrea Dell'Amico
defbf77503
Add a nagios NRPE handler to restart the tomcat instance when it dies.
2017-08-28 19:46:16 +02:00
Andrea Dell'Amico
47788be177
smartgears: Install the gcube root dev key in preprod too.
2017-07-20 17:41:42 +02:00
Roberto Cirillo
f9b037000d
Merge branch 'master' of gitorious.research-infrastructures.eu:infrastructure-management/ansible-playbooks
2017-07-20 16:06:38 +02:00
Roberto Cirillo
7581efd1ec
../library/roles/smartgears/smartgears/defaults/main.yml update smartgears version
2017-07-20 16:05:47 +02:00
Andrea Dell'Amico
56eaf5e783
d4science-ghn-cluster/group_vars/all/gcube_vault_keys.yml library/roles/smartgears/dataminer_app/tasks/install-gcube-key.yml library/roles/smartgears/smartgears/tasks/install-gcube-keys.yml: New gcube keys.
2017-07-20 15:25:55 +02:00
Andrea Dell'Amico
1fc1d05687
library/roles/smartgears/smartgears-nginx-frontend: Fix the nginx template so that whn-manager is always added. See https://support.d4science.org/issues/9209
2017-07-07 13:42:33 +02:00
Roberto Cirillo
744c72e1b9
inventory/hosts.dev added EGI instances
...
roles/haproxy_frontend/templates/haproxy-dataminer.cfg.j2 added EGI instances
../library/roles/smartgears/smartgears/defaults/main.yml update smartgears distribution
2017-05-25 10:57:12 +02:00
Andrea Dell'Amico
f4bbb267ab
library/roles/smartgears/smartgears/templates/get-scopes.j2: Fix the case when we are upgrading but we cannot get the state from the IS. In that case, we request new tokens to the IS.
2017-05-11 17:45:23 +02:00
Andrea Dell'Amico
9f0f5309ba
library/roles/smartgears/smartgears/defaults/main.yml: Add the smartgears_gcube_repository variable, see https://support.d4science.org/issues/8466
2017-05-09 17:29:53 +02:00
Roberto Cirillo
a6927b06a2
../library/roles/smartgears/smartgears/tasks/install-gcube-keys.yml added new VO keys
2017-04-28 17:23:53 +02:00
Roberto Cirillo
30adee8788
inventory/hosts.production host changed from sdi-p-d4s to sdi-d4s
...
../library/roles/smartgears/smartgears/defaults/main.yml fix sintax error
2017-04-28 17:14:08 +02:00
Roberto Cirillo
312ca95eec
group_vars/all/gcube_vault_keys.yml added keys for new VOs Edison and SmartArea
...
./library/roles/smartgears/smartgears/defaults/main.yml added new VO definition for the following VOs Edison OpenAIRE
2017-04-28 11:09:45 +02:00
Andrea Dell'Amico
74482a285d
library/roles/smartgears/smartgears/defaults/main.yml: Add a smartgears_global_base_url variable that can be used to replace the base URLs placed everywhere.
2017-04-20 16:56:48 +02:00
Andrea Dell'Amico
9d79eaa89a
library/roles/smartgears/smartgears/templates/get-scopes.j2: Fix the get-scopes so that it requests tokens for the port 80 even when we redirect to https.
2017-04-12 15:34:41 +02:00
Andrea Dell'Amico
2238f7813c
library/roles/smartgears/smartgears/templates/container.xml.j2: Do not set the https port if the https redirection is enabled. smartgears needs to still publish itself on port 80.
2017-04-11 17:37:50 +02:00
Andrea Dell'Amico
691b10ad28
library/roles/smartgears/{dataminer_app,smartgears}: Handle the SoBigData gcube key.
2017-03-29 17:32:05 +02:00
Andrea Dell'Amico
c9a63a6330
library/roles/smartgears: Handle the case when we need VO level authorization. Use the locally saved scopes instead of the provided ones. See https://support.d4science.org/issues/7880
2017-03-28 20:19:36 +02:00
Andrea Dell'Amico
8c3a37c5bc
library/roles/smartgears/smartgears: Changes to the container.xml template and to the default variables to manage the case when we need authorization for all the VREs.
2017-03-27 17:39:44 +02:00
Andrea Dell'Amico
a129368684
library/roles/smartgears/smartgears/templates/tomcat-instance-default.j2: we can now add more environment variables to the file.
2017-03-23 17:33:43 +01:00
Andrea Dell'Amico
b9a6310195
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Correctly remove the state when instructed to do so.
2017-03-17 15:20:46 +01:00
Andrea Dell'Amico
4b2b0fa2bc
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Add a task to force a restart when a variable has been defined.
2017-03-17 13:17:46 +01:00
Roberto Cirillo
1c7b6b4fa9
../library/roles/smartgears/smartgears/defaults/main.yml update smartgears distribution version
2017-02-24 10:48:14 +01:00
Andrea Dell'Amico
2a16a82fd0
library/roles/smartgears/dataminer_app/tasks/install-gcube-key.yml: Remove the old keys when switching environment.
...
library/roles/smartgears/smartgears/templates/get-scopes.j2: Fix the creation of the container.xml file. Updates were failing because the file was not writeable.
2017-02-09 16:34:42 +01:00
Andrea Dell'Amico
2513c63eff
library/roles/smartgears/smartgears/files/TokenGenerator.java: It lives on subversion now.
2017-02-02 11:44:44 +01:00
Andrea Dell'Amico
4ae4994f56
library/roles/smartgears/smartgears/files/TokenGenerator.class: New version of the token generation. Now the scope names are listed as comments near the related token.
2017-01-27 16:10:34 +01:00
Andrea Dell'Amico
ec51482863
library/roles: d4s_user_services_perms, fixes to the tasks so that they work if we have multiple tomcat installations but only a subset of them have smartgears installed.
...
library/roles/smartgears/smartgears/templates/container.xml.j2: Cosmetic fix.
2017-01-25 16:03:23 +01:00
Andrea Dell'Amico
dda9366e83
library/roles/smartgears, d4science-ghn-cluster/group_vars/all/gcube_vault_keys.yml: Add the D4Research gcube key.
2016-12-21 14:18:24 +01:00
Andrea Dell'Amico
4b0c1ca055
library/roles/smartgears/smartgears: Now the container.xml is generated by the get-scopes script. Only if a token was passed. See https://support.d4science.org/issues/6203 .
...
library/roles/smartgears/smartgears: Fix the tasks so that a multiple tomcat instances installation is possible, having smartgears running on only one tomcat instance.
2016-12-14 18:32:15 +01:00
Andrea Dell'Amico
6f795a39b8
library/roles/smartgears/smartgears: Remove smartgears < 2.0 related stuff.
2016-12-06 15:36:51 +01:00
Roberto Cirillo
23c23057d6
../library/roles/smartgears/smartgears/defaults/main.yml added smartgears_publication_frequency default
...
../library/roles/smartgears/smartgears/templates/container.xml.j2 set publication frequency as variable
2016-12-02 11:54:31 +01:00
Roberto Cirillo
b0d0c60c04
group_vars/rstudio_dev/rstudio.yml added smartgears_scope variable definition
...
../library/roles/rstudio-server/tasks/main.yml added igoring error on download certificate task
../library/roles/smartgears/smartgears/templates/container.xml.j2 update "frequencypublication" from 60 to 180 sec
2016-12-01 17:06:25 +01:00
Roberto Cirillo
19ee922543
group_vars/rstudio_dev/rstudio.yml added preproduction scopes
...
group_vars/tabulardata_pre/tabulardata_pre.yml add tabulardata variables
inventory/hosts.pre added tabulardata host
../library/roles/smartgears/r_connector/defaults/main.yml update rconnector version
../library/roles/smartgears/smartgears/defaults/main.yml update smartgears distribution version
2016-12-01 16:28:37 +01:00
Andrea Dell'Amico
14720d656d
library/roles/smartgears/smartgears/defaults/main.yml: Add defaults to ease the enabling of jmx support.
2016-11-23 19:18:28 +01:00
Andrea Dell'Amico
e49a49e4e2
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Always install the TokenGenerator.class file.
2016-11-16 11:39:11 +01:00
Andrea Dell'Amico
55cdf9feb1
library/roles/smartgears/smartgears: Put the list of scopes into a separate file.
2016-11-04 19:42:36 +01:00
Andrea Dell'Amico
f8d43ccf4b
library/roles/smartgears/smartgears: Do not store the user token inside the get-scopes script.
2016-11-04 18:13:33 +01:00
Andrea Dell'Amico
9adf0e8194
library/roles/smartgears/smartgears: do not remove the state when upgrading the service. Now to force a state removal the variabile smartgears_remove_state must be set to True.
2016-11-03 16:35:38 +01:00
Andrea Dell'Amico
b1e651bf79
library/roles/smartgears/smartgears/templates/get-scopes.j2: Fix the get-scopes script: the correct arguments order is host token port destfile scope1 [scopen]
...
d4science-ghn-cluster/group_vars/rstudio/rstudio.yml: Set the correct scopes.
2016-10-27 18:04:33 +02:00
Andrea Dell'Amico
cc6a29ce51
library/roles/smartgears/smartgears: directly unarchive the distribution without saving the tar file locally.
2016-10-05 17:56:44 +02:00
Andrea Dell'Amico
4765fea33f
library/roles/smartgears/smartgears/files/TokenGenerator*: New TokenGenerator. Differences are only cosmetic.
2016-10-05 15:11:34 +02:00
Roberto Cirillo
d86db8ea5a
../library/roles/smartgears/smartgears/defaults/main.yml update smartgears version
2016-10-05 14:59:09 +02:00
Andrea Dell'Amico
4a9c7ddee3
library/roles/smartgears/smartgears: Fix the get-scopes script so that it takes the right port.
2016-10-05 10:36:10 +02:00
Andrea Dell'Amico
b7776c583a
library/roles/smartgears/smartgears: New TokenGenerator. Fix the container.xml template.
2016-10-04 16:58:05 +02:00
Andrea Dell'Amico
bd076197a3
library/roles/smartgears/smartgears/templates/container.xml.j2: Use the https port only if http_redirect_to_https is True.
2016-10-03 22:51:36 +02:00
Andrea Dell'Amico
9714cc66ee
library/roles/smartgears/smartgears/files/TokenGenerator.java: New version of the token generator.
2016-09-30 18:39:27 +02:00
Andrea Dell'Amico
b5e2f43bd7
library/roles/smartgears/smart_executor: Fix the upgrade scenario.
...
library/roles/smartgears/smartgears: Fix the new token management.
d4science-ghn-cluster/group_vars/smart_genericworker_dev_devnext: The new token management needs a different scopes handling. And a new variable: smartgears_scopes.
2016-09-27 18:06:31 +02:00
Andrea Dell'Amico
e8ffed284b
library/roles/smartgears/smartgears: The new smartgears distributions are going to use the new authorization service. The container configuration changes heavily.
2016-09-27 15:35:33 +02:00
Andrea Dell'Amico
18bbc85a22
library/roles/smartgears/smartgears: container.xml can contain scopes for more than one context.
2016-09-09 13:33:34 +02:00
Andrea Dell'Amico
3118736ea0
library/roles/smartgears/smartgears: Add the root VO as available scope by default, when we explicitly set a scope list.
2016-09-01 11:42:36 +02:00
Andrea Dell'Amico
31c6288e85
library/roles/smartgears/r_connector: Install the adduser script, really.
...
library/roles/smartgears/smartgears/templates/container.xml.j2: The VO can be a list. Change the default and the template.
2016-07-21 17:14:13 +02:00
Andrea Dell'Amico
f84dc3d539
library/roles/smartgears: install-gcube-key is not a role anymore, but a task of the smartgears role.
2016-07-20 13:23:35 +02:00
Andrea Dell'Amico
0a25209c25
library/roles/smartgears/install-gcube-key: Now we delete the unwanted keys.
2016-07-20 13:23:35 +02:00
Roberto Cirillo
6bb18d2555
library/roles/smartgears/smartgears/defaults/main.yml adde application context to tomcat multi instances
...
Merge branch 'master' of gitorious.research-infrastructures.eu:infrastructure-management/ansible-playbooks
Conflicts:
library/roles/smartgears/smartgears/defaults/main.yml
2016-07-18 18:46:40 +02:00
Roberto Cirillo
a96ff08a5b
../library/roles/smartgears/smartgears/defaults/main.yml added multiple application context on tomcat-multi-instances
2016-07-18 18:31:26 +02:00
Andrea Dell'Amico
4d53951c93
library/roles/smartgears/smartgears/defaults/main.yml: The tomcat app contexts is an array.
2016-07-15 19:55:04 +02:00
Andrea Dell'Amico
e642ffb648
infrastructure-services: Some cleanups
2016-07-15 19:52:44 +02:00
Andrea Dell'Amico
bac130afce
library/roles/smartgears/smartgears/defaults/main.yml: Put the tomcat contexts in a separate library
2016-07-15 18:59:16 +02:00
Andrea Dell'Amico
a06ab825a4
library/roles/smartgears: Move the vo context management from the smart_executor role to the smartgears one. Rename variables consequently. See https://support.d4science.org/issues/4736 .
2016-07-15 13:36:46 +02:00
Andrea Dell'Amico
ae8283094a
library/roles/smartgears: Simplify the smartgears template management. Add a conditional to handle the case where no VO is needed, see https://support.d4science.org/issues/4723 .
2016-07-14 12:40:31 +02:00
Andrea Dell'Amico
b02841191c
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: do not restart smartgears after running the log level management script: we need a way to know when a change was performed.
2016-07-08 17:38:13 +02:00
Roberto Cirillo
c787b44fc4
../library/roles/smartgears/smartgears/tasks/smartgears-app.yml fix change loglevel
2016-07-08 17:23:49 +02:00
Andrea Dell'Amico
ac277cb6af
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the command that sets the logback log level.
2016-07-08 16:43:50 +02:00
Andrea Dell'Amico
965d6bf6ae
library/roles/ubuntu-deb-general/defaults/main.yml: Install xmlstarlet.
...
library/roles/smartgears: Change the default versions to the new production ones.
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Task that sets the loglevel. The default is WARN.
2016-07-07 17:39:27 +02:00
Andrea Dell'Amico
874ada60eb
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the container.xml installation.
...
library/roles/smartgears/dataminer_app: More files needed.
2016-06-23 12:15:37 +02:00
Andrea Dell'Amico
49be6b992d
library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the shell command that set the permissions.
2016-06-21 20:41:38 +02:00
Andrea Dell'Amico
24e5f76098
library/roles/ghn-gcore, library/roles/smartgears: Move the ghn and smartgears roles from d4science-ghn-cluster to the shared library
2016-06-13 16:24:30 +02:00