Merge enable/disable_import_cv_xml

This commit is contained in:
Marcus Gillitzer 2021-07-13 12:47:14 +02:00
commit 6cf6012e6e
23 changed files with 709 additions and 23 deletions

View File

@ -1 +1 @@
spolsa5069stu02.spolizei-bw.edu
epolsa5073bit03.tpolizei-bw.de

View File

@ -76,6 +76,9 @@
#- ams_0015_8.0.9.0
- ams_0017_14.1.4.0
- ams_0017_14.1.4.0_AdminServer
- enable_import_cv_xml
#- disable_import_cv_xml
#handlers:
#- name: stopALL
@ -110,13 +113,15 @@
become: yes
roles:
- chrony
#- chrony
#- base_installation
#- git
#- ams_0008_8.0.8.0
#- ams_sso
- ams_sso
#- ams_0008_8.0.8.0_AdminServer
#- ams_0013_8.0.9.0
- ams_0017_14.1.4.0
- ams_0017_14.1.4.0_AdminServer
handlers:

View File

@ -22,24 +22,27 @@
##muss noch geklärt werden ob erforderlich
##BitBW hat zudem Änderungen an dem File vorgenommen
##daher u.U. BitBW noch informieren
- name: Copy file sshd_config with owner and permissions
become_user: root
become: yes
copy:
src: ./files/sshd_config
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0600'
- name: Template file ssh_config with owner and permissions
become_user: root
become: yes
template:
src: ./templates/ssh_config.j2
dest: /etc/ssh/ssh_config
owner: root
group: root
mode: '0644'
#- name: Copy file sshd_config with owner and permissions
#become_user: root
#become: yes
#copy:
#src: ./files/sshd_config
#dest: /etc/ssh/sshd_config
#owner: root
#group: root
#mode: '0600'
#- name: Template file ssh_config with owner and permissions
#become_user: root
#become: yes
#template:
#src: ./templates/ssh_config.j2
#dest: /etc/ssh/ssh_config
#owner: root
#group: root
#mode: '0644'
#backup: yes
- name: copy File remote from ./files/{{ ansible_hostname }}_krb5.keytab to /etc
become_user: root
become: yes
@ -49,7 +52,7 @@
owner: root
group: root
mode: '0644'
backup: yes
- name: copy File krb5.conf_devel /etc
become_user: root
@ -59,7 +62,8 @@
dest: /etc/krb5.conf
owner: root
group: root
mode: '0644'
mode: '0644'
backup: yes
when: ansible_fqdn == 'epolsa5069bit03.tpolizei-bw.de' or ansible_fqdn == 'epolsa5073bit03.tpolizei-bw.de'
@ -72,6 +76,7 @@
owner: root
group: root
mode: '0644'
backup: yes
when: ansible_fqdn == 'polsa5079bit03.polizei-bw.net' or ansible_fqdn == 'polsa5079stu02.polizei-bw.net' or ansible_fqdn == 'polsa5069stu02.spolizei-bw.edu'

View File

@ -0,0 +1,29 @@
---
language: python
python: "2.7"
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View File

@ -0,0 +1,39 @@
Role Name
=========
Hiermit werden bei AMS die Grundinstallation angestossen. Dh. dass zb. das bash_profile eingefügt wird, die Log-Ordner werden erstellt, die start/-stopALL-Skripte mit psc.sh werden erstellt etc.
Requirements
------------
Keine.
Role Variables
--------------
Keine.
Dependencies
------------
Keine.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- base_installation
License
-------
BSD
Author Information
------------------
M. Gillitzer, Version 0.1

View File

@ -0,0 +1,2 @@
---
# defaults file for default_role

View File

@ -0,0 +1,169 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!-- Beginn der SOAP-Konfiguration -->
<display-name>Apache-Axis2</display-name>
<servlet>
<display-name>Apache-Axis Servlet</display-name>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
<init-param>
<param-name>${test.axis2.repository.path}</param-name>
<param-value>${axis2.repository.path}</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/version_2.1.1/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/version_2.0.2/*</url-pattern>
</servlet-mapping>
<listener>
<display-name>IMPServiceContextListener</display-name>
<listener-class>com.rola.server.imp.soap.server.IMPServiceContextListener</listener-class>
</listener>
<!-- <= Ende der SOAP-Konfiguration -->
<!--
Monitoring Oberflaeche nicht per Default verfuegbar!
<servlet>
<servlet-name>MonitoringAdmin</servlet-name>
<servlet-class>com.rola.monitoring.access.MonitoringAdminServlet</servlet-class>
<load-on-startup>99</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MonitoringAdmin</servlet-name>
<url-pattern>/monitoring/*</url-pattern>
</servlet-mapping>
-->
<!-- Monitoring Filter zur Ueberwachung aller HTTP Zugriffe -->
<filter>
<filter-name>MonitoringFilter</filter-name>
<filter-class>com.rola.monitoring.web.MonitoringServletFilter</filter-class>
<init-param>
<param-name>categorizerThreshold</param-name>
<param-value>0</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MonitoringFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>ERROR</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<!-- Beginn der REST-Konfiguration -->
<!-- Beginn der REST-Konfiguration -->
<servlet>
<servlet-name>IMPRESTServlet</servlet-name>
<servlet-class>com.rola.server.imp.rest.IMPRESTServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.0.2/processData</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.1.1/processData</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.0.2/processDataSync</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.1.1/processDataSync</url-pattern>
</servlet-mapping>
<!-- Ende der REST-Konfiguration -->
<filter>
<filter-name>InterfaceContextServletFilter</filter-name>
<filter-class>com.rola.server.exchange.interfacecontext.InterfaceContextServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>InterfaceContextServletFilter</filter-name>
<servlet-name>IMPRESTServlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>InterfaceContextServletFilter</filter-name>
<servlet-name>AxisServlet</servlet-name>
</filter-mapping>
<!-- Protkollunabhaengige-Konfiguration -->
<env-entry>
<env-entry-name>rola/config</env-entry-name>
<!-- Pfad zum Konfigurationsverzeichnis mit der rsConfig.xml oder [DEFAULT] (Home der Anwendung) -->
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>[DEFAULT]</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>rola/moduleId</env-entry-name>
<!-- Modul-Konfiguration -->
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>IMP2_0</env-entry-value>
</env-entry>
<!-- HTML-Test-Seite -->
<!-- Auskommentieren um zu aktivieren -->
<security-constraint>
<web-resource-collection>
<web-resource-name>HTML-Client</web-resource-name>
<url-pattern>/htmlclient/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint/>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<!-- SOAP-Monitor -->
<!-- Logging der SOAP-Requests und Responses
<servlet>
<servlet-name>SOAPMonitorService</servlet-name>
<display-name>SOAPMonitorService</display-name>
<servlet-class>
org.apache.axis2.soapmonitor.servlet.SOAPMonitorService
</servlet-class>
<init-param>
<param-name>SOAPMonitorPort</param-name>
<param-value>5001</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SOAPMonitorService</servlet-name>
<url-pattern>/SOAPMonitor</url-pattern>
</servlet-mapping>
-->
</web-app>

View File

@ -0,0 +1,20 @@
---
# handlers file for default_role
- name: stop_Imp20
command: /opt/rola/ams/linux/Services/service/rsWebserviceImp20.sh stop
async: 120
poll: 5
- name: check_Imp20
become: true
become_user: jetty
wait_for:
path: /opt/rola/ams/linux/Services/service/rsWebserviceImp20.status
state: absent
async: 120
poll: 5
- name: start_Imp20
command: /opt/rola/ams/linux/Services/service/rsWebserviceImp20.sh start
async: 120
poll: 5

View File

@ -0,0 +1,60 @@
galaxy_info:
author: your name
description: your description
company: your company (optional)
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Some suggested licenses:
# - BSD (default)
# - MIT
# - GPLv2
# - GPLv3
# - Apache
# - CC-BY
license: license (GPLv2, CC-BY, etc)
min_ansible_version: 2.4
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
# Optionally specify the branch Galaxy will use when accessing the GitHub
# repo for this role. During role install, if no tags are available,
# Galaxy will use this branch. During import Galaxy will access files on
# this branch. If Travis integration is configured, only notifications for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

View File

@ -0,0 +1,8 @@
---
- name: Copy file web.xml with owner and permissions web.xml
copy:
src: web.xml
dest: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.webmodule.imp20/WebContent/WEB-INF/web.xml
owner: jetty
group: dba
mode: '0644'

View File

@ -0,0 +1,2 @@
localhost

View File

@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- default_role

View File

@ -0,0 +1,2 @@
---
# vars file for default_role

View File

@ -0,0 +1,29 @@
---
language: python
python: "2.7"
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View File

@ -0,0 +1,39 @@
Role Name
=========
Hiermit werden bei AMS die Grundinstallation angestossen. Dh. dass zb. das bash_profile eingefügt wird, die Log-Ordner werden erstellt, die start/-stopALL-Skripte mit psc.sh werden erstellt etc.
Requirements
------------
Keine.
Role Variables
--------------
Keine.
Dependencies
------------
Keine.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- base_installation
License
-------
BSD
Author Information
------------------
M. Gillitzer, Version 0.1

View File

@ -0,0 +1,2 @@
---
# defaults file for default_role

View File

@ -0,0 +1,169 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!-- Beginn der SOAP-Konfiguration -->
<display-name>Apache-Axis2</display-name>
<servlet>
<display-name>Apache-Axis Servlet</display-name>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
<init-param>
<param-name>${test.axis2.repository.path}</param-name>
<param-value>${axis2.repository.path}</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/version_2.1.1/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/version_2.0.2/*</url-pattern>
</servlet-mapping>
<listener>
<display-name>IMPServiceContextListener</display-name>
<listener-class>com.rola.server.imp.soap.server.IMPServiceContextListener</listener-class>
</listener>
<!-- <= Ende der SOAP-Konfiguration -->
<!--
Monitoring Oberflaeche nicht per Default verfuegbar!
<servlet>
<servlet-name>MonitoringAdmin</servlet-name>
<servlet-class>com.rola.monitoring.access.MonitoringAdminServlet</servlet-class>
<load-on-startup>99</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MonitoringAdmin</servlet-name>
<url-pattern>/monitoring/*</url-pattern>
</servlet-mapping>
-->
<!-- Monitoring Filter zur Ueberwachung aller HTTP Zugriffe -->
<filter>
<filter-name>MonitoringFilter</filter-name>
<filter-class>com.rola.monitoring.web.MonitoringServletFilter</filter-class>
<init-param>
<param-name>categorizerThreshold</param-name>
<param-value>0</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MonitoringFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>ERROR</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<!-- Beginn der REST-Konfiguration -->
<!-- Beginn der REST-Konfiguration -->
<servlet>
<servlet-name>IMPRESTServlet</servlet-name>
<servlet-class>com.rola.server.imp.rest.IMPRESTServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.0.2/processData</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.1.1/processData</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.0.2/processDataSync</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>IMPRESTServlet</servlet-name>
<url-pattern>/version_2.1.1/processDataSync</url-pattern>
</servlet-mapping>
<!-- Ende der REST-Konfiguration -->
<filter>
<filter-name>InterfaceContextServletFilter</filter-name>
<filter-class>com.rola.server.exchange.interfacecontext.InterfaceContextServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>InterfaceContextServletFilter</filter-name>
<servlet-name>IMPRESTServlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>InterfaceContextServletFilter</filter-name>
<servlet-name>AxisServlet</servlet-name>
</filter-mapping>
<!-- Protkollunabhaengige-Konfiguration -->
<env-entry>
<env-entry-name>rola/config</env-entry-name>
<!-- Pfad zum Konfigurationsverzeichnis mit der rsConfig.xml oder [DEFAULT] (Home der Anwendung) -->
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>[DEFAULT]</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>rola/moduleId</env-entry-name>
<!-- Modul-Konfiguration -->
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>IMP2_0</env-entry-value>
</env-entry>
<!-- HTML-Test-Seite -->
<!-- Auskommentieren um zu aktivieren -->
<!--security-constraint>
<web-resource-collection>
<web-resource-name>HTML-Client</web-resource-name>
<url-pattern>/htmlclient/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint/>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint-->
<!-- SOAP-Monitor -->
<!-- Logging der SOAP-Requests und Responses
<servlet>
<servlet-name>SOAPMonitorService</servlet-name>
<display-name>SOAPMonitorService</display-name>
<servlet-class>
org.apache.axis2.soapmonitor.servlet.SOAPMonitorService
</servlet-class>
<init-param>
<param-name>SOAPMonitorPort</param-name>
<param-value>5001</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SOAPMonitorService</servlet-name>
<url-pattern>/SOAPMonitor</url-pattern>
</servlet-mapping>
-->
</web-app>

View File

@ -0,0 +1,20 @@
---
# handlers file for default_role
- name: stop_Imp20
command: /opt/rola/ams/linux/Services/service/rsWebserviceImp20.sh stop
async: 120
poll: 5
- name: check_Imp20
become: true
become_user: jetty
wait_for:
path: /opt/rola/ams/linux/Services/service/rsWebserviceImp20.status
state: absent
async: 120
poll: 5
- name: start_Imp20
command: /opt/rola/ams/linux/Services/service/rsWebserviceImp20.sh start
async: 120
poll: 5

View File

@ -0,0 +1,60 @@
galaxy_info:
author: your name
description: your description
company: your company (optional)
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Some suggested licenses:
# - BSD (default)
# - MIT
# - GPLv2
# - GPLv3
# - Apache
# - CC-BY
license: license (GPLv2, CC-BY, etc)
min_ansible_version: 2.4
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
# Optionally specify the branch Galaxy will use when accessing the GitHub
# repo for this role. During role install, if no tags are available,
# Galaxy will use this branch. During import Galaxy will access files on
# this branch. If Travis integration is configured, only notifications for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

View File

@ -0,0 +1,12 @@
---
- name: Copy file web.xml with owner and permissions web.xml
copy:
src: web.xml
dest: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.webmodule.imp20/WebContent/WEB-INF/web.xml
owner: jetty
group: dba
mode: '0644'
notify:
- stop_Imp20
- check_Imp20
- start_Imp20

View File

@ -0,0 +1,2 @@
localhost

View File

@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- default_role

View File

@ -0,0 +1,2 @@
---
# vars file for default_role