~danielside/linuxae

796a0aaef2e24c05ac47bba09d2d47947e0a15b2 — Danielside 2 years ago 9b32753 + 9f6e80e
Merge branch 'feature/izenpe' into 'master'

Feature/izenpe

See merge request danielside/linuxae!5
M linuxaeconfig.yml => linuxaeconfig.yml +9 -2
@@ 12,6 12,7 @@ java8_build: "08"
java8_version: "8u282"
autofirma_version: "1_6_5"
autofirma_version_human: "1.6.5"
izenpe_version: "3.4.2"
dnie_paquete_version: "1.6.6"
genclaves_version: "1.0.1-0"
gestorcerts_version: "1.2.0.3"


@@ 29,7 30,8 @@ opt_software: "/opt/linuxae"
firefox_ruta_usuario: "/home/{{ usuario }}/.mozilla/firefox"

# General de java
java_runtime_config: "-Xmx256M -Xms16M -Dsun.security.smartcardio.library=/usr/lib/{{ arch }}-linux-gnu/libpcsclite.so.1.0.0 -Dsun.security.smartcardio.t0GetResponse=false -Dsun.security.smartcardio.t1GetResponse=false"
java_runtime_cards: " -Dsun.security.smartcardio.library=/usr/lib/{{ arch }}-linux-gnu/libpcsclite.so.1.0.0 -Dsun.security.smartcardio.t0GetResponse=false -Dsun.security.smartcardio.t1GetResponse=false"
java_runtime_config: "-Xmx256M -Xms16M {{ java_runtime_cards }}"
java_jvms_path: "/usr/lib/jvm"
java_lib_ext_path: "lib"



@@ 49,9 51,14 @@ java8_keytool: "{{ java8_path }}/bin/keytool"
java8_keystore: "{{ java8_path }}/jre/lib/security/cacerts"

# Autofirma
autofirma_paquete: "AutoFirma_Linux-1.6.5.zip"
autofirma_paquete: "AutoFirma_Linux-{{ autofirma_version_human }}.zip"
autofirma_instalador: "https://gitlab.com/danielside/linuxae_software/raw/master/{{ autofirma_paquete }}?inline=false"

# Izenpe
izenpe_paquete: "idazki-desktop-linux64_{{ izenpe_version }}.run"
izenpe_instalador: "https://gitlab.com/danielside/linuxae_software/-/raw/master/{{ izenpe_paquete }}"


# Librerías multicard DNIE y FNMT
## Origen del software: https://www.sede.fnmt.gob.es/descargas/descarga-software
genclaves_paquete: "configuradorfnmt_{{ genclaves_version }}_amd64.deb"

M makemelinuxae.yml => makemelinuxae.yml +4 -0
@@ 41,6 41,10 @@
      tags:
        - multicard

    - role: izenpe
      tags:
        - izenpe

    - role: dniepolicia
      tags:
        - dniepolicia

A roles/izenpe/tasks/main.yml => roles/izenpe/tasks/main.yml +57 -0
@@ 0,0 1,57 @@
---
- name: enlazar libreria libpkcs11 desde donde la busca izenpe
  file:
    src: "/usr/lib//libpkcs11-fnmtdnie.so"
    dest: "/usr/lib64/libpkcs11-fnmtdnie.so"
    state: link

- name: bajar izenpe desktop
  get_url:
    url: "{{ izenpe_instalador }}"
    dest: "{{ cache_paquetes }}/{{ izenpe_paquete }}"
  tags:
    - izenpedescarga

- name: instalar Izenpe
  shell: |
    /bin/sh {{ cache_paquetes }}/{{ izenpe_paquete }}
  tags:
    - izenpeinstalacion

- name: sobreescribir lanzador idazki desktop
  template:
    src: idazki-desktop.desktop.j2
    dest: "/usr/share/applications/idazki-desktop.desktop"
    owner: "{{ usuario }}"
    group: "{{ usuario }}"
    mode: "o+x"
    backup: yes
    force: yes

- name: sobreescribir lanzador idazki delegado
  template:
    src: idazki-delegado.desktop.j2
    dest: "/usr/share/applications/idazki-delegado.desktop"
    owner: "{{ usuario }}"
    group: "{{ usuario }}"
    mode: "o+x"
    backup: yes
    force: yes

- name: enlazar lanzador idazki desktop escritorio
  file:
    src: "/usr/share/applications/idazki-desktop.desktop"    
    dest: "/home/{{ usuario }}/Escritorio/idazki-desktop.desktop"
    owner: "{{ usuario }}"
    group: "{{ usuario }}"
    mode: "u+x"
    state: link

- name: enlazar lanzador idazki desktop delegado
  file:
    src: "/usr/share/applications/idazki-delegado.desktop"    
    dest: "/home/{{ usuario }}/Escritorio/idazki-delegado.desktop"
    owner: "{{ usuario }}"
    group: "{{ usuario }}"
    mode: "u+x"
    state: link

A templates/idazki-delegado.desktop.j2 => templates/idazki-delegado.desktop.j2 +12 -0
@@ 0,0 1,12 @@
[Desktop Entry]
Encoding=UTF-8
Name=Idazki Desktop Delegado
Comment=Protocolo idazki
Exec=/usr/local/idazki-desktop/jre/bin/java -Xmx512m -Xms512m {{ java_runtime_cards }} -jar /usr/local/idazki-desktop/idazkiDelegado.jar %U
Terminal=false
Type=Application
Icon=/usr/local/idazki-desktop/izenpe.ico
Categories=Application;TextEditor;
MimeType=text/plain;x-scheme-handler/idazkidelegado
StartupNotify=false
Name[es]=Idazki Giltza 3.4.2

A templates/idazki-desktop.desktop.j2 => templates/idazki-desktop.desktop.j2 +12 -0
@@ 0,0 1,12 @@
[Desktop Entry]
Encoding=UTF-8
Name=Idazki Desktop Protocol
Comment=Protocolo idazki
Exec=/usr/local/idazki-desktop/jre/bin/java -Xmx512m -Xms512m {{ java_runtime_cards }} -jar /usr/local/idazki-desktop/idazki-desktop-protocol.jar %U
Terminal=false
Type=Application
Icon=/usr/local/idazki-desktop/izenpe.ico
Categories=Application;TextEditor;
MimeType=text/plain;x-scheme-handler/idazki
StartupNotify=false
Name[es]=Idazki Desktop 3.4.2