Commit fac1de75 authored by naji's avatar naji
Browse files

ajout de pastis dans le playbook vitamui

    Conflicts:
        deployment/ansible-vitamui/app_pastis.yml
parent a1d41abf
......@@ -225,6 +225,28 @@
verbe: "Starting"
etat: "started"
###################### Pastis #################
- hosts: hosts_vitamui_pastis_external
gather_facts: no
roles:
- service_state
# - check_port
vars:
service_name: "{{ vitamui.pastis_external.service_name }}"
verbe: "Starting"
etat: "started"
- hosts: hosts_ui_pastis
gather_facts: no
roles:
- service_state
# - check_port
vars:
service_name: "{{ vitamui.pastis.service_name }}"
verbe: "Starting"
etat: "started"
# ########################################################
# # ZONE Data
# ########################################################
......
......@@ -81,6 +81,16 @@
verbe: "Stopping"
etat: "stopped"
- hosts: hosts_ui_pastis
gather_facts: no
roles:
- service_state
# - check_port
vars:
service_name: "{{ vitamui.pastis.service_name }}"
verbe: "Stopping"
etat: "stopped"
- hosts: hosts_ui_identity_admin
gather_facts: no
roles:
......@@ -145,6 +155,16 @@
tags:
- referential_app
- hosts: hosts_vitamui_pastis_external
roles:
- service_state
# - check_port
vars:
service_name: "{{ vitamui.pastis_external.service_name }}"
verbe: "Stopping"
etat: "stopped"
tags:
- pastis_app
- hosts: hosts_vitamui_ingest_external
gather_facts: no
......
......@@ -89,6 +89,16 @@
- zone-vitamui-app
- iam-external
- hosts: hosts_vitamui_pastis_external
roles:
- uninstall
vars:
service_name: pastis-external
uninstaller_type: vitamui-service
tags:
- zone-vitamui-app
- pastis-external
########################################################
# ZONE CAS
########################################################
......@@ -125,6 +135,16 @@
- zone-vitamui-ui
- ui-portal
- hosts: hosts_ui_pastis
roles:
- uninstall
vars:
service_name: ui-pastis
uninstaller_type: vitamui-service
tags:
- zone-vitamui-ui
- ui-pastis
########################################################
# ZONE ADMIN
########################################################
......
# Archive Search external calls archive internal
# Pastis external calls pastis internal
- hosts: hosts_vitamui_pastis_external
gather_facts: no
any_errors_fatal: true
......@@ -12,7 +12,7 @@
password_truststore: "{{ truststores_client_external }}"
consul_tags: "pastis-external, api, external"
# UI archive search calls archive external
# UI Pastis calls pastis external
- hosts: hosts_ui_pastis
gather_facts: no
......@@ -26,4 +26,3 @@
password_keystore: "{{ keystores_server_ui_pastis }}"
password_truststore: "{{ truststores_server }}"
consul_tags: "ui-pastis, ui"
......@@ -30,6 +30,8 @@
- import_playbook: app_referential.yml
- import_playbook: app_pastis.yml
- import_playbook: reverse_proxy.yml
# condition with extra vars -e extra=yes inside roles
......
$ANSIBLE_VAULT;1.1;AES256
62356665343462353036626632373930336665343761613936313038383137636231666435343863
6664643533633034626238393163376433393331336638610a666132313162353030303939333639
62393461363534343834653039393261383530656635616438396664326434613164373333393463
3062356361333561630a666166633865346561373265633263323131666332393762663336353165
62323166363733643263633863393333313132653338303538353631336533643333353737313062
31656564646465363761366465336130626264363364373330343538366338383165313662303561
38633232343935316231643965633364653332333230616331623862383063303230373564373732
37383032656164633763386561643630326535306134336437633563356266616666333963643337
33373135653666386233333163663330373832626566666262373734643130643465353961616234
33383638646563306363613630626134643036306434313237646439383834636633336535636135
35353562346364323837353436396539666238313235356336376366386261396435636434663466
65643062366561653931333536363333343165643237623865343764646663646134306431643962
35643163363133643630623836656132623566633063356130393231646362616337613833613834
37363861336461356236303337376262656539363161626363636262373366633738346133343337
39623462316631636337333032336165323236343133613165623536356664383934353435646432
35373831313834333666323733666635393065386236653838326636646630306562616665396266
34613566303962333430316561643831396566363734653336646262306231366264643962393138
37306232623365653739386666326566336231393962366133613335333365613064366637336537
66333263393539343536303238663733656638346630623464366630656465666237333930653233
38613465616539626465353262383130623332386232326131373534396332366238333934343636
37346439306335626231343465633135643433356164383662363539643363333933656434336264
33643236373063393034653937653264323539386233303262353939323036393466383835366264
36373833343465623035333033613761353030336539336434376662333230393036626564313737
64386637393839333538633036623737376634356132353732383039383166303431663233333030
36316363303265343339303534666438316561353564653539396365333239626130333063363539
37383465666465653031386639363535353636376437646435353032613638303831303862303336
30353766346166363639316433323531626337323834643630613235653863316236383338393137
39666164386430353934653436386134323736363635633732333834653131633566326561313562
39313232643630313431613461353662653031643363313461663931303866336131663534373435
61653232393461306666633638393766386130346537383665313263366630643062376332333161
31643532616164396562323539613235343363376334316330303034326162633734653965353162
65313830313131366632636163303734333739333732396564373139323638633538633461326630
31343433366136353138623362316663313361366439653034333339643032373033626430626139
64626235613066336433393361363430316531303962303930306332386237653731356564396434
65663731383032356334373739636638633236373835326138643766346135393633366539646364
37333634643433343533646463306334346337613161346538326162626534336539376230656363
61393238316139353230633931346165616436373436326165383161316232336537633631313038
64323761323161616131323537383537366136363031326531383462643233356536656462666561
32323261643633396134343765303939353234373432633836363766323735323238646162363932
63373736323162373634326563616666326631633937323331363666636233663066326266353831
35636334326538336331663663633163376634613064623962363563363637636263653935306638
38326161646138346631333832306630633338383761396130313231636538633634373730366165
33663063303864383766633364303537393939386265666361623933363339633261303033303264
31663732333466376262653633623963323137663766333336636165626334616261333565616130
62643139366462353466643538303533663136303134383361336366353466656130336463643935
37383535353335376639336336646264343438376138393765323833663738363439323737336464
30386138373633633830633161663232343964653165653164623736643661336232313533346131
34353033363238636635636465643939353630633135623466343439643736623163646166353162
66366639636439653737303562366139633762366365356437653061643833316537336166316135
61623735366465363035663965346466383365303231666636323336653731363165373932643630
37663838343663353338653139303531333931623462376565316331623939326432396462323464
39646565303535626461636231633037313536353365343436616434643663313639393433396437
36323562646534616338353134323936626266633439633330313463393835373133363035333033
35376465393736633534336162336633616134616261353065666231363464623537333162623162
37383336623766343063393265363334623532333338313136376535393364656561666539313231
33363032646234656435636465343465303433653664646530383463313639393535316665636134
35373735303862356638366532363330623532366566636666653366613339383063653132326165
34626638396339623063663565636136383539363038343939653161666531326532366464623062
36663635333462656234663439626335323663616563646435306438613463363631333634323832
33666163626639353935383834623435666261656339636661363234653536656539373464623361
65646536313830623938393365646364616364333335303036646637343037363536396339353162
61376563393364396634646330396533653438366466363761633531303536613431316333643336
33396339326430393964633331643562646233383734316639613962656663383437656630623335
37346630646565663530303331376539373839656533663533396363613062653965393863626663
64346332376663623765306436396565346437353831353466653635316465313032623939343366
36653366356536356636643438623266326636333931383935653739633338366530396636343031
33376261373631643261363462333065313736613038376638386666353961356362356365306537
34613635333935303134383430613635366262646562393130363566343331333932323533373665
35643534653264353233613432333737633438656161363535313363663436663165
37393164313639613966363734666434636334343137313932623639323464663634346636306564
3464396231303134656233386232663131656664333031650a643534653766313762323834393562
61623266623939666330363564323539633966313561616330306236396237346338313537316166
3531643531333339630a663931373636623635356333353538336235383831626437343966306238
32373534663662396437303663653931326636336263356138653963373332653761663261326139
63346231633833643839613136336563383633343134306561633030363164386261343462366634
64393932396236316136336630333562353336343862643865646135323236323061353663316566
31623463663162363831303865333636326131623234633539306464373431383238663961373865
33363239623065356230613262653331383862356361393234313161306631353632613837316132
37633130656130643232393536386161333730373935386164326534333361666331336264623864
64373361663834303633346665353133303332396262613263363437333266393965353561623432
64643462306439653633646339653365616332653831663633316562653563373561613462643161
34643164623666363662353630316262666534663434623334363461636239633538376533666338
62356566306439616439633730373562323036643138356161633762393663613365326239353661
63633235333561386263623532356136323634306338313963363063323137613335393035396238
63633133656364343935633131643861663939656233393862373338346563316337626637623733
36623533393138666266643138306337646633306462366664303430373631633334363731613635
62323139613766316336393733303732663638363730663663613266396162653636396533383539
61306132333237666562323763643635356337353632613030343837656237656539396466323437
35316531363766333833316137303031613638633434383634613639323638306533383933376264
37633738373232356661353935343661633962373639376237636364386639373433343066303834
62653661373437623638626461623761663038363233353031346131383534326330366463366435
38396236353931333038643466623730386661343436393539636361316439376634326464663136
30613930396537656136323033656238396232333562333330353766633563643937326339303738
30326637613034643433623834386263366566663535313162303365373964306561643037383639
39353234663737323531656562666634656633396164653965343534366662373564376661373237
31643730623738653335353032343232636364366336356534656532336534663530393963326238
34656365356339633863633830633730643131373533356531396338666230363930383161383861
62323065656333663538653433333537393765663332373735323164643136353866373962306138
63373263306166393465353034613564373164366263336433316234346266353033383838616365
38353232363037386666343863313762393431353066666366646562646135366366653936346338
64316435393663343937353231376563313465396538393830383864393739656531373734373730
39613839323934346430386438643062386635653633303237326233656631386139316533346361
34326437313063336164643238623764626466623563363935373461353331333066613335666666
31313632376231613537666438396639383133633731373961346563313334333765653965343136
31363366343764633966663239643739663863343032623834613164353861376539663963336134
35313430636263316234616237663532303765323066616336643963643062326634373836643439
32663562386662313566376133666637396437303637333930303732393536363730636136373631
39656438313563303332383066336330316365663438663933633032393935633931386665313332
34373764613630323162303335333537366232383839373334636234373739393537323761306632
36386132646236356365623437313439666433366361333665306432396239303933626261623463
65396366366464653839623137366533663033623461303937616232343031616562653936383062
35656438616464623234363435616638363264346235316166626237396634303239373663303137
62386565323366656236623834343731613038633532613338656134343530316330333265383832
33323761383464356639613837393263616431623362306130373933363738346231393834646363
64366438363563366631663063376239616631666439633661613135396661376638663338326233
34396234613466373466666332326362626263346634643133626237366262376362373963383733
66633065656362383232616664613963623836666637636333383833336662313839626239636435
30663966376435623064306530616634326132363062336234663264396464373734626235333030
32663233653032646566623964376437313232303238666264373765663733383865353962326630
38633838396165353838623530313731376438666234303538303364633662386130336234353161
34373263306465623132316266653861326365323966306133373566353761633235373634353139
34656132323838643032386565623363386661633062333930626366393665336633653662383661
35616633333165623766666261343939356437323035623562383239356630623666393433326133
30613164373136323531643634346363363539333231623562313730656439336232383966303066
35396365303931353338393532633733303335376538346135316361386166383032633931623064
34656631666461356232616561336238663835373265643965323230333931333232666535653437
32383238333135363936366266663064646563333837613136613136313738363763323630313936
38653830306634386636393964313337323330333430396439323938313863313939386366323936
37366137633663303330326135666436393738393362633839303263383037393662613761616235
39313931333161333335316265613066663765633933623966323939326462323965333938626465
37353539343033313832376130343030356637643763336235646537383136396365376465633334
39346435323665333538613137333033643733353234383862616632306433393163303566363864
65383433386431306161653364373539356533636632313930653233363437393533626236303630
31656633633865336530643531623466373434663866613431643165383930343163663338626633
32643230626634633664643334613630303032363464613430643530396330353661333931343464
37343265333763306333653931666665373662653165333530636563363131623738383936346534
36336666643135623432363134396538346162393834313064326463373834616332346135623232
35623634626663376435643339616132633531323034363264393866353033656664336661363536
32313039656631363933386430656438633934356235366631343461303836383364316665626462
39383235346362393334646663646434656237373336656563346564643563623035336635396235
32303262393662393065333633346166346166323762363439336161376635623437616635363231
39373830623564663335663137383039383765616330636638323362393437313234633034626632
39343934313830393135373465613062356334323466653339343332626136653635356237623134
383635333830666433323138363339616136
......@@ -396,6 +396,45 @@ vitamui:
root_log_level: "ERROR"
vitamui_level: "DEBUG"
pastis_external:
host: "vitamui-pastis-external.service.{{ consul_domain }}"
vitamui_component: "pastis-external"
vitamui_component_type: "external"
package_name: "vitamui-pastis-external"
service_name: "vitamui-pastis-external"
store_name: "pastis-external"
port_service: 8015
port_admin: 7115
secure: true
jvm_log: false
logging_level: "INFO"
log:
logback_max_file_size: "10MB"
logback_max_history: 30
logback_total_size_cap: "5GB"
root_log_level: "ERROR"
vitamui_level: "DEBUG"
pastis:
host: "pastis.service.{{ consul_domain }}"
vitamui_component: "ui-pastis"
vitamui_component_type: "ui"
package_name: "vitamui-ui-pastis"
service_name: "vitamui-ui-pastis"
store_name: "ui-pastis"
port_service: 9015
port_admin: 7015
secure: true
jvm_log: false
logging_level: "INFO"
log:
logback_max_file_size: "10MB"
logback_max_history: 30
logback_total_size_cap: "5GB"
root_log_level: "ERROR"
vitamui_level: "DEBUG"
################################################################################
vitamui_platform_informations:
......
......@@ -36,6 +36,7 @@ hosts_ui_search
hosts_ui_ingest
hosts_ui_archive_search
hosts_ui_referential
hosts_ui_pastis
[hosts_ui_identity]
# EDIT: Mandatory
......@@ -55,6 +56,8 @@ hosts_ui_referential
[hosts_ui_search]
# EDIT: Mandatory
[hosts_ui_pastis]
# EDIT: Mandatory
################################################################################
# ZONE ADMIN
......@@ -90,6 +93,7 @@ hosts_vitamui_archive_search_internal
hosts_vitamui_referential_external
hosts_vitamui_referential_internal
hosts_vitamui_security_internal
hosts_vitamui_pastis_external
[hosts_vitamui_iam_external]
# EDIT: Mandatory
......@@ -118,6 +122,8 @@ hosts_vitamui_security_internal
[hosts_vitamui_security_internal]
# EDIT: Mandatory
[hosts_vitamui_pastis_external]
# EDIT: Mandatory
################################################################################
# ZONE DATA
......
......@@ -35,6 +35,7 @@ hosts_ui_search
hosts_ui_ingest
hosts_ui_archive_search
hosts_ui_referential
hosts_ui_pastis
[hosts_ui_identity]
# EDIT: Mandatory
......@@ -60,6 +61,10 @@ localhost
# EDIT: Mandatory
localhost
[hosts_ui_pastis]
# EDIT: Mandatory
localhost
################################################################################
# ZONE ADMIN
################################################################################
......@@ -94,6 +99,7 @@ hosts_vitamui_archive_search_internal
hosts_vitamui_referential_external
hosts_vitamui_referential_internal
hosts_vitamui_security_internal
hosts_vitamui_pastis_external
[hosts_vitamui_iam_external]
# EDIT: Mandatory
......@@ -131,6 +137,10 @@ localhost
# EDIT: Mandatory
localhost
[hosts_vitamui_pastis_external]
# EDIT: Mandatory
localhost
################################################################################
# ZONE DATA
################################################################################
......
......@@ -34,6 +34,7 @@ function generateCerts {
generateHostCertAndStorePassphrase ingest-external hosts_vitamui_ingest_external
generateHostCertAndStorePassphrase archive-search-external hosts_vitamui_archive_search_external
generateHostCertAndStorePassphrase pastis-external hosts_vitamui_pastis_external
#Zone UI
generateHostCertAndStorePassphrase ui-portal hosts_ui_portal
generateHostCertAndStorePassphrase ui-identity hosts_ui_identity
......
serverHost: {{ vitam_vars.access_external.host }}
serverPort: {{ vitam_vars.access_external.port_service }}
secure: true
sslConfiguration :
keystore :
- keyPath: {{ vitamui_folder_conf }}/{{ vitam_cert.filename }}
keyPassword: {{ vitam_cert.password }}
truststore :
- keyPath: {{ vitamui_folder_conf }}/{{ vitam_cert.truststore_filename }}
keyPassword: {{ vitam_cert.password_truststore }}
hostnameVerification: true
rng:
base:
file: rng/Profil_seda_pastis_mvp.rng
directory: rng/
json:
base:
file: rng/ProfileJson.json
pua:
definitions:
file: pua_validation/ProfileJson.json
spring:
cloud:
consul:
enabled: true
host: consul.service.{{ consul_domain }}
discovery:
preferIpAddress: true
tags: {{ consul_tags }}
instanceId: {{ vitamui_struct.vitamui_component }}-${server.port}-${spring.cloud.client.hostname}
servlet:
multipart:
max-file-size: -1
max-request-size: -1
logging:
config: {{ vitamui_folder_conf }}/logback.xml
level:
fr.gouv.vitamui.pastis.server: {{ vitamui_struct.log.vitamui_level }}
server:
port: {{ vitamui_struct.port_service }}
{% if vitamui_struct.secure|lower == "true" %}
ssl:
key-store: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
key-store-password: {{ password_keystore }}
key-password: {{ password_keystore }}
trust-store: {{ vitamui_folder_conf }}/truststore_{{ vitamui_certificate_type }}.jks
trust-store-password: {{ password_truststore }}
client-auth: need
enabled-protocols: {{ssl_setting.enabled_protocols}}
ciphers: {{ssl_setting.ciphers}}
error:
path: /error
{% endif %}
tomcat:
connection-timeout: {{ vitamui_struct.server_connection_timeout }}
accesslog:
enabled: "{{ vitamui_struct.jvm_log|lower }}"
directory: "{{ vitamui_folder_log }}"
management:
server:
port: {{ vitamui_struct.port_admin }}
ssl:
enabled: false
pastis-external:
security-client:
server-host: {{ vitamui.security_internal.host }}
server-port: {{ vitamui.security_internal.port_service }}
{% if vitamui.security_internal.secure|lower == "true" %}
secure: {{ vitamui.security_internal.secure|lower }}
ssl-configuration:
keystore:
key-path: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
key-password: {{ password_keystore }}
type: JKS
truststore:
key-path: {{ vitamui_folder_conf }}/truststore_{{ vitamui_certificate_type }}.jks
key-password: {{ password_truststore }}
hostname-verification: false
{% endif %}
iam-internal-client:
server-host: {{ vitamui.iam_internal.host }}
server-port: {{ vitamui.iam_internal.port_service }}
{% if vitamui.iam_internal.secure|lower == "true" %}
secure: {{ vitamui.iam_internal.secure|lower }}
ssl-configuration:
keystore:
key-path: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
key-password: {{ password_keystore }}
type: JKS
truststore:
key-path: {{ vitamui_folder_conf }}/truststore_{{ vitamui_certificate_type }}.jks
key-password: {{ password_truststore }}
hostname-verification: false
{% endif %}
server-identity:
identityName: {{ vitamui_site_name if groups['hosts_vitamui_consul_server'] | default([]) | length > 0 else vitam_site_name }}
identityRole: {{ vitamui_struct.vitamui_component }}
identityServerId: 1
opentracing:
jaeger:
enabled: {{ opentracing.jaeger.enabled }}
logSpans: {{ opentracing.jaeger.log_spans }}
expandExceptionLogs: {{opentracing.jaeger.expand_exception_logs}}
udp-sender:
host: {{ opentracing.jaeger.udp_sender.host }}
port: {{ opentracing.jaeger.udp_sender.port }}
# TECHNICAL PROPERTIES / DON'T put environment properties
# This property can be override by a config file give at run time with spring.config.location
spring:
cloud:
consul:
enabled: true
host: consul.service.{{ consul_domain }}
discovery:
preferIpAddress: true
tags: {{ consul_tags }}
instanceId: {{ vitamui_struct.vitamui_component }}-${server.port}-${spring.cloud.client.hostname}
servlet:
multipart:
max-file-size: -1
max-request-size: -1
server:
host: {{ vitamui.pastis.host }}
port: {{ vitamui.pastis.port_service }}
{% if vitamui.referential.base_url is defined %}
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
min-response-size: 1024
servlet.context-path: /
servlet.session.cookie.path: /
{% else %}
servlet.context-path: /referential
servlet.session.cookie.path: /referential
{% endif %}
scheme: {% if vitamui.referential.secure|lower =='true' %}https{% else %}http{% endif %}
{% if vitamui_struct.secure|lower =='true' %}
ssl:
key-store: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
key-store-password: {{ password_keystore }}
key-password: {{ password_keystore }}
enabled-protocols: {{ssl_setting.enabled_protocols}}
ciphers: {{ssl_setting.ciphers}}
error:
path: /error
{% endif %}
tomcat:
connection-timeout: {{ vitamui_struct.server_connection_timeout }}
accesslog:
enabled: "{{ vitamui_struct.jvm_log|lower }}"
directory: "{{ vitamui_folder_log }}"
management:
server:
port: {{ vitamui_struct.port_admin }}
ssl:
enabled: false
logging:
config: {{ vitamui_folder_conf }}/logback.xml
server-identity:
identityName: {{ vitamui_site_name if groups['hosts_vitamui_consul_server'] | default([]) | length > 0 else vitam_site_name }}
identityRole: {{ vitamui_struct.vitamui_component }}
identityServerId: 1
ui-pastis:
platform-name: "{{ vitamui_platform_informations.platform_name }}"
customer:
technical-referent-email: "{{ vitamui_platform_informations.customer.technical_referent_email }}"
website-url: "{{ vitamui_platform_informations.customer.website_url }}"
iam-external-client:
server-host: {{ vitamui.iam_external.host }}
server-port: {{ vitamui.iam_external.port_service }}
{% if vitamui.iam_external.secure|lower == "true" %}
secure: {{ vitamui.iam_external.secure|lower }}
ssl-configuration:
keystore:
key-path: {{ vitamui_folder_conf }}/keystore_{{ vitamui_struct.package_name }}.jks
key-password: {{ password_keystore }}
type: JKS
truststore:
key-path: {{ vitamui_folder_conf }}/truststore_{{ vitamui_certificate_type }}.jks
key-password: {{ password_truststore }}
hostname-verification: false
{%endif %}
portal-logo: "{{ vitamui_platform_informations.theme.portal_logo }}"
header-logo: "{{ vitamui_platform_informations.theme.header_logo }}"
footer-logo: "{{ vitamui_platform_informations.theme.footer_logo }}"
user-logo: "{{ vitamui_platform_informations.theme.user_logo }}"
portal-message: "{{ vitamui_platform_informations.portal_message }}"
portal-title: "{{ vitamui_platform_informations.portal_title }}"
theme-colors:
vitamui-primary: "{{ vitamui_platform_informations.theme.theme_colors.vitamui_primary }}"