commit c859c3accb7a37accc67548dd67b07ffb9383431 Author: Marcus Gillitzer Date: Fri Jan 24 11:43:21 2020 +0100 Intitiales Befüllen diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..a670059 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,496 @@ +# config file for ansible -- https://ansible.com/ +# =============================================== + +# nearly all parameters can be overridden in ansible-playbook +# or with command line flags. ansible will read ANSIBLE_CONFIG, +# ansible.cfg in the current working directory, .ansible.cfg in +# the home directory or /etc/ansible/ansible.cfg, whichever it +# finds first + +[defaults] + +# some basic default values... + +inventory = ./hosts +#library = /usr/share/my_modules/ +#module_utils = /usr/share/my_module_utils/ +#remote_tmp = ~/.ansible/tmp +#local_tmp = ~/.ansible/tmp +#plugin_filters_cfg = /etc/ansible/plugin_filters.yml +#forks = 5 +#poll_interval = 15 +#sudo_user = root +#ask_sudo_pass = True +#ask_pass = True +#transport = smart +#remote_port = 22 +#module_lang = C +#module_set_locale = False + +# plays will gather facts by default, which contain information about +# the remote system. +# +# smart - gather by default, but don't regather if already gathered +# implicit - gather by default, turn off with gather_facts: False +# explicit - do not gather by default, must say gather_facts: True +#gathering = implicit + +# This only affects the gathering done by a play's gather_facts directive, +# by default gathering retrieves all facts subsets +# all - gather all subsets +# network - gather min and network facts +# hardware - gather hardware facts (longest facts to retrieve) +# virtual - gather min and virtual facts +# facter - import facts from facter +# ohai - import facts from ohai +# You can combine them using comma (ex: network,virtual) +# You can negate them using ! (ex: !hardware,!facter,!ohai) +# A minimal set of facts is always gathered. +#gather_subset = all + +# some hardware related facts are collected +# with a maximum timeout of 10 seconds. This +# option lets you increase or decrease that +# timeout to something more suitable for the +# environment. +# gather_timeout = 10 + +# Ansible facts are available inside the ansible_facts.* dictionary +# namespace. This setting maintains the behaviour which was the default prior +# to 2.5, duplicating these variables into the main namespace, each with a +# prefix of 'ansible_'. +# This variable is set to True by default for backwards compatibility. It +# will be changed to a default of 'False' in a future release. +# ansible_facts. +# inject_facts_as_vars = True + +# additional paths to search for roles in, colon separated +roles_path = ./roles + +# uncomment this to disable SSH key host checking +#host_key_checking = False + +# change the default callback, you can only have one 'stdout' type enabled at a time. +#stdout_callback = skippy + + +## Ansible ships with some plugins that require whitelisting, +## this is done to avoid running all of a type by default. +## These setting lists those that you want enabled for your system. +## Custom plugins should not need this unless plugin author specifies it. + +# enable callback plugins, they can output to stdout but cannot be 'stdout' type. +#callback_whitelist = timer, mail + +# Determine whether includes in tasks and handlers are "static" by +# default. As of 2.0, includes are dynamic by default. Setting these +# values to True will make includes behave more like they did in the +# 1.x versions. +#task_includes_static = False +#handler_includes_static = False + +# Controls if a missing handler for a notification event is an error or a warning +#error_on_missing_handler = True + +# change this for alternative sudo implementations +#sudo_exe = sudo + +# What flags to pass to sudo +# WARNING: leaving out the defaults might create unexpected behaviours +#sudo_flags = -H -S -n + +# SSH timeout +#timeout = 10 + +# default user to use for playbooks if user is not specified +# (/usr/bin/ansible will use current user as default) +#remote_user = root + +# logging is off by default unless this path is defined +# if so defined, consider logrotate +log_path = /var/log/ansible.log + +# default module name for /usr/bin/ansible +#module_name = command + +# use this shell for commands executed under sudo +# you may need to change this to bin/bash in rare instances +# if sudo is constrained +#executable = /bin/sh + +# if inventory variables overlap, does the higher precedence one win +# or are hash values merged together? The default is 'replace' but +# this can also be set to 'merge'. +#hash_behaviour = replace + +# by default, variables from roles will be visible in the global variable +# scope. To prevent this, the following option can be enabled, and only +# tasks and handlers within the role will see the variables there +#private_role_vars = yes + +# list any Jinja2 extensions to enable here: +#jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n + +# if set, always use this private key file for authentication, same as +# if passing --private-key to ansible or ansible-playbook +#private_key_file = /path/to/file + +# If set, configures the path to the Vault password file as an alternative to +# specifying --vault-password-file on the command line. +#vault_password_file = /path/to/vault_password_file + +# format of string {{ ansible_managed }} available within Jinja2 +# templates indicates to users editing templates files will be replaced. +# replacing {file}, {host} and {uid} and strftime codes with proper values. +#ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host} +# {file}, {host}, {uid}, and the timestamp can all interfere with idempotence +# in some situations so the default is a static string: +#ansible_managed = Ansible managed + +# by default, ansible-playbook will display "Skipping [host]" if it determines a task +# should not be run on a host. Set this to "False" if you don't want to see these "Skipping" +# messages. NOTE: the task header will still be shown regardless of whether or not the +# task is skipped. +#display_skipped_hosts = True + +# by default, if a task in a playbook does not include a name: field then +# ansible-playbook will construct a header that includes the task's action but +# not the task's args. This is a security feature because ansible cannot know +# if the *module* considers an argument to be no_log at the time that the +# header is printed. If your environment doesn't have a problem securing +# stdout from ansible-playbook (or you have manually specified no_log in your +# playbook on all of the tasks where you have secret information) then you can +# safely set this to True to get more informative messages. +#display_args_to_stdout = False + +# by default (as of 1.3), Ansible will raise errors when attempting to dereference +# Jinja2 variables that are not set in templates or action lines. Uncomment this line +# to revert the behavior to pre-1.3. +#error_on_undefined_vars = False + +# by default (as of 1.6), Ansible may display warnings based on the configuration of the +# system running ansible itself. This may include warnings about 3rd party packages or +# other conditions that should be resolved if possible. +# to disable these warnings, set the following value to False: +#system_warnings = True + +# by default (as of 1.4), Ansible may display deprecation warnings for language +# features that should no longer be used and will be removed in future versions. +# to disable these warnings, set the following value to False: +#deprecation_warnings = True + +# (as of 1.8), Ansible can optionally warn when usage of the shell and +# command module appear to be simplified by using a default Ansible module +# instead. These warnings can be silenced by adjusting the following +# setting or adding warn=yes or warn=no to the end of the command line +# parameter string. This will for example suggest using the git module +# instead of shelling out to the git command. +# command_warnings = False + + +# set plugin path directories here, separate with colons +#action_plugins = /usr/share/ansible/plugins/action +#cache_plugins = /usr/share/ansible/plugins/cache +#callback_plugins = /usr/share/ansible/plugins/callback +#connection_plugins = /usr/share/ansible/plugins/connection +#lookup_plugins = /usr/share/ansible/plugins/lookup +#inventory_plugins = /usr/share/ansible/plugins/inventory +#vars_plugins = /usr/share/ansible/plugins/vars +#filter_plugins = /usr/share/ansible/plugins/filter +#test_plugins = /usr/share/ansible/plugins/test +#terminal_plugins = /usr/share/ansible/plugins/terminal +#strategy_plugins = /usr/share/ansible/plugins/strategy + + +# by default, ansible will use the 'linear' strategy but you may want to try +# another one +#strategy = free + +# by default callbacks are not loaded for /bin/ansible, enable this if you +# want, for example, a notification or logging callback to also apply to +# /bin/ansible runs +#bin_ansible_callbacks = False + + +# don't like cows? that's unfortunate. +# set to 1 if you don't want cowsay support or export ANSIBLE_NOCOWS=1 +#nocows = 1 + +# set which cowsay stencil you'd like to use by default. When set to 'random', +# a random stencil will be selected for each task. The selection will be filtered +# against the `cow_whitelist` option below. +#cow_selection = default +#cow_selection = random + +# when using the 'random' option for cowsay, stencils will be restricted to this list. +# it should be formatted as a comma-separated list with no spaces between names. +# NOTE: line continuations here are for formatting purposes only, as the INI parser +# in python does not support them. +#cow_whitelist=bud-frogs,bunny,cheese,daemon,default,dragon,elephant-in-snake,elephant,eyes,\ +# hellokitty,kitty,luke-koala,meow,milk,moofasa,moose,ren,sheep,small,stegosaurus,\ +# stimpy,supermilker,three-eyes,turkey,turtle,tux,udder,vader-koala,vader,www + +# don't like colors either? +# set to 1 if you don't want colors, or export ANSIBLE_NOCOLOR=1 +#nocolor = 1 + +# if set to a persistent type (not 'memory', for example 'redis') fact values +# from previous runs in Ansible will be stored. This may be useful when +# wanting to use, for example, IP information from one group of servers +# without having to talk to them in the same playbook run to get their +# current IP information. +#fact_caching = memory + +#This option tells Ansible where to cache facts. The value is plugin dependent. +#For the jsonfile plugin, it should be a path to a local directory. +#For the redis plugin, the value is a host:port:database triplet: fact_caching_connection = localhost:6379:0 + +#fact_caching_connection=/tmp + + + +# retry files +# When a playbook fails by default a .retry file will be created in ~/ +# You can disable this feature by setting retry_files_enabled to False +# and you can change the location of the files by setting retry_files_save_path + +#retry_files_enabled = False +#retry_files_save_path = ~/.ansible-retry + +# squash actions +# Ansible can optimise actions that call modules with list parameters +# when looping. Instead of calling the module once per with_ item, the +# module is called once with all items at once. Currently this only works +# under limited circumstances, and only with parameters named 'name'. +#squash_actions = apk,apt,dnf,homebrew,pacman,pkgng,yum,zypper + +# prevents logging of task data, off by default +#no_log = False + +# prevents logging of tasks, but only on the targets, data is still logged on the master/controller +#no_target_syslog = False + +# controls whether Ansible will raise an error or warning if a task has no +# choice but to create world readable temporary files to execute a module on +# the remote machine. This option is False by default for security. Users may +# turn this on to have behaviour more like Ansible prior to 2.1.x. See +# https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user +# for more secure ways to fix this than enabling this option. +#allow_world_readable_tmpfiles = False + +# controls the compression level of variables sent to +# worker processes. At the default of 0, no compression +# is used. This value must be an integer from 0 to 9. +#var_compression_level = 9 + +# controls what compression method is used for new-style ansible modules when +# they are sent to the remote system. The compression types depend on having +# support compiled into both the controller's python and the client's python. +# The names should match with the python Zipfile compression types: +# * ZIP_STORED (no compression. available everywhere) +# * ZIP_DEFLATED (uses zlib, the default) +# These values may be set per host via the ansible_module_compression inventory +# variable +#module_compression = 'ZIP_DEFLATED' + +# This controls the cutoff point (in bytes) on --diff for files +# set to 0 for unlimited (RAM may suffer!). +#max_diff_size = 1048576 + +# This controls how ansible handles multiple --tags and --skip-tags arguments +# on the CLI. If this is True then multiple arguments are merged together. If +# it is False, then the last specified argument is used and the others are ignored. +# This option will be removed in 2.8. +#merge_multiple_cli_flags = True + +# Controls showing custom stats at the end, off by default +#show_custom_stats = True + +# Controls which files to ignore when using a directory as inventory with +# possibly multiple sources (both static and dynamic) +#inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo + +# This family of modules use an alternative execution path optimized for network appliances +# only update this setting if you know how this works, otherwise it can break module execution +#network_group_modules=eos, nxos, ios, iosxr, junos, vyos + +# When enabled, this option allows lookups (via variables like {{lookup('foo')}} or when used as +# a loop with `with_foo`) to return data that is not marked "unsafe". This means the data may contain +# jinja2 templating language which will be run through the templating engine. +# ENABLING THIS COULD BE A SECURITY RISK +#allow_unsafe_lookups = False + +# set default errors for all plays +#any_errors_fatal = False + +[inventory] +# enable inventory plugins, default: 'host_list', 'script', 'yaml', 'ini', 'auto' +#enable_plugins = host_list, virtualbox, yaml, constructed + +# ignore these extensions when parsing a directory as inventory source +#ignore_extensions = .pyc, .pyo, .swp, .bak, ~, .rpm, .md, .txt, ~, .orig, .ini, .cfg, .retry + +# ignore files matching these patterns when parsing a directory as inventory source +#ignore_patterns= + +# If 'true' unparsed inventory sources become fatal errors, they are warnings otherwise. +#unparsed_is_failed=False + +[privilege_escalation] +#become=True +#become_method=sudo +#become_user=root +#become_ask_pass=False + +[paramiko_connection] + +# uncomment this line to cause the paramiko connection plugin to not record new host +# keys encountered. Increases performance on new host additions. Setting works independently of the +# host key checking setting above. +#record_host_keys=False + +# by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this +# line to disable this behaviour. +#pty=False + +# paramiko will default to looking for SSH keys initially when trying to +# authenticate to remote devices. This is a problem for some network devices +# that close the connection after a key failure. Uncomment this line to +# disable the Paramiko look for keys function +#look_for_keys = False + +# When using persistent connections with Paramiko, the connection runs in a +# background process. If the host doesn't already have a valid SSH key, by +# default Ansible will prompt to add the host key. This will cause connections +# running in background processes to fail. Uncomment this line to have +# Paramiko automatically add host keys. +#host_key_auto_add = True + +[ssh_connection] + +# ssh arguments to use +# Leaving off ControlPersist will result in poor performance, so use +# paramiko on older platforms rather than removing it, -C controls compression use +#ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s + +# The base directory for the ControlPath sockets. +# This is the "%(directory)s" in the control_path option +# +# Example: +# control_path_dir = /tmp/.ansible/cp +#control_path_dir = ~/.ansible/cp + +# The path to use for the ControlPath sockets. This defaults to a hashed string of the hostname, +# port and username (empty string in the config). The hash mitigates a common problem users +# found with long hostames and the conventional %(directory)s/ansible-ssh-%%h-%%p-%%r format. +# In those cases, a "too long for Unix domain socket" ssh error would occur. +# +# Example: +# control_path = %(directory)s/%%h-%%r +#control_path = + +# Enabling pipelining reduces the number of SSH operations required to +# execute a module on the remote server. This can result in a significant +# performance improvement when enabled, however when using "sudo:" you must +# first disable 'requiretty' in /etc/sudoers +# +# By default, this option is disabled to preserve compatibility with +# sudoers configurations that have requiretty (the default on many distros). +# +#pipelining = False + +# Control the mechanism for transferring files (old) +# * smart = try sftp and then try scp [default] +# * True = use scp only +# * False = use sftp only +#scp_if_ssh = smart + +# Control the mechanism for transferring files (new) +# If set, this will override the scp_if_ssh option +# * sftp = use sftp to transfer files +# * scp = use scp to transfer files +# * piped = use 'dd' over SSH to transfer files +# * smart = try sftp, scp, and piped, in that order [default] +#transfer_method = smart + +# if False, sftp will not use batch mode to transfer files. This may cause some +# types of file transfer failures impossible to catch however, and should +# only be disabled if your sftp version has problems with batch mode +#sftp_batch_mode = False + +# The -tt argument is passed to ssh when pipelining is not enabled because sudo +# requires a tty by default. +#use_tty = True + +# Number of times to retry an SSH connection to a host, in case of UNREACHABLE. +# For each retry attempt, there is an exponential backoff, +# so after the first attempt there is 1s wait, then 2s, 4s etc. up to 30s (max). +#retries = 3 + +[persistent_connection] + +# Configures the persistent connection timeout value in seconds. This value is +# how long the persistent connection will remain idle before it is destroyed. +# If the connection doesn't receive a request before the timeout value +# expires, the connection is shutdown. The default value is 30 seconds. +#connect_timeout = 30 + +# Configures the persistent connection retry timeout. This value configures the +# the retry timeout that ansible-connection will wait to connect +# to the local domain socket. This value must be larger than the +# ssh timeout (timeout) and less than persistent connection idle timeout (connect_timeout). +# The default value is 15 seconds. +#connect_retry_timeout = 15 + +# The command timeout value defines the amount of time to wait for a command +# or RPC call before timing out. The value for the command timeout must +# be less than the value of the persistent connection idle timeout (connect_timeout) +# The default value is 10 second. +#command_timeout = 10 + +[accelerate] +#accelerate_port = 5099 +#accelerate_timeout = 30 +#accelerate_connect_timeout = 5.0 + +# The daemon timeout is measured in minutes. This time is measured +# from the last activity to the accelerate daemon. +#accelerate_daemon_timeout = 30 + +# If set to yes, accelerate_multi_key will allow multiple +# private keys to be uploaded to it, though each user must +# have access to the system via SSH to add a new key. The default +# is "no". +#accelerate_multi_key = yes + +[selinux] +# file systems that require special treatment when dealing with security context +# the default behaviour that copies the existing context or uses the user default +# needs to be changed to use the file system dependent context. +#special_context_filesystems=nfs,vboxsf,fuse,ramfs,9p + +# Set this to yes to allow libvirt_lxc connections to work without SELinux. +#libvirt_lxc_noseclabel = yes + +[colors] +#highlight = white +#verbose = blue +#warn = bright purple +#error = red +#debug = dark gray +#deprecate = purple +#skip = cyan +#unreachable = red +#ok = green +#changed = yellow +#diff_add = green +#diff_remove = red +#diff_lines = cyan + + +[diff] +# Always print diff when running ( same as always running with -D/--diff ) +# always = no + +# Set how many context lines to show in diff +# context = 3 diff --git a/development/hosts b/development/hosts new file mode 100644 index 0000000..5d2c537 --- /dev/null +++ b/development/hosts @@ -0,0 +1,17 @@ +# This is the default ansible 'hosts' file. +# +# It should live in /etc/ansible/hosts +# +# - Comments begin with the '#' character +# - Blank lines are ignored +# - Groups of hosts are delimited by [header] elements +# - You can enter hostnames or ip addresses +# - A hostname/ip can be a member of multiple groups + +# Ex 1: Ungrouped hosts, specify before any group headers. + +[development] +80.155.206.72 + + + diff --git a/group_vars/all.yml b/group_vars/all.yml new file mode 100644 index 0000000..153f180 --- /dev/null +++ b/group_vars/all.yml @@ -0,0 +1,3 @@ +--- + LOG_DIR: "/opt/logs" + ACCESS_LOG: "{{ LOG_DIR }}/access_log" diff --git a/group_vars/development.yml b/group_vars/development.yml new file mode 100644 index 0000000..0c9b08d --- /dev/null +++ b/group_vars/development.yml @@ -0,0 +1,7 @@ +--- +#aus /templates/pwd_Appserver.xml.j2 + /templates/pwd_ServiceIMP.xml.j2 + ams_DatabaseIPAdress: amse-vip.tpolizei-bw.de + ams_DatabasePort: 1531 + ams_DatabaseServiceName: AMSE + ams_DatabaseName: AMS Entwicklung + ams_LogLevel: DEBUG diff --git a/group_vars/production.yml b/group_vars/production.yml new file mode 100644 index 0000000..b442d7b --- /dev/null +++ b/group_vars/production.yml @@ -0,0 +1,7 @@ +--- +#aus /templates/pwd_Appserver.xml.j2 + ams_DatabaseIPAdress: amsp-vip.polizei-bw.net + ams_DatabasePort: 1561 + ams_DatabaseServiceName: AMSP + ams_DatabaseName: AMS Produktion + ams_LogLevel: WARNING diff --git a/group_vars/teaching.yml b/group_vars/teaching.yml new file mode 100644 index 0000000..e2381e0 --- /dev/null +++ b/group_vars/teaching.yml @@ -0,0 +1,7 @@ +--- +#aus /templates/pwd_Appserver.xml.j2 + /templates/pwd_ServiceIMP.xml.j2 + ams_DatabaseIPAdress: amss-vip.spolizei-bw.edu + ams_DatabasePort: 1551 + ams_DatabaseServiceName: AMSS + ams_DatabaseName: AMS Schulung + ams_LogLevel: WARNING diff --git a/host_vars/all.yml b/host_vars/all.yml new file mode 100644 index 0000000..e69de29 diff --git a/host_vars/development.yml b/host_vars/development.yml new file mode 100644 index 0000000..e69de29 diff --git a/host_vars/production.yml b/host_vars/production.yml new file mode 100644 index 0000000..e69de29 diff --git a/host_vars/teaching.yml b/host_vars/teaching.yml new file mode 100644 index 0000000..e69de29 diff --git a/production/hosts b/production/hosts new file mode 100644 index 0000000..9180034 --- /dev/null +++ b/production/hosts @@ -0,0 +1,18 @@ +# This is the default ansible 'hosts' file. +# +# It should live in /etc/ansible/hosts +# +# - Comments begin with the '#' character +# - Blank lines are ignored +# - Groups of hosts are delimited by [header] elements +# - You can enter hostnames or ip addresses +# - A hostname/ip can be a member of multiple groups + +# Ex 1: Ungrouped hosts, specify before any group headers. + +[production] +80.155.207.111 +80.155.207.161 + + + diff --git a/roles/ams_0006_8.0.5.0/.travis.yml b/roles/ams_0006_8.0.5.0/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/.travis.yml @@ -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/ \ No newline at end of file diff --git a/roles/ams_0006_8.0.5.0/README.md b/roles/ams_0006_8.0.5.0/README.md new file mode 100644 index 0000000..4a28b8c --- /dev/null +++ b/roles/ams_0006_8.0.5.0/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +Installation von AMS Software 0006_8.0.5.0 + +Requirements +------------ + +Unterhalb von files/ und templates/ sind erforderliche Dateien. Sonst nichts. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +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: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/roles/ams_0006_8.0.5.0/defaults/main.yml b/roles/ams_0006_8.0.5.0/defaults/main.yml new file mode 100644 index 0000000..4db8f11 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for default_role \ No newline at end of file diff --git a/roles/ams_0006_8.0.5.0/handlers/main.yml b/roles/ams_0006_8.0.5.0/handlers/main.yml new file mode 100644 index 0000000..cb71395 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for default_role \ No newline at end of file diff --git a/roles/ams_0006_8.0.5.0/meta/main.yml b/roles/ams_0006_8.0.5.0/meta/main.yml new file mode 100644 index 0000000..5d50bf4 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/meta/main.yml @@ -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. \ No newline at end of file diff --git a/roles/ams_0006_8.0.5.0/tasks/main.yml b/roles/ams_0006_8.0.5.0/tasks/main.yml new file mode 100644 index 0000000..13caaa8 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/tasks/main.yml @@ -0,0 +1,88 @@ +--- + - name: Template file pwdAppserver.xml.j2 with owner and permissions + template: + src: ./templates/pwd_Appserver.xml.j2 + dest: /opt/rola/ams/linux/Appserver/config/pwd.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file rsWebserviceAppserver.xml.j2 with owner and permissions + template: + src: ./templates/rsWebserviceAppserver.xml.j2 + dest: /opt/rola/ams/linux/Appserver/config/rsWebserviceAppserver.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file rsWebserviceAppserver.conf.j2 to /opt/rola/ams/linux/Appserver/service/config/rsWebserviceAppserver.conf + template: + src: ./templates/rsWebserviceAppserver.conf.j2 + dest: /opt/rola/ams/linux/Appserver/service/config/rsWebserviceAppserver.conf + owner: jetty + group: dba + mode: '0644' + - name: Template file pwd_ServiceIMP.xml.j2 with owner and permissions + template: + src: ./templates/pwd_ServiceIMP.xml.j2 + dest: /opt/rola/ams/linux/Services/config/pwd.xml + owner: jetty + group: dba + mode: '0644' + - name: Copy file rsWebserviceImp20.xml.j2 with owner and permissions + template: + src: ./templates/rsWebserviceImp20.xml.j2 + dest: /opt/rola/ams/linux/Services/config/rsWebserviceImp20.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file rsWebserviceImp20.conf.j2 with owner and permissions + template: + src: ./templates/rsWebserviceImp20.conf.j2 + dest: /opt/rola/ams/linux/Services/service/config/rsWebserviceImp20.conf + owner: jetty + group: dba + mode: '0644' + - name: Template file rsAmsBvService.conf.j2 with owner and permissions + template: + src: ./templates/rsAmsBvService.conf.j2 + dest: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.5.0/service/config/rsAmsBvService.conf + owner: jetty + group: dba + mode: '0644' + - name: Template file tech.database.yaml.j2 with owner and permissions + template: + src: ./templates/tech.database.yaml.j2 + dest: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.5.0/frameworkconfig/prefs/tech.database.yaml + owner: jetty + group: dba + mode: '0644' + - name: Template file jetty.xml.j2 for Appserver with owner and permissions + template: + src: ./templates/jetty.xml.j2 + dest: /opt/rola/ams/linux/Appserver/frameworkconfig/jetty_home/etc/jetty.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file jetty.xml.j2 for Services with owner and permissions + template: + src: ./templates/jetty.xml.j2 + dest: /opt/rola/ams/linux/Services/frameworkconfig/jetty_home/etc/jetty.xml + owner: jetty + group: dba + mode: '0644' + + + + + + + + + + + + + + + + + diff --git a/roles/ams_0006_8.0.5.0/templates/jetty.xml.j2 b/roles/ams_0006_8.0.5.0/templates/jetty.xml.j2 new file mode 100644 index 0000000..00e98dd --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/jetty.xml.j2 @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + 10 + 200 + + + + + + + + + + + + + + + + + + + + https + + 32768 + 8192 + 8192 + true + false + 512 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ ACCESS_LOG }}/jetty-yyyy_mm_dd.request.log + 30 + true + false + GMT + + + + + + + + + false + 30000 + false + false + + + + + + java.naming.factory.initial + + + + java.naming.factory.url.pkgs + + + + + + + + + + + + + + rola/config + [DEFAULT] + true + + + + + + + + + + + + + + + diff --git a/roles/ams_0006_8.0.5.0/templates/pwd_Appserver.xml.j2 b/roles/ams_0006_8.0.5.0/templates/pwd_Appserver.xml.j2 new file mode 100644 index 0000000..89c29de --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/pwd_Appserver.xml.j2 @@ -0,0 +1,22 @@ + + + + 04.11.2019 16:34:31 + + AMS + + + + 1 + + {{ ams_DatabaseIPAdress }} + + {{ ams_DatabasePort }} + + {{ ams_DatabaseServiceName }} + + CCDNIBPNNMPMLCNKEHNCHEKDHFECHDNDIANDLKJAHCOAMEHHGEMPLEMDHLHKHEIBMIF + + {{ ams_DatabaseName }} + + diff --git a/roles/ams_0006_8.0.5.0/templates/pwd_ServiceIMP.xml.j2 b/roles/ams_0006_8.0.5.0/templates/pwd_ServiceIMP.xml.j2 new file mode 100644 index 0000000..89c29de --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/pwd_ServiceIMP.xml.j2 @@ -0,0 +1,22 @@ + + + + 04.11.2019 16:34:31 + + AMS + + + + 1 + + {{ ams_DatabaseIPAdress }} + + {{ ams_DatabasePort }} + + {{ ams_DatabaseServiceName }} + + CCDNIBPNNMPMLCNKEHNCHEKDHFECHDNDIANDLKJAHCOAMEHHGEMPLEMDHLHKHEIBMIF + + {{ ams_DatabaseName }} + + diff --git a/roles/ams_0006_8.0.5.0/templates/rsAmsBvService.conf.j2 b/roles/ams_0006_8.0.5.0/templates/rsAmsBvService.conf.j2 new file mode 100644 index 0000000..a53de82 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/rsAmsBvService.conf.j2 @@ -0,0 +1,268 @@ +#encoding=UTF-8 +#******************************************************************** +# +# Service configuration file rsAmsBvService +# +#******************************************************************** +# +#******************************************************************** +# Wrapper License Properties +#******************************************************************** +# Include file problems can be debugged by leaving only one '#' +# at the beginning of the following line: +##include.debug +#include %SHARED_HOME%/foundation/servicewrapper/license/wrapper-license-rsFRAME.conf + +# The following property will output information about which License Key(s) +# are being found, and can aid in resolving any licensing problems. +#wrapper.license.debug=TRUE + +#******************************************************************** +# Wrapper Localization +#******************************************************************** +# Specify the language and locale which the Wrapper should use. +#wrapper.lang=en_US # en_US or ja_JP + +# Specify the location of the language resource files (*.mo). +wrapper.lang.folder=../lang + +#******************************************************************** +# Wrapper Java Properties +#******************************************************************** +# Java Application +wrapper.java.command=%JRE_HOME%/bin/java + +# Tell the Wrapper to log the full generated Java command line. +#wrapper.java.command.loglevel=INFO + +# Java Main class. This class must implement the WrapperListener interface +# or guarantee that the WrapperManager class is initialized. Helper +# classes are provided to do this for you. +# See the following page for details: +# http://wrapper.tanukisoftware.com/doc/english/integrate.html +wrapper.java.mainclass=com.rola.rscase.application.ServiceWrapperListener + +# Java Classpath (include wrapper.jar) Add class path elements as +# needed starting from 1 +wrapper.java.classpath.1=%SERVICE_HOME%/lib/wrapper.jar +wrapper.java.classpath.2=%SHARED_HOME%/com.rola.launcher.jar + +# Java Library Path (location of Wrapper.DLL or libwrapper.so) +wrapper.java.library.path.1=%SERVICE_HOME%/lib +wrapper.java.library.path.2=%SHARED_HOME%/native +wrapper.java.library.path.3=%SHARED_HOME%/native/%WRAPPER_BITS% +wrapper.java.library.path.4=%WINDIR%/SYSTEM32 + +# Set system path +set.PATH=%SHARED_HOME%/native%WRAPPER_PATH_SEPARATOR%%SHARED_HOME%/native/%WRAPPER_BITS%%WRAPPER_PATH_SEPARATOR%%PATH% + +# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. +wrapper.java.additional.auto_bits=TRUE + +# Java Additional Parameters +wrapper.java.additional.1=-server +wrapper.java.additional.2=-XX:ErrorFile="%RS_HOME%/service/log/rsAmsBvService_hs_err_pid%p.log" +wrapper.java.additional.2.stripquotes=TRUE +wrapper.java.additional.3=-Djava.io.tmpdir="%TEMP%" +wrapper.java.additional.3.stripquotes=TRUE +wrapper.java.additional.4=-XX:+DisableAttachMechanism +wrapper.java.additional.5=-XX:+UseG1GC +wrapper.java.additional.6=-XX:MaxGCPauseMillis=500 +wrapper.java.additional.7=-XX:ConcGCThreads=4 +wrapper.java.additional.8=-XX:ParallelGCThreads=4 +wrapper.java.additional.9=-XX:CICompilerCount=4 +wrapper.java.additional.10=-XX:+UseStringDeduplication +# Java Parameters for general webservice HTTP access +wrapper.java.additional.11=-Dorg.apache.felix.http.host={{ ansible_facts['default_ipv4']['address'] }} +wrapper.java.additional.12=-Dorg.osgi.service.http.port=7373 +#wrapper.java.additional.13=-Dorg.osgi.service.http.port.secure=8443 + +# Optional alternative config paths for rola yaml config files +#wrapper.java.additional.20=-Drola.prefs="%RS_HOME%/frameworkconfig/prefs" +wrapper.java.additional.20.stripquotes=TRUE + +# Path for rola log files +wrapper.java.additional.21=-Drola.logfile.path="{{ LOG_DIR }}/bvservice" +wrapper.java.additional.21.stripquotes=TRUE + +# Service name and type, default is the same as the config file name +# As this is used for logging filenames, only use characters [A-Za-z0-9_.] +wrapper.java.additional.22=-Drola.service.name=rsAmsBvService +wrapper.java.additional.23=-Drola.service.type=rsAmsBvService + +# Initial Java Heap Size (in MB) +wrapper.java.initmemory=128 + +# Maximum Java Heap Size (in MB) +wrapper.java.maxmemory=2048 + +# Service parameters: +# 1-19. parameter: OSGi and framework parameters +# 20-n. parameter: further start parameters for rsFRAME service (optional, e.g. configfile) + +wrapper.app.parameter.1=-osgiUserWorkDir +wrapper.app.parameter.2="%TEMP%" +wrapper.app.parameter.2.stripquotes=TRUE +wrapper.app.parameter.3=-osgiConfiguration +wrapper.app.parameter.4=webamsbv +wrapper.app.parameter.5=-osgiRoot +wrapper.app.parameter.6="%SHARED_HOME%" +wrapper.app.parameter.6.stripquotes=TRUE +wrapper.app.parameter.7=-osgiFrameworkConfigDir +wrapper.app.parameter.8="%RS_HOME%/frameworkconfig" +wrapper.app.parameter.8.stripquotes=TRUE +wrapper.app.parameter.9=-startprofileset +wrapper.app.parameter.10=webamsbv +#Verbose output for osgi launcher +#wrapper.app.parameter.19=-osgiVerbose + +#******************************************************************** +# Wrapper Logging Properties +#******************************************************************** +# Enables Debug output from the Wrapper. +# wrapper.debug=TRUE + +# Format of output for the console. (See docs for formats) +wrapper.console.format=PM + +# Log Level for console output. (See docs for log levels) +wrapper.console.loglevel=STATUS + +# Log file to use for wrapper output logging. +wrapper.logfile="{{ LOG_DIR }}/bvservice/rsAmsBvService.log" + +# Format of output for the log file. (See docs for formats) +wrapper.logfile.format=LPTM + +# Log Level for log file output. (See docs for log levels) +wrapper.logfile.loglevel={{ ams_LogLevel }} + +# Maximum size that the log file will be allowed to grow to before +# the log is rolled. Size is specified in bytes. The default value +# of 0, disables log rolling. May abbreviate with the 'k' (kb) or +# 'm' (mb) suffix. For example: 10m = 10 megabytes. +wrapper.logfile.maxsize=10m + +# Maximum number of rolled log files which will be allowed before old +# files are deleted. The default value of 0 implies no limit. +wrapper.logfile.maxfiles=30 + +# Log Level for sys/event log output. (See docs for log levels) +wrapper.syslog.loglevel=ERROR + +#******************************************************************** +# Wrapper General Properties +#******************************************************************** +# Set the working directory to the RS-Home directory +wrapper.working.dir=%RS_HOME% + +# Allow for the use of non-contiguous numbered properties +wrapper.ignore_sequence_gaps=TRUE + +# Do not start if the pid file already exists. +#wrapper.pidfile.strict=TRUE + +# Title to use when running as a console +wrapper.console.title=rsAmsBvService + +#******************************************************************** +# Wrapper JVM Checks +#******************************************************************** +# Detect DeadLocked Threads in the JVM. (Requires Standard Edition) +wrapper.check.deadlock=TRUE +wrapper.check.deadlock.interval=60 +wrapper.check.deadlock.action=RESTART +wrapper.check.deadlock.output=FULL + +# Out Of Memory detection. +# Ignore -verbose:class output to avoid false positives. +wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError +wrapper.filter.action.1000=NONE +# (Simple match) +wrapper.filter.trigger.1001=java.lang.OutOfMemoryError +# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) +#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError +#wrapper.filter.allow_wildcards.1001=TRUE +wrapper.filter.action.1001=RESTART +wrapper.filter.message.1001=The JVM has run out of memory. + +#******************************************************************** +# Wrapper Email Notifications. (Requires Professional Edition) +#******************************************************************** +# Common Event Email settings. +#wrapper.event.default.email.debug=TRUE +#wrapper.event.default.email.smtp.host= +#wrapper.event.default.email.smtp.port=25 +#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification +#wrapper.event.default.email.sender= +#wrapper.event.default.email.recipient= + + +# Restart behaviour depending on exit code +# Service exited with bad result (exit code != 0) +wrapper.on_exit.default=RESTART + +# Service exited with good result (exit code = 0) +wrapper.on_exit.0=SHUTDOWN + +# Number of seconds to allow between the time that the JVM reports that it is stopped +# and the time that the JVM process actually terminates (e.g. termination of pending threads) +wrapper.jvm_exit.timeout=30 + +# Delay service restart for number of seconds +wrapper.restart.delay=15 + +#******************************************************************** +# Wrapper Windows Service Properties +#******************************************************************** +# WARNING - Do not modify any of these properties when an application +# using this configuration file has been installed as a service. +# Please uninstall the service before modifying this section. The +# service can then be reinstalled. + +# Name of the service +wrapper.name=rsAmsBvService + +# Display name of the service +wrapper.displayname=rsAmsBvService + +# Description of the service +wrapper.description=rsAmsBvService + +# Service dependencies. Add dependencies as needed starting from 1 +wrapper.ntservice.dependency.1= + +# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START +wrapper.ntservice.starttype=AUTO_START + +# Allow the service to interact with the desktop (Windows NT/2000/XP only). +wrapper.ntservice.interactive=FALSE + +# Automatically restart the service periodically +#wrapper.timer.1.action=RESTART +#wrapper.timer.1.interval=hour=24 + +# Configure the log attached to event emails. +#wrapper.event.default.email.maillog=ATTACHMENT +#wrapper.event.default.email.maillog.lines=50 +#wrapper.event.default.email.maillog.format=LPTM +#wrapper.event.default.email.maillog.loglevel=INFO + +# Enable specific event emails. +#wrapper.event.wrapper_start.email=TRUE +#wrapper.event.jvm_prelaunch.email=TRUE +#wrapper.event.jvm_start.email=TRUE +#wrapper.event.jvm_started.email=TRUE +#wrapper.event.jvm_deadlock.email=TRUE +#wrapper.event.jvm_stop.email=TRUE +#wrapper.event.jvm_stopped.email=TRUE +#wrapper.event.jvm_restart.email=TRUE +#wrapper.event.jvm_failed_invocation.email=TRUE +#wrapper.event.jvm_max_failed_invocations.email=TRUE +#wrapper.event.jvm_kill.email=TRUE +#wrapper.event.jvm_killed.email=TRUE +#wrapper.event.jvm_unexpected_exit.email=TRUE +#wrapper.event.wrapper_stop.email=TRUE + +# Specify custom mail content +#wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n diff --git a/roles/ams_0006_8.0.5.0/templates/rsWebserviceAppserver.conf.j2 b/roles/ams_0006_8.0.5.0/templates/rsWebserviceAppserver.conf.j2 new file mode 100644 index 0000000..a9297f8 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/rsWebserviceAppserver.conf.j2 @@ -0,0 +1,287 @@ +#encoding=UTF-8 +#******************************************************************** +# +# Service configuration file rsWebserviceAppserver +# +#******************************************************************** +# +#******************************************************************** +# Wrapper License Properties +#******************************************************************** +# Include file problems can be debugged by leaving only one '#' +# at the beginning of the following line: +##include.debug +#include %SHARED_HOME%/foundation/servicewrapper/license/wrapper-license-rsFRAME.conf + +# The following property will output information about which License Key(s) +# are being found, and can aid in resolving any licensing problems. +#wrapper.license.debug=TRUE + +#******************************************************************** +# Wrapper Localization +#******************************************************************** +# Specify the language and locale which the Wrapper should use. +#wrapper.lang=en_US # en_US or ja_JP + +# Specify the location of the language resource files (*.mo). +wrapper.lang.folder=../lang + +#******************************************************************** +# Wrapper Java Properties +#******************************************************************** +# Java Application +wrapper.java.command=%JRE_HOME%/bin/java + +# Tell the Wrapper to log the full generated Java command line. +#wrapper.java.command.loglevel=INFO + +# Java Main class. This class must implement the WrapperListener interface +# or guarantee that the WrapperManager class is initialized. Helper +# classes are provided to do this for you. +# See the following page for details: +# http://wrapper.tanukisoftware.com/doc/english/integrate.html +wrapper.java.mainclass=com.rola.rscase.application.ServiceWrapperListener + +# Java Classpath (include wrapper.jar) Add class path elements as +# needed starting from 1 +wrapper.java.classpath.1=%SERVICE_HOME%/lib/wrapper.jar +wrapper.java.classpath.2=%SHARED_HOME%/com.rola.launcher.jar + +# Java Library Path (location of Wrapper.DLL or libwrapper.so) +wrapper.java.library.path.1=%SERVICE_HOME%/lib +wrapper.java.library.path.2=%SHARED_HOME%/native +wrapper.java.library.path.3=%SHARED_HOME%/native/%WRAPPER_BITS% +wrapper.java.library.path.4=%WINDIR%/SYSTEM32 + +# Set system path +set.PATH=%SHARED_HOME%/native%WRAPPER_PATH_SEPARATOR%%SHARED_HOME%/native/%WRAPPER_BITS%%WRAPPER_PATH_SEPARATOR%%PATH% + +# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. +wrapper.java.additional.auto_bits=TRUE + +# Java Additional Parameters +wrapper.java.additional.1=-server +wrapper.java.additional.2=-XX:ErrorFile="%RS_HOME%/service/log/rsWebserviceAppserver_hs_err_pid%p.log" +wrapper.java.additional.2.stripquotes=TRUE +wrapper.java.additional.3=-Djava.io.tmpdir="%TEMP%" +wrapper.java.additional.3.stripquotes=TRUE +wrapper.java.additional.4=-XX:+DisableAttachMechanism +wrapper.java.additional.5=-Drola.config="%SHARED_HOME%/config" +wrapper.java.additional.5.stripquotes=TRUE + +# Java Parameters for general webservice HTTP access +wrapper.java.additional.6=-Djetty.host={{ ansible_facts['default_ipv4']['address'] }} +wrapper.java.additional.7=-Djetty.port=8080 + +# List of paths/directories to "overlay" the standard configuration files separated by comma ",". +# File contents are merged. +# Default: %RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec +#wrapper.java.additional.8=-Drola.config.overlay.paths="%RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec" +wrapper.java.additional.8.stripquotes=TRUE +# enable debug information for error analysis in config overlay +#wrapper.java.additional.9=-Drola.config.overlay.debug=true + +# Java parameters for secure webservice access via HTTPs (e.g. AIF) +#wrapper.java.additional.10=-Djavax.net.ssl.keyStore= +#wrapper.java.additional.11=-Djavax.net.ssl.keyStoreType=JKS +#wrapper.java.additional.12=-Djavax.net.ssl.keyStorePassword= +#wrapper.java.additional.13=-Djavax.net.ssl.trustStore= +#wrapper.java.additional.14=-Djavax.net.ssl.trustStoreType=JKS +#wrapper.java.additional.15=-Djavax.net.ssl.trustStorePassword= + +# Optional Jetty SSL configuration +# example for default web server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc/jetty-ssl.xml,etc/jetty-https.xml +# example for application server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc-appserver/jetty-ssl.xml,etc-appserver/jetty-https.xml + +#wrapper.java.additional.21=-Djetty.https.host= +#wrapper.java.additional.22=-Djetty.https.port=443 +#wrapper.java.additional.23=-Djetty.logdir="%RS_HOME%/service/log/rsWebserviceAppserver-jetty/" +#wrapper.java.additional.23.stripquotes=TRUE + +#Activate UTF-8 support for gss kerberos authentication. +wrapper.java.additional.26=-Dsun.security.krb5.msinterop.kstring=true + +# Initial Java Heap Size (in MB) +wrapper.java.initmemory=1024 + +# Maximum Java Heap Size (in MB) +wrapper.java.maxmemory=2048 + +# Service parameters: +# 1-19. parameter: OSGi and framework parameters +# 20-n. parameter: further start parameters for rsFRAME service (optional, e.g. configfile) + +wrapper.app.parameter.1=-osgiUserWorkDir +wrapper.app.parameter.2="%TEMP%" +wrapper.app.parameter.2.stripquotes=TRUE +wrapper.app.parameter.3=-osgiConfiguration +wrapper.app.parameter.4=appserver +wrapper.app.parameter.5=-osgiRoot +wrapper.app.parameter.6="%SHARED_HOME%" +wrapper.app.parameter.6.stripquotes=TRUE +wrapper.app.parameter.7=-osgiFrameworkConfigDir +wrapper.app.parameter.8="%RS_HOME%/frameworkconfig" +wrapper.app.parameter.8.stripquotes=TRUE +wrapper.app.parameter.9=-startprofileset +wrapper.app.parameter.10=appserver +wrapper.app.parameter.11=-serviceSpecificationBundle +wrapper.app.parameter.12=com.rola.rsframe.module.appserver +wrapper.app.parameter.13=-serviceSpecificationClass +wrapper.app.parameter.14=com.rola.rsframe.module.appserver.specifications.AppserverServiceSpecification +#Verbose output for osgi launcher +#wrapper.app.parameter.19=-osgiVerbose +wrapper.app.parameter.20=/configfile="%RS_HOME%/config/rsWebserviceAppserver.xml" +wrapper.app.parameter.20.stripquotes=TRUE + +#******************************************************************** +# Wrapper Logging Properties +#******************************************************************** +# Enables Debug output from the Wrapper. +# wrapper.debug=TRUE + +# Format of output for the console. (See docs for formats) +wrapper.console.format=PM + +# Log Level for console output. (See docs for log levels) +wrapper.console.loglevel=STATUS + +# Log file to use for wrapper output logging. +wrapper.logfile="{{ LOG_DIR }}/appserver/rsWebserviceAppserver-servicewrapper.log" + +# Format of output for the log file. (See docs for formats) +wrapper.logfile.format=LPTM + +# Log Level for log file output. (See docs for log levels) +wrapper.logfile.loglevel={{ ams_LogLevel }} + +# Maximum size that the log file will be allowed to grow to before +# the log is rolled. Size is specified in bytes. The default value +# of 0, disables log rolling. May abbreviate with the 'k' (kb) or +# 'm' (mb) suffix. For example: 10m = 10 megabytes. +wrapper.logfile.maxsize=10m + +# Maximum number of rolled log files which will be allowed before old +# files are deleted. The default value of 0 implies no limit. +wrapper.logfile.maxfiles=30 + +# Log Level for sys/event log output. (See docs for log levels) +wrapper.syslog.loglevel=ERROR + +#******************************************************************** +# Wrapper General Properties +#******************************************************************** +# Set the working directory to the RS-Home directory +wrapper.working.dir=%RS_HOME% + +# Allow for the use of non-contiguous numbered properties +wrapper.ignore_sequence_gaps=TRUE + +# Do not start if the pid file already exists. +#wrapper.pidfile.strict=TRUE + +# Title to use when running as a console +wrapper.console.title=rsWebserviceAppserver-Service + +#******************************************************************** +# Wrapper JVM Checks +#******************************************************************** +# Detect DeadLocked Threads in the JVM. (Requires Standard Edition) +wrapper.check.deadlock=TRUE +wrapper.check.deadlock.interval=60 +wrapper.check.deadlock.action=RESTART +wrapper.check.deadlock.output=FULL + +# Out Of Memory detection. +# Ignore -verbose:class output to avoid false positives. +wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError +wrapper.filter.action.1000=NONE +# (Simple match) +wrapper.filter.trigger.1001=java.lang.OutOfMemoryError +# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) +#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError +#wrapper.filter.allow_wildcards.1001=TRUE +wrapper.filter.action.1001=RESTART +wrapper.filter.message.1001=The JVM has run out of memory. + +#******************************************************************** +# Wrapper Email Notifications. (Requires Professional Edition) +#******************************************************************** +# Common Event Email settings. +#wrapper.event.default.email.debug=TRUE +#wrapper.event.default.email.smtp.host= +#wrapper.event.default.email.smtp.port=25 +#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification +#wrapper.event.default.email.sender= +#wrapper.event.default.email.recipient= + + +# Restart behaviour depending on exit code +# Service exited with bad result (exit code != 0) +wrapper.on_exit.default=RESTART + +# Service exited with good result (exit code = 0) +wrapper.on_exit.0=SHUTDOWN + +# Number of seconds to allow between the time that the JVM reports that it is stopped +# and the time that the JVM process actually terminates (e.g. termination of pending threads) +wrapper.jvm_exit.timeout=30 + +# Delay service restart for number of seconds +wrapper.restart.delay=15 + +#******************************************************************** +# Wrapper Windows Service Properties +#******************************************************************** +# WARNING - Do not modify any of these properties when an application +# using this configuration file has been installed as a service. +# Please uninstall the service before modifying this section. The +# service can then be reinstalled. + +# Name of the service +wrapper.name=rsWebserviceAppserver + +# Display name of the service +wrapper.displayname=rsWebserviceAppserver + +# Description of the service +wrapper.description=rsWebserviceAppserver + +# Service dependencies. Add dependencies as needed starting from 1 +wrapper.ntservice.dependency.1= + +# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START +wrapper.ntservice.starttype=AUTO_START + +# Allow the service to interact with the desktop (Windows NT/2000/XP only). +wrapper.ntservice.interactive=FALSE + +# Automatically restart the service periodically +#wrapper.timer.1.action=RESTART +#wrapper.timer.1.interval=hour=24 + +# Configure the log attached to event emails. +#wrapper.event.default.email.maillog=ATTACHMENT +#wrapper.event.default.email.maillog.lines=50 +#wrapper.event.default.email.maillog.format=LPTM +#wrapper.event.default.email.maillog.loglevel=INFO + +# Enable specific event emails. +#wrapper.event.wrapper_start.email=TRUE +#wrapper.event.jvm_prelaunch.email=TRUE +#wrapper.event.jvm_start.email=TRUE +#wrapper.event.jvm_started.email=TRUE +#wrapper.event.jvm_deadlock.email=TRUE +#wrapper.event.jvm_stop.email=TRUE +#wrapper.event.jvm_stopped.email=TRUE +#wrapper.event.jvm_restart.email=TRUE +#wrapper.event.jvm_failed_invocation.email=TRUE +#wrapper.event.jvm_max_failed_invocations.email=TRUE +#wrapper.event.jvm_kill.email=TRUE +#wrapper.event.jvm_killed.email=TRUE +#wrapper.event.jvm_unexpected_exit.email=TRUE +#wrapper.event.wrapper_stop.email=TRUE + +# Specify custom mail content +#wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n diff --git a/roles/ams_0006_8.0.5.0/templates/rsWebserviceAppserver.xml.j2 b/roles/ams_0006_8.0.5.0/templates/rsWebserviceAppserver.xml.j2 new file mode 100644 index 0000000..979fe97 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/rsWebserviceAppserver.xml.j2 @@ -0,0 +1,320 @@ + + + + +]> + + + + &key; + &pwd; + &common; + ICMMKJBDIPNPPFFIPOIHEMHAKMKHBBLJIHNMFALMPAIGBEDDIFAMDIBDAMGLKOGFAFB + + /opt/tmp/ + + C:/Programme/Internet Explorer/IEXPLORE.EXE + + true + 1 + + + + + + + + + + + 5 + + 5 + + + + + 2 + + + -1 + + + + + + + + + + + + + + + + + + + + + + + + + + {{ ams_LogLevel }} + + true + + true + true + + true + + + true + + + + + + + + + '.'yyyy-MM-dd + + + %d{dd MMM yyyy HH:mm:ss} [%t] %-5p %x :APPLICATION_ID: - %m%n + + + + 10MB + + + + + + + 0 + + rsWebserviceAppServer.log + + {{ LOG_DIR }}/appserver + + false + + + + + + + + + + + + + @ENV=RS_HOME@/doc/help + + + + + /opt/tmp/rsCasePrintTemp + + + + + + /opt/tmp/rsCasePrintTemp/PrinterConfigurations + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + A|B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + 30 + notepad + + + + 0 + true + + + 2880 + + + 2 + + + 3600000 + + + + + + + + + ? + + + + + + + + + + + + + + + + + + + + + + + + false + + NORMAL + + + STANDARD + + MON1 + + false + + false + + 10888 + + monadmin + + + + 127.0.0.1|0:0:0:0:0:0:0:1 + + -1 + + -1 + + false + + false + + false + + false + + + + + + false + + + + + + -1 + + + + 1000 + + + + + true + + + + + true + + config/module/dictionary/ + + config/module/dictionary/ + + /opt/tmp/dictionary/ + + diff --git a/roles/ams_0006_8.0.5.0/templates/rsWebserviceImp20.conf.j2 b/roles/ams_0006_8.0.5.0/templates/rsWebserviceImp20.conf.j2 new file mode 100644 index 0000000..b6f1f88 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/rsWebserviceImp20.conf.j2 @@ -0,0 +1,287 @@ +#encoding=UTF-8 +#******************************************************************** +# +# Service configuration file rsWebserviceImp20 +# +#******************************************************************** +# +#******************************************************************** +# Wrapper License Properties +#******************************************************************** +# Include file problems can be debugged by leaving only one '#' +# at the beginning of the following line: +##include.debug +#include %SHARED_HOME%/foundation/servicewrapper/license/wrapper-license-rsFRAME.conf + +# The following property will output information about which License Key(s) +# are being found, and can aid in resolving any licensing problems. +#wrapper.license.debug=TRUE + +#******************************************************************** +# Wrapper Localization +#******************************************************************** +# Specify the language and locale which the Wrapper should use. +#wrapper.lang=en_US # en_US or ja_JP + +# Specify the location of the language resource files (*.mo). +wrapper.lang.folder=../lang + +#******************************************************************** +# Wrapper Java Properties +#******************************************************************** +# Java Application +wrapper.java.command=%JRE_HOME%/bin/java + +# Tell the Wrapper to log the full generated Java command line. +#wrapper.java.command.loglevel=INFO + +# Java Main class. This class must implement the WrapperListener interface +# or guarantee that the WrapperManager class is initialized. Helper +# classes are provided to do this for you. +# See the following page for details: +# http://wrapper.tanukisoftware.com/doc/english/integrate.html +wrapper.java.mainclass=com.rola.rscase.application.ServiceWrapperListener + +# Java Classpath (include wrapper.jar) Add class path elements as +# needed starting from 1 +wrapper.java.classpath.1=%SERVICE_HOME%/lib/wrapper.jar +wrapper.java.classpath.2=%SHARED_HOME%/com.rola.launcher.jar + +# Java Library Path (location of Wrapper.DLL or libwrapper.so) +wrapper.java.library.path.1=%SERVICE_HOME%/lib +wrapper.java.library.path.2=%SHARED_HOME%/native +wrapper.java.library.path.3=%SHARED_HOME%/native/%WRAPPER_BITS% +wrapper.java.library.path.4=%WINDIR%/SYSTEM32 + +# Set system path +set.PATH=%SHARED_HOME%/native%WRAPPER_PATH_SEPARATOR%%SHARED_HOME%/native/%WRAPPER_BITS%%WRAPPER_PATH_SEPARATOR%%PATH% + +# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. +wrapper.java.additional.auto_bits=TRUE + +# Java Additional Parameters +wrapper.java.additional.1=-server +wrapper.java.additional.2=-XX:ErrorFile="%RS_HOME%/service/log/rsWebserviceImp20_hs_err_pid%p.log" +wrapper.java.additional.2.stripquotes=TRUE +wrapper.java.additional.3=-Djava.io.tmpdir="%TEMP%" +wrapper.java.additional.3.stripquotes=TRUE +wrapper.java.additional.4=-XX:+DisableAttachMechanism +wrapper.java.additional.5=-Drola.config="%SHARED_HOME%/config" +wrapper.java.additional.5.stripquotes=TRUE + +# Java Parameters for general webservice HTTP access +wrapper.java.additional.6=-Djetty.host={{ ansible_facts['default_ipv4']['address'] }} +wrapper.java.additional.7=-Djetty.port=7272 + +# List of paths/directories to "overlay" the standard configuration files separated by comma ",". +# File contents are merged. +# Default: %RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec +#wrapper.java.additional.8=-Drola.config.overlay.paths="%RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec" +wrapper.java.additional.8.stripquotes=TRUE +# enable debug information for error analysis in config overlay +#wrapper.java.additional.9=-Drola.config.overlay.debug=true + +# Java parameters for secure webservice access via HTTPs (e.g. AIF) +#wrapper.java.additional.10=-Djavax.net.ssl.keyStore= +#wrapper.java.additional.11=-Djavax.net.ssl.keyStoreType=JKS +#wrapper.java.additional.12=-Djavax.net.ssl.keyStorePassword= +#wrapper.java.additional.13=-Djavax.net.ssl.trustStore= +#wrapper.java.additional.14=-Djavax.net.ssl.trustStoreType=JKS +#wrapper.java.additional.15=-Djavax.net.ssl.trustStorePassword= + +# Optional Jetty SSL configuration +# example for default web server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc/jetty-ssl.xml,etc/jetty-https.xml +# example for application server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc-appserver/jetty-ssl.xml,etc-appserver/jetty-https.xml + +#wrapper.java.additional.21=-Djetty.https.host= +#wrapper.java.additional.22=-Djetty.https.port=443 +#wrapper.java.additional.23=-Djetty.logdir="%RS_HOME%/service/log/rsWebserviceImp20-jetty/" +#wrapper.java.additional.23.stripquotes=TRUE + +#Activate UTF-8 support for gss kerberos authentication. +wrapper.java.additional.26=-Dsun.security.krb5.msinterop.kstring=true + +# Initial Java Heap Size (in MB) +wrapper.java.initmemory=2048 + +# Maximum Java Heap Size (in MB) +wrapper.java.maxmemory=2048 + +# Service parameters: +# 1-19. parameter: OSGi and framework parameters +# 20-n. parameter: further start parameters for rsFRAME service (optional, e.g. configfile) + +wrapper.app.parameter.1=-osgiUserWorkDir +wrapper.app.parameter.2="%TEMP%" +wrapper.app.parameter.2.stripquotes=TRUE +wrapper.app.parameter.3=-osgiConfiguration +wrapper.app.parameter.4=imp20 +wrapper.app.parameter.5=-osgiRoot +wrapper.app.parameter.6="%SHARED_HOME%" +wrapper.app.parameter.6.stripquotes=TRUE +wrapper.app.parameter.7=-osgiFrameworkConfigDir +wrapper.app.parameter.8="%RS_HOME%/frameworkconfig" +wrapper.app.parameter.8.stripquotes=TRUE +wrapper.app.parameter.9=-startprofileset +wrapper.app.parameter.10=imp20 +wrapper.app.parameter.11=-serviceSpecificationBundle +wrapper.app.parameter.12=com.rola.rsframe.core +wrapper.app.parameter.13=-serviceSpecificationClass +wrapper.app.parameter.14=com.rola.server.imp.rest.IMPRESTServlet +#Verbose output for osgi launcher +#wrapper.app.parameter.19=-osgiVerbose +wrapper.app.parameter.20=/configfile="%RS_HOME%/config/rsWebserviceImp20.xml" +wrapper.app.parameter.20.stripquotes=TRUE + +#******************************************************************** +# Wrapper Logging Properties +#******************************************************************** +# Enables Debug output from the Wrapper. +# wrapper.debug=TRUE + +# Format of output for the console. (See docs for formats) +wrapper.console.format=PM + +# Log Level for console output. (See docs for log levels) +wrapper.console.loglevel=STATUS + +# Log file to use for wrapper output logging. +wrapper.logfile="{{ LOG_DIR }}/webservice/rsWebserviceImp20-servicewrapper.log" + +# Format of output for the log file. (See docs for formats) +wrapper.logfile.format=LPTM + +# Log Level for log file output. (See docs for log levels) +wrapper.logfile.loglevel={{ ams_LogLevel }} + +# Maximum size that the log file will be allowed to grow to before +# the log is rolled. Size is specified in bytes. The default value +# of 0, disables log rolling. May abbreviate with the 'k' (kb) or +# 'm' (mb) suffix. For example: 10m = 10 megabytes. +wrapper.logfile.maxsize=10m + +# Maximum number of rolled log files which will be allowed before old +# files are deleted. The default value of 0 implies no limit. +wrapper.logfile.maxfiles=30 + +# Log Level for sys/event log output. (See docs for log levels) +wrapper.syslog.loglevel=ERROR + +#******************************************************************** +# Wrapper General Properties +#******************************************************************** +# Set the working directory to the RS-Home directory +wrapper.working.dir=%RS_HOME% + +# Allow for the use of non-contiguous numbered properties +wrapper.ignore_sequence_gaps=TRUE + +# Do not start if the pid file already exists. +#wrapper.pidfile.strict=TRUE + +# Title to use when running as a console +wrapper.console.title=rsWebserviceImp20-Service + +#******************************************************************** +# Wrapper JVM Checks +#******************************************************************** +# Detect DeadLocked Threads in the JVM. (Requires Standard Edition) +wrapper.check.deadlock=TRUE +wrapper.check.deadlock.interval=60 +wrapper.check.deadlock.action=RESTART +wrapper.check.deadlock.output=FULL + +# Out Of Memory detection. +# Ignore -verbose:class output to avoid false positives. +wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError +wrapper.filter.action.1000=NONE +# (Simple match) +wrapper.filter.trigger.1001=java.lang.OutOfMemoryError +# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) +#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError +#wrapper.filter.allow_wildcards.1001=TRUE +wrapper.filter.action.1001=RESTART +wrapper.filter.message.1001=The JVM has run out of memory. + +#******************************************************************** +# Wrapper Email Notifications. (Requires Professional Edition) +#******************************************************************** +# Common Event Email settings. +#wrapper.event.default.email.debug=TRUE +#wrapper.event.default.email.smtp.host= +#wrapper.event.default.email.smtp.port=25 +#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification +#wrapper.event.default.email.sender= +#wrapper.event.default.email.recipient= + + +# Restart behaviour depending on exit code +# Service exited with bad result (exit code != 0) +wrapper.on_exit.default=RESTART + +# Service exited with good result (exit code = 0) +wrapper.on_exit.0=SHUTDOWN + +# Number of seconds to allow between the time that the JVM reports that it is stopped +# and the time that the JVM process actually terminates (e.g. termination of pending threads) +wrapper.jvm_exit.timeout=30 + +# Delay service restart for number of seconds +wrapper.restart.delay=15 + +#******************************************************************** +# Wrapper Windows Service Properties +#******************************************************************** +# WARNING - Do not modify any of these properties when an application +# using this configuration file has been installed as a service. +# Please uninstall the service before modifying this section. The +# service can then be reinstalled. + +# Name of the service +wrapper.name=rsWebserviceImp20 + +# Display name of the service +wrapper.displayname=rsWebserviceImp20 + +# Description of the service +wrapper.description=rsWebserviceImp20 + +# Service dependencies. Add dependencies as needed starting from 1 +wrapper.ntservice.dependency.1= + +# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START +wrapper.ntservice.starttype=AUTO_START + +# Allow the service to interact with the desktop (Windows NT/2000/XP only). +wrapper.ntservice.interactive=FALSE + +# Automatically restart the service periodically +#wrapper.timer.1.action=RESTART +#wrapper.timer.1.interval=hour=24 + +# Configure the log attached to event emails. +#wrapper.event.default.email.maillog=ATTACHMENT +#wrapper.event.default.email.maillog.lines=50 +#wrapper.event.default.email.maillog.format=LPTM +#wrapper.event.default.email.maillog.loglevel=INFO + +# Enable specific event emails. +#wrapper.event.wrapper_start.email=TRUE +#wrapper.event.jvm_prelaunch.email=TRUE +#wrapper.event.jvm_start.email=TRUE +#wrapper.event.jvm_started.email=TRUE +#wrapper.event.jvm_deadlock.email=TRUE +#wrapper.event.jvm_stop.email=TRUE +#wrapper.event.jvm_stopped.email=TRUE +#wrapper.event.jvm_restart.email=TRUE +#wrapper.event.jvm_failed_invocation.email=TRUE +#wrapper.event.jvm_max_failed_invocations.email=TRUE +#wrapper.event.jvm_kill.email=TRUE +#wrapper.event.jvm_killed.email=TRUE +#wrapper.event.jvm_unexpected_exit.email=TRUE +#wrapper.event.wrapper_stop.email=TRUE + +# Specify custom mail content +#wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n diff --git a/roles/ams_0006_8.0.5.0/templates/rsWebserviceImp20.xml.j2 b/roles/ams_0006_8.0.5.0/templates/rsWebserviceImp20.xml.j2 new file mode 100644 index 0000000..001770d --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/rsWebserviceImp20.xml.j2 @@ -0,0 +1,480 @@ + + + + +]> + + + + &key; + &pwd; + &common; + ICMMKJBDIPNPPFFIPOIHEMHAKMKHBBLJIHNMFALMPAIGBEDDIFAMDIBDAMGLKOGFAFB + + /opt/tmp/ + + C:/Programme/Internet Explorer/IEXPLORE.EXE + + true + 1 + + + + + + + + + + + 5 + + 5 + + + + + 2 + + + -1 + + + + + + + + + + + + + + + + + + + + + + + + + + {{ ams_LogLevel }} + + true + + true + true + + true + + + true + + + + + + + + + '.'yyyy-MM-dd + + + %d{dd MMM yyyy HH:mm:ss} [%t] %-5p %x :APPLICATION_ID: - %m%n + + + + 10MB + + + + + + + 0 + + rsWebserviceImp20.log + + {{ LOG_DIR }}/webservice/ + + false + + + + + + + + + + + + + @ENV=RS_HOME@/doc/help + + + + + /opt/tmp/rsCasePrintTemp + + + + + + /opt/tmp/rsCasePrintTemp/PrinterConfigurations + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + A|B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + 30 + notepad + + + + 0 + true + + + 2880 + + + 2 + + + 3600000 + + + + + + + + + ? + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + IF Import + + IF: Datenübername aus Fremdsystem + 120 + true + false + /opt/tmp + 60.0 + + + + 80 + + + + + + + + + + + + + + + + + 90000 + 60000 + + true + + + + + true + + + + + + + + + C:\Users\bmeise\AppData\Local\Temp\\export + rssuper + + + + + + + + + -1 + + + + + + + + IMP2_0 + + + + + + + true + + + false + + false + + false + + + false + true + + + + + false + + + + + + true + 2000 + + + + + + + + bka.bund.de/abs + + 1000 + + 5000 + + 3 + + + + 2880 + + + 2 + + + + + + false + + NORMAL + + + STANDARD + + MON1 + + false + + false + + 10888 + + monadmin + + + + 127.0.0.1|0:0:0:0:0:0:0:1 + + -1 + + -1 + + false + + false + + false + + false + + + + + + false + + + + + + -1 + + + + 1000 + + + + + true + + + + + true + + config/module/dictionary/ + + config/module/dictionary/ + + /opt/tmp/dictionary/ + + diff --git a/roles/ams_0006_8.0.5.0/templates/tech.database.yaml.j2 b/roles/ams_0006_8.0.5.0/templates/tech.database.yaml.j2 new file mode 100644 index 0000000..00bcfc8 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/templates/tech.database.yaml.j2 @@ -0,0 +1,41 @@ +## Scope +bundle.name: com.rola.radium.rsframe + +database: + + rsframe: + + ## Database connection options + db-config: + ## jdbc connection string for database connection + connect-string: jdbc:oracle:thin:@//{{ ams_DatabaseIPAdress }}:{{ ams_DatabasePort }}/{{ ams_DatabaseServiceName }} + ## oracle logon username, DO NOT MODIFY + username: ROLA_SERVERUSER + ## oracle logon password + password: ASSERVATE_TOOL + ## algorithm used for jdbc checksum calculation + #checksum-type: MD5 + ## level used for jdbc checksum calculation + #checksum-level: Accepted + ## algorithm used for jdbc encryption + #encryption-type: RC4_128 + ## level used for jdbc encryption + #encryption-level: Accepted + + # Connection pool preferences. + pool: + ## Minimum size of UCP pool. + #min-pool-size: 0 + ## Maximum size of UCP pool. + #max-pool-size: 500 + + ## Database SQL related tracing options + tracing: + ## Log all queries (to log-category: "rola.database.jdbc.query" with level "DEBUG") + #enable-log-all-queries: false + ## Log params for query- and slow-query-log entires + #enable-log-params: false + ## Log all slow queries (to log-category: "rola.database.jdbc.slowquery" with level "WARN") + #enable-log-slow-queries: true + ## Slow query execution time threshold in millis + #slow-query-threshold-millis: 30000 diff --git a/roles/ams_0006_8.0.5.0/tests/inventory b/roles/ams_0006_8.0.5.0/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/ams_0006_8.0.5.0/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/ams_0006_8.0.5.0/tests/test.yml b/roles/ams_0006_8.0.5.0/tests/test.yml new file mode 100644 index 0000000..af33406 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - default_role \ No newline at end of file diff --git a/roles/ams_0006_8.0.5.0/vars/main.yml b/roles/ams_0006_8.0.5.0/vars/main.yml new file mode 100644 index 0000000..3bdb116 --- /dev/null +++ b/roles/ams_0006_8.0.5.0/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for default_role \ No newline at end of file diff --git a/roles/ams_0008_8.0.8.0/.travis.yml b/roles/ams_0008_8.0.8.0/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/.travis.yml @@ -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/ \ No newline at end of file diff --git a/roles/ams_0008_8.0.8.0/README.md b/roles/ams_0008_8.0.8.0/README.md new file mode 100644 index 0000000..9ebb87b --- /dev/null +++ b/roles/ams_0008_8.0.8.0/README.md @@ -0,0 +1,40 @@ +Role Name +========= + +Installation von AMS Software 0008_8.0.8.0 + +Requirements +------------ + +Unterhalb von templates/ sind erforderliche Dateien. Sonst nichts. + +Role Variables +-------------- + +Variablen sind innerhalb der Rolle keine vorhanden. + +Alle Variablen befinden sich unterhalb ansible/ams/group_vars/ + +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: + - ams_0008_8.0.8.0 + +License +------- + +BSD + +Author Information +------------------ + +20200107 M. Gillitzer diff --git a/roles/ams_0008_8.0.8.0/defaults/main.yml b/roles/ams_0008_8.0.8.0/defaults/main.yml new file mode 100644 index 0000000..4db8f11 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for default_role \ No newline at end of file diff --git a/roles/ams_0008_8.0.8.0/handlers/main.yml b/roles/ams_0008_8.0.8.0/handlers/main.yml new file mode 100644 index 0000000..cb71395 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for default_role \ No newline at end of file diff --git a/roles/ams_0008_8.0.8.0/meta/main.yml b/roles/ams_0008_8.0.8.0/meta/main.yml new file mode 100644 index 0000000..5d50bf4 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/meta/main.yml @@ -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. \ No newline at end of file diff --git a/roles/ams_0008_8.0.8.0/tasks/main.yml b/roles/ams_0008_8.0.8.0/tasks/main.yml new file mode 100644 index 0000000..9bdee7c --- /dev/null +++ b/roles/ams_0008_8.0.8.0/tasks/main.yml @@ -0,0 +1,149 @@ +--- + - name: Template file pwdAppserver.xml.j2 with owner and permissions + template: + src: ./templates/pwd_Appserver.xml.j2 + dest: /opt/rola/ams/linux/Appserver/config/pwd.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file rsWebserviceAppserver.xml.j2 with owner and permissions + template: + src: ./templates/rsWebserviceAppserver.xml.j2 + dest: /opt/rola/ams/linux/Appserver/config/rsWebserviceAppserver.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file rsWebserviceAppserver.conf.j2 to /opt/rola/ams/linux/Appserver/service/config/rsWebserviceAppserver.conf + template: + src: ./templates/rsWebserviceAppserver.conf.j2 + dest: /opt/rola/ams/linux/Appserver/service/config/rsWebserviceAppserver.conf + owner: jetty + group: dba + mode: '0644' + - name: Template file pwd_ServiceIMP.xml.j2 with owner and permissions + template: + src: ./templates/pwd_ServiceIMP.xml.j2 + dest: /opt/rola/ams/linux/Services/config/pwd.xml + owner: jetty + group: dba + mode: '0644' + - name: Copy file rsWebserviceImp20.xml.j2 with owner and permissions + template: + src: ./templates/rsWebserviceImp20.xml.j2 + dest: /opt/rola/ams/linux/Services/config/rsWebserviceImp20.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file rsWebserviceImp20.conf.j2 with owner and permissions + template: + src: ./templates/rsWebserviceImp20.conf.j2 + dest: /opt/rola/ams/linux/Services/service/config/rsWebserviceImp20.conf + owner: jetty + group: dba + mode: '0644' + - name: Template file rsAmsBvService.conf.j2 with owner and permissions + template: + src: ./templates/rsAmsBvService.conf.j2 + dest: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0/service/config/rsAmsBvService.conf + owner: jetty + group: dba + mode: '0644' + - name: Template file tech.database.yaml.j2 with owner and permissions + template: + src: ./templates/tech.database.yaml.j2 + dest: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0/frameworkconfig/prefs/tech.database.yaml + owner: jetty + group: dba + mode: '0644' + - name: Template file jetty.xml.j2 for Appserver with owner and permissions + template: + src: ./templates/jetty.xml.j2 + dest: /opt/rola/ams/linux/Appserver/frameworkconfig/jetty_home/etc/jetty.xml + owner: jetty + group: dba + mode: '0644' + - name: Template file jetty.xml.j2 for Services with owner and permissions + template: + src: ./templates/jetty.xml.j2 + dest: /opt/rola/ams/linux/Services/frameworkconfig/jetty_home/etc/jetty.xml + owner: jetty + group: dba + mode: '0644' + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_ASSERVAT.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_ASSERVAT.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_BERICHT.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_BERICHT.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_BETEILIGTE_STELLE.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_BETEILIGTE_STELLE.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_FARBANGABE.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_FARBANGABE.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_KATALOG_CODE226.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_KATALOG_CODE226.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_KATALOG_CODE295.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_KATALOG_CODE295.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_KFZ_KENNZEICHENINFORMATION.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_KFZ_KENNZEICHENINFORMATION.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_MATERIAL.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_MATERIAL.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_MERKMAL.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_MERKMAL.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_NUMMERNANGABE_BEI_FAHRZEUGEN.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_NUMMERNANGABE_BEI_FAHRZEUGEN.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_PLZORT.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_PLZORT.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_TAETOWIERUNG.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_TAETOWIERUNG.xml + state: absent + - name: Remove file /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_ZULASSUNGSINFO_WFZ.xml + file: + path: /opt/rola/ams/linux/Services/plugins/rola/com.rola.rsframe.project.ams/com/rola/rscase/configfiles/gui/statedependentcols/SDCC_ZULASSUNGSINFO_WFZ.xml + state: absent + - name: commit changes to git + shell: | + git add . + git -c user.name='Ansible Playbook' -c user.email='ansible@playbook' commit -m "ams_0008_8.0.8.0" + exit 0 + args: + chdir: "/opt/rola" + + + + + + + + + + + + + + + + + + + diff --git a/roles/ams_0008_8.0.8.0/templates/jetty.xml.j2 b/roles/ams_0008_8.0.8.0/templates/jetty.xml.j2 new file mode 100644 index 0000000..00e98dd --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/jetty.xml.j2 @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + 10 + 200 + + + + + + + + + + + + + + + + + + + + https + + 32768 + 8192 + 8192 + true + false + 512 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ ACCESS_LOG }}/jetty-yyyy_mm_dd.request.log + 30 + true + false + GMT + + + + + + + + + false + 30000 + false + false + + + + + + java.naming.factory.initial + + + + java.naming.factory.url.pkgs + + + + + + + + + + + + + + rola/config + [DEFAULT] + true + + + + + + + + + + + + + + + diff --git a/roles/ams_0008_8.0.8.0/templates/pwd_Appserver.xml.j2 b/roles/ams_0008_8.0.8.0/templates/pwd_Appserver.xml.j2 new file mode 100644 index 0000000..1e5a6d6 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/pwd_Appserver.xml.j2 @@ -0,0 +1,22 @@ + + + + 06.01.2020 14:55:52 + + AMS + + + + 1 + + {{ ams_DatabaseIPAdress }} + + {{ ams_DatabasePort }} + + {{ ams_DatabaseServiceName }} + + CCDNIBPNNMPMLCNKEHNCHEKDHFECHDNDIANDLKJAHCOAMEHHGEMPLEMDHLHKHEIBMIF + + {{ ams_DatabaseName }} + + diff --git a/roles/ams_0008_8.0.8.0/templates/pwd_ServiceIMP.xml.j2 b/roles/ams_0008_8.0.8.0/templates/pwd_ServiceIMP.xml.j2 new file mode 100644 index 0000000..1e5a6d6 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/pwd_ServiceIMP.xml.j2 @@ -0,0 +1,22 @@ + + + + 06.01.2020 14:55:52 + + AMS + + + + 1 + + {{ ams_DatabaseIPAdress }} + + {{ ams_DatabasePort }} + + {{ ams_DatabaseServiceName }} + + CCDNIBPNNMPMLCNKEHNCHEKDHFECHDNDIANDLKJAHCOAMEHHGEMPLEMDHLHKHEIBMIF + + {{ ams_DatabaseName }} + + diff --git a/roles/ams_0008_8.0.8.0/templates/rsAmsBvService.conf.j2 b/roles/ams_0008_8.0.8.0/templates/rsAmsBvService.conf.j2 new file mode 100644 index 0000000..a53de82 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/rsAmsBvService.conf.j2 @@ -0,0 +1,268 @@ +#encoding=UTF-8 +#******************************************************************** +# +# Service configuration file rsAmsBvService +# +#******************************************************************** +# +#******************************************************************** +# Wrapper License Properties +#******************************************************************** +# Include file problems can be debugged by leaving only one '#' +# at the beginning of the following line: +##include.debug +#include %SHARED_HOME%/foundation/servicewrapper/license/wrapper-license-rsFRAME.conf + +# The following property will output information about which License Key(s) +# are being found, and can aid in resolving any licensing problems. +#wrapper.license.debug=TRUE + +#******************************************************************** +# Wrapper Localization +#******************************************************************** +# Specify the language and locale which the Wrapper should use. +#wrapper.lang=en_US # en_US or ja_JP + +# Specify the location of the language resource files (*.mo). +wrapper.lang.folder=../lang + +#******************************************************************** +# Wrapper Java Properties +#******************************************************************** +# Java Application +wrapper.java.command=%JRE_HOME%/bin/java + +# Tell the Wrapper to log the full generated Java command line. +#wrapper.java.command.loglevel=INFO + +# Java Main class. This class must implement the WrapperListener interface +# or guarantee that the WrapperManager class is initialized. Helper +# classes are provided to do this for you. +# See the following page for details: +# http://wrapper.tanukisoftware.com/doc/english/integrate.html +wrapper.java.mainclass=com.rola.rscase.application.ServiceWrapperListener + +# Java Classpath (include wrapper.jar) Add class path elements as +# needed starting from 1 +wrapper.java.classpath.1=%SERVICE_HOME%/lib/wrapper.jar +wrapper.java.classpath.2=%SHARED_HOME%/com.rola.launcher.jar + +# Java Library Path (location of Wrapper.DLL or libwrapper.so) +wrapper.java.library.path.1=%SERVICE_HOME%/lib +wrapper.java.library.path.2=%SHARED_HOME%/native +wrapper.java.library.path.3=%SHARED_HOME%/native/%WRAPPER_BITS% +wrapper.java.library.path.4=%WINDIR%/SYSTEM32 + +# Set system path +set.PATH=%SHARED_HOME%/native%WRAPPER_PATH_SEPARATOR%%SHARED_HOME%/native/%WRAPPER_BITS%%WRAPPER_PATH_SEPARATOR%%PATH% + +# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. +wrapper.java.additional.auto_bits=TRUE + +# Java Additional Parameters +wrapper.java.additional.1=-server +wrapper.java.additional.2=-XX:ErrorFile="%RS_HOME%/service/log/rsAmsBvService_hs_err_pid%p.log" +wrapper.java.additional.2.stripquotes=TRUE +wrapper.java.additional.3=-Djava.io.tmpdir="%TEMP%" +wrapper.java.additional.3.stripquotes=TRUE +wrapper.java.additional.4=-XX:+DisableAttachMechanism +wrapper.java.additional.5=-XX:+UseG1GC +wrapper.java.additional.6=-XX:MaxGCPauseMillis=500 +wrapper.java.additional.7=-XX:ConcGCThreads=4 +wrapper.java.additional.8=-XX:ParallelGCThreads=4 +wrapper.java.additional.9=-XX:CICompilerCount=4 +wrapper.java.additional.10=-XX:+UseStringDeduplication +# Java Parameters for general webservice HTTP access +wrapper.java.additional.11=-Dorg.apache.felix.http.host={{ ansible_facts['default_ipv4']['address'] }} +wrapper.java.additional.12=-Dorg.osgi.service.http.port=7373 +#wrapper.java.additional.13=-Dorg.osgi.service.http.port.secure=8443 + +# Optional alternative config paths for rola yaml config files +#wrapper.java.additional.20=-Drola.prefs="%RS_HOME%/frameworkconfig/prefs" +wrapper.java.additional.20.stripquotes=TRUE + +# Path for rola log files +wrapper.java.additional.21=-Drola.logfile.path="{{ LOG_DIR }}/bvservice" +wrapper.java.additional.21.stripquotes=TRUE + +# Service name and type, default is the same as the config file name +# As this is used for logging filenames, only use characters [A-Za-z0-9_.] +wrapper.java.additional.22=-Drola.service.name=rsAmsBvService +wrapper.java.additional.23=-Drola.service.type=rsAmsBvService + +# Initial Java Heap Size (in MB) +wrapper.java.initmemory=128 + +# Maximum Java Heap Size (in MB) +wrapper.java.maxmemory=2048 + +# Service parameters: +# 1-19. parameter: OSGi and framework parameters +# 20-n. parameter: further start parameters for rsFRAME service (optional, e.g. configfile) + +wrapper.app.parameter.1=-osgiUserWorkDir +wrapper.app.parameter.2="%TEMP%" +wrapper.app.parameter.2.stripquotes=TRUE +wrapper.app.parameter.3=-osgiConfiguration +wrapper.app.parameter.4=webamsbv +wrapper.app.parameter.5=-osgiRoot +wrapper.app.parameter.6="%SHARED_HOME%" +wrapper.app.parameter.6.stripquotes=TRUE +wrapper.app.parameter.7=-osgiFrameworkConfigDir +wrapper.app.parameter.8="%RS_HOME%/frameworkconfig" +wrapper.app.parameter.8.stripquotes=TRUE +wrapper.app.parameter.9=-startprofileset +wrapper.app.parameter.10=webamsbv +#Verbose output for osgi launcher +#wrapper.app.parameter.19=-osgiVerbose + +#******************************************************************** +# Wrapper Logging Properties +#******************************************************************** +# Enables Debug output from the Wrapper. +# wrapper.debug=TRUE + +# Format of output for the console. (See docs for formats) +wrapper.console.format=PM + +# Log Level for console output. (See docs for log levels) +wrapper.console.loglevel=STATUS + +# Log file to use for wrapper output logging. +wrapper.logfile="{{ LOG_DIR }}/bvservice/rsAmsBvService.log" + +# Format of output for the log file. (See docs for formats) +wrapper.logfile.format=LPTM + +# Log Level for log file output. (See docs for log levels) +wrapper.logfile.loglevel={{ ams_LogLevel }} + +# Maximum size that the log file will be allowed to grow to before +# the log is rolled. Size is specified in bytes. The default value +# of 0, disables log rolling. May abbreviate with the 'k' (kb) or +# 'm' (mb) suffix. For example: 10m = 10 megabytes. +wrapper.logfile.maxsize=10m + +# Maximum number of rolled log files which will be allowed before old +# files are deleted. The default value of 0 implies no limit. +wrapper.logfile.maxfiles=30 + +# Log Level for sys/event log output. (See docs for log levels) +wrapper.syslog.loglevel=ERROR + +#******************************************************************** +# Wrapper General Properties +#******************************************************************** +# Set the working directory to the RS-Home directory +wrapper.working.dir=%RS_HOME% + +# Allow for the use of non-contiguous numbered properties +wrapper.ignore_sequence_gaps=TRUE + +# Do not start if the pid file already exists. +#wrapper.pidfile.strict=TRUE + +# Title to use when running as a console +wrapper.console.title=rsAmsBvService + +#******************************************************************** +# Wrapper JVM Checks +#******************************************************************** +# Detect DeadLocked Threads in the JVM. (Requires Standard Edition) +wrapper.check.deadlock=TRUE +wrapper.check.deadlock.interval=60 +wrapper.check.deadlock.action=RESTART +wrapper.check.deadlock.output=FULL + +# Out Of Memory detection. +# Ignore -verbose:class output to avoid false positives. +wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError +wrapper.filter.action.1000=NONE +# (Simple match) +wrapper.filter.trigger.1001=java.lang.OutOfMemoryError +# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) +#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError +#wrapper.filter.allow_wildcards.1001=TRUE +wrapper.filter.action.1001=RESTART +wrapper.filter.message.1001=The JVM has run out of memory. + +#******************************************************************** +# Wrapper Email Notifications. (Requires Professional Edition) +#******************************************************************** +# Common Event Email settings. +#wrapper.event.default.email.debug=TRUE +#wrapper.event.default.email.smtp.host= +#wrapper.event.default.email.smtp.port=25 +#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification +#wrapper.event.default.email.sender= +#wrapper.event.default.email.recipient= + + +# Restart behaviour depending on exit code +# Service exited with bad result (exit code != 0) +wrapper.on_exit.default=RESTART + +# Service exited with good result (exit code = 0) +wrapper.on_exit.0=SHUTDOWN + +# Number of seconds to allow between the time that the JVM reports that it is stopped +# and the time that the JVM process actually terminates (e.g. termination of pending threads) +wrapper.jvm_exit.timeout=30 + +# Delay service restart for number of seconds +wrapper.restart.delay=15 + +#******************************************************************** +# Wrapper Windows Service Properties +#******************************************************************** +# WARNING - Do not modify any of these properties when an application +# using this configuration file has been installed as a service. +# Please uninstall the service before modifying this section. The +# service can then be reinstalled. + +# Name of the service +wrapper.name=rsAmsBvService + +# Display name of the service +wrapper.displayname=rsAmsBvService + +# Description of the service +wrapper.description=rsAmsBvService + +# Service dependencies. Add dependencies as needed starting from 1 +wrapper.ntservice.dependency.1= + +# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START +wrapper.ntservice.starttype=AUTO_START + +# Allow the service to interact with the desktop (Windows NT/2000/XP only). +wrapper.ntservice.interactive=FALSE + +# Automatically restart the service periodically +#wrapper.timer.1.action=RESTART +#wrapper.timer.1.interval=hour=24 + +# Configure the log attached to event emails. +#wrapper.event.default.email.maillog=ATTACHMENT +#wrapper.event.default.email.maillog.lines=50 +#wrapper.event.default.email.maillog.format=LPTM +#wrapper.event.default.email.maillog.loglevel=INFO + +# Enable specific event emails. +#wrapper.event.wrapper_start.email=TRUE +#wrapper.event.jvm_prelaunch.email=TRUE +#wrapper.event.jvm_start.email=TRUE +#wrapper.event.jvm_started.email=TRUE +#wrapper.event.jvm_deadlock.email=TRUE +#wrapper.event.jvm_stop.email=TRUE +#wrapper.event.jvm_stopped.email=TRUE +#wrapper.event.jvm_restart.email=TRUE +#wrapper.event.jvm_failed_invocation.email=TRUE +#wrapper.event.jvm_max_failed_invocations.email=TRUE +#wrapper.event.jvm_kill.email=TRUE +#wrapper.event.jvm_killed.email=TRUE +#wrapper.event.jvm_unexpected_exit.email=TRUE +#wrapper.event.wrapper_stop.email=TRUE + +# Specify custom mail content +#wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n diff --git a/roles/ams_0008_8.0.8.0/templates/rsWebserviceAppserver.conf.j2 b/roles/ams_0008_8.0.8.0/templates/rsWebserviceAppserver.conf.j2 new file mode 100644 index 0000000..a9297f8 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/rsWebserviceAppserver.conf.j2 @@ -0,0 +1,287 @@ +#encoding=UTF-8 +#******************************************************************** +# +# Service configuration file rsWebserviceAppserver +# +#******************************************************************** +# +#******************************************************************** +# Wrapper License Properties +#******************************************************************** +# Include file problems can be debugged by leaving only one '#' +# at the beginning of the following line: +##include.debug +#include %SHARED_HOME%/foundation/servicewrapper/license/wrapper-license-rsFRAME.conf + +# The following property will output information about which License Key(s) +# are being found, and can aid in resolving any licensing problems. +#wrapper.license.debug=TRUE + +#******************************************************************** +# Wrapper Localization +#******************************************************************** +# Specify the language and locale which the Wrapper should use. +#wrapper.lang=en_US # en_US or ja_JP + +# Specify the location of the language resource files (*.mo). +wrapper.lang.folder=../lang + +#******************************************************************** +# Wrapper Java Properties +#******************************************************************** +# Java Application +wrapper.java.command=%JRE_HOME%/bin/java + +# Tell the Wrapper to log the full generated Java command line. +#wrapper.java.command.loglevel=INFO + +# Java Main class. This class must implement the WrapperListener interface +# or guarantee that the WrapperManager class is initialized. Helper +# classes are provided to do this for you. +# See the following page for details: +# http://wrapper.tanukisoftware.com/doc/english/integrate.html +wrapper.java.mainclass=com.rola.rscase.application.ServiceWrapperListener + +# Java Classpath (include wrapper.jar) Add class path elements as +# needed starting from 1 +wrapper.java.classpath.1=%SERVICE_HOME%/lib/wrapper.jar +wrapper.java.classpath.2=%SHARED_HOME%/com.rola.launcher.jar + +# Java Library Path (location of Wrapper.DLL or libwrapper.so) +wrapper.java.library.path.1=%SERVICE_HOME%/lib +wrapper.java.library.path.2=%SHARED_HOME%/native +wrapper.java.library.path.3=%SHARED_HOME%/native/%WRAPPER_BITS% +wrapper.java.library.path.4=%WINDIR%/SYSTEM32 + +# Set system path +set.PATH=%SHARED_HOME%/native%WRAPPER_PATH_SEPARATOR%%SHARED_HOME%/native/%WRAPPER_BITS%%WRAPPER_PATH_SEPARATOR%%PATH% + +# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. +wrapper.java.additional.auto_bits=TRUE + +# Java Additional Parameters +wrapper.java.additional.1=-server +wrapper.java.additional.2=-XX:ErrorFile="%RS_HOME%/service/log/rsWebserviceAppserver_hs_err_pid%p.log" +wrapper.java.additional.2.stripquotes=TRUE +wrapper.java.additional.3=-Djava.io.tmpdir="%TEMP%" +wrapper.java.additional.3.stripquotes=TRUE +wrapper.java.additional.4=-XX:+DisableAttachMechanism +wrapper.java.additional.5=-Drola.config="%SHARED_HOME%/config" +wrapper.java.additional.5.stripquotes=TRUE + +# Java Parameters for general webservice HTTP access +wrapper.java.additional.6=-Djetty.host={{ ansible_facts['default_ipv4']['address'] }} +wrapper.java.additional.7=-Djetty.port=8080 + +# List of paths/directories to "overlay" the standard configuration files separated by comma ",". +# File contents are merged. +# Default: %RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec +#wrapper.java.additional.8=-Drola.config.overlay.paths="%RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec" +wrapper.java.additional.8.stripquotes=TRUE +# enable debug information for error analysis in config overlay +#wrapper.java.additional.9=-Drola.config.overlay.debug=true + +# Java parameters for secure webservice access via HTTPs (e.g. AIF) +#wrapper.java.additional.10=-Djavax.net.ssl.keyStore= +#wrapper.java.additional.11=-Djavax.net.ssl.keyStoreType=JKS +#wrapper.java.additional.12=-Djavax.net.ssl.keyStorePassword= +#wrapper.java.additional.13=-Djavax.net.ssl.trustStore= +#wrapper.java.additional.14=-Djavax.net.ssl.trustStoreType=JKS +#wrapper.java.additional.15=-Djavax.net.ssl.trustStorePassword= + +# Optional Jetty SSL configuration +# example for default web server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc/jetty-ssl.xml,etc/jetty-https.xml +# example for application server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc-appserver/jetty-ssl.xml,etc-appserver/jetty-https.xml + +#wrapper.java.additional.21=-Djetty.https.host= +#wrapper.java.additional.22=-Djetty.https.port=443 +#wrapper.java.additional.23=-Djetty.logdir="%RS_HOME%/service/log/rsWebserviceAppserver-jetty/" +#wrapper.java.additional.23.stripquotes=TRUE + +#Activate UTF-8 support for gss kerberos authentication. +wrapper.java.additional.26=-Dsun.security.krb5.msinterop.kstring=true + +# Initial Java Heap Size (in MB) +wrapper.java.initmemory=1024 + +# Maximum Java Heap Size (in MB) +wrapper.java.maxmemory=2048 + +# Service parameters: +# 1-19. parameter: OSGi and framework parameters +# 20-n. parameter: further start parameters for rsFRAME service (optional, e.g. configfile) + +wrapper.app.parameter.1=-osgiUserWorkDir +wrapper.app.parameter.2="%TEMP%" +wrapper.app.parameter.2.stripquotes=TRUE +wrapper.app.parameter.3=-osgiConfiguration +wrapper.app.parameter.4=appserver +wrapper.app.parameter.5=-osgiRoot +wrapper.app.parameter.6="%SHARED_HOME%" +wrapper.app.parameter.6.stripquotes=TRUE +wrapper.app.parameter.7=-osgiFrameworkConfigDir +wrapper.app.parameter.8="%RS_HOME%/frameworkconfig" +wrapper.app.parameter.8.stripquotes=TRUE +wrapper.app.parameter.9=-startprofileset +wrapper.app.parameter.10=appserver +wrapper.app.parameter.11=-serviceSpecificationBundle +wrapper.app.parameter.12=com.rola.rsframe.module.appserver +wrapper.app.parameter.13=-serviceSpecificationClass +wrapper.app.parameter.14=com.rola.rsframe.module.appserver.specifications.AppserverServiceSpecification +#Verbose output for osgi launcher +#wrapper.app.parameter.19=-osgiVerbose +wrapper.app.parameter.20=/configfile="%RS_HOME%/config/rsWebserviceAppserver.xml" +wrapper.app.parameter.20.stripquotes=TRUE + +#******************************************************************** +# Wrapper Logging Properties +#******************************************************************** +# Enables Debug output from the Wrapper. +# wrapper.debug=TRUE + +# Format of output for the console. (See docs for formats) +wrapper.console.format=PM + +# Log Level for console output. (See docs for log levels) +wrapper.console.loglevel=STATUS + +# Log file to use for wrapper output logging. +wrapper.logfile="{{ LOG_DIR }}/appserver/rsWebserviceAppserver-servicewrapper.log" + +# Format of output for the log file. (See docs for formats) +wrapper.logfile.format=LPTM + +# Log Level for log file output. (See docs for log levels) +wrapper.logfile.loglevel={{ ams_LogLevel }} + +# Maximum size that the log file will be allowed to grow to before +# the log is rolled. Size is specified in bytes. The default value +# of 0, disables log rolling. May abbreviate with the 'k' (kb) or +# 'm' (mb) suffix. For example: 10m = 10 megabytes. +wrapper.logfile.maxsize=10m + +# Maximum number of rolled log files which will be allowed before old +# files are deleted. The default value of 0 implies no limit. +wrapper.logfile.maxfiles=30 + +# Log Level for sys/event log output. (See docs for log levels) +wrapper.syslog.loglevel=ERROR + +#******************************************************************** +# Wrapper General Properties +#******************************************************************** +# Set the working directory to the RS-Home directory +wrapper.working.dir=%RS_HOME% + +# Allow for the use of non-contiguous numbered properties +wrapper.ignore_sequence_gaps=TRUE + +# Do not start if the pid file already exists. +#wrapper.pidfile.strict=TRUE + +# Title to use when running as a console +wrapper.console.title=rsWebserviceAppserver-Service + +#******************************************************************** +# Wrapper JVM Checks +#******************************************************************** +# Detect DeadLocked Threads in the JVM. (Requires Standard Edition) +wrapper.check.deadlock=TRUE +wrapper.check.deadlock.interval=60 +wrapper.check.deadlock.action=RESTART +wrapper.check.deadlock.output=FULL + +# Out Of Memory detection. +# Ignore -verbose:class output to avoid false positives. +wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError +wrapper.filter.action.1000=NONE +# (Simple match) +wrapper.filter.trigger.1001=java.lang.OutOfMemoryError +# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) +#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError +#wrapper.filter.allow_wildcards.1001=TRUE +wrapper.filter.action.1001=RESTART +wrapper.filter.message.1001=The JVM has run out of memory. + +#******************************************************************** +# Wrapper Email Notifications. (Requires Professional Edition) +#******************************************************************** +# Common Event Email settings. +#wrapper.event.default.email.debug=TRUE +#wrapper.event.default.email.smtp.host= +#wrapper.event.default.email.smtp.port=25 +#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification +#wrapper.event.default.email.sender= +#wrapper.event.default.email.recipient= + + +# Restart behaviour depending on exit code +# Service exited with bad result (exit code != 0) +wrapper.on_exit.default=RESTART + +# Service exited with good result (exit code = 0) +wrapper.on_exit.0=SHUTDOWN + +# Number of seconds to allow between the time that the JVM reports that it is stopped +# and the time that the JVM process actually terminates (e.g. termination of pending threads) +wrapper.jvm_exit.timeout=30 + +# Delay service restart for number of seconds +wrapper.restart.delay=15 + +#******************************************************************** +# Wrapper Windows Service Properties +#******************************************************************** +# WARNING - Do not modify any of these properties when an application +# using this configuration file has been installed as a service. +# Please uninstall the service before modifying this section. The +# service can then be reinstalled. + +# Name of the service +wrapper.name=rsWebserviceAppserver + +# Display name of the service +wrapper.displayname=rsWebserviceAppserver + +# Description of the service +wrapper.description=rsWebserviceAppserver + +# Service dependencies. Add dependencies as needed starting from 1 +wrapper.ntservice.dependency.1= + +# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START +wrapper.ntservice.starttype=AUTO_START + +# Allow the service to interact with the desktop (Windows NT/2000/XP only). +wrapper.ntservice.interactive=FALSE + +# Automatically restart the service periodically +#wrapper.timer.1.action=RESTART +#wrapper.timer.1.interval=hour=24 + +# Configure the log attached to event emails. +#wrapper.event.default.email.maillog=ATTACHMENT +#wrapper.event.default.email.maillog.lines=50 +#wrapper.event.default.email.maillog.format=LPTM +#wrapper.event.default.email.maillog.loglevel=INFO + +# Enable specific event emails. +#wrapper.event.wrapper_start.email=TRUE +#wrapper.event.jvm_prelaunch.email=TRUE +#wrapper.event.jvm_start.email=TRUE +#wrapper.event.jvm_started.email=TRUE +#wrapper.event.jvm_deadlock.email=TRUE +#wrapper.event.jvm_stop.email=TRUE +#wrapper.event.jvm_stopped.email=TRUE +#wrapper.event.jvm_restart.email=TRUE +#wrapper.event.jvm_failed_invocation.email=TRUE +#wrapper.event.jvm_max_failed_invocations.email=TRUE +#wrapper.event.jvm_kill.email=TRUE +#wrapper.event.jvm_killed.email=TRUE +#wrapper.event.jvm_unexpected_exit.email=TRUE +#wrapper.event.wrapper_stop.email=TRUE + +# Specify custom mail content +#wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n diff --git a/roles/ams_0008_8.0.8.0/templates/rsWebserviceAppserver.xml.j2 b/roles/ams_0008_8.0.8.0/templates/rsWebserviceAppserver.xml.j2 new file mode 100644 index 0000000..05a0d39 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/rsWebserviceAppserver.xml.j2 @@ -0,0 +1,320 @@ + + + + +]> + + + + &key; + &pwd; + &common; + ILNJNEBDBDLFBDAHBHJKCJGJKCEOKPJOHJCNHMOBAPIOHMBGNNLGEBJMOPEKKOGFAFB + + /opt/tmp/ + + C:/Programme/Internet Explorer/IEXPLORE.EXE + + true + 1 + + + + + + + + + + + 5 + + 5 + + + + + 2 + + + -1 + + + + + + + + + + + + + + + + + + + + + + + + + + {{ ams_LogLevel }} + + true + + true + true + + true + + + true + + + + + + + + + '.'yyyy-MM-dd + + + %d{dd MMM yyyy HH:mm:ss} [%t] %-5p %x :APPLICATION_ID: - %m%n + + + + 10MB + + + + + + + 0 + + rsWebserviceAppServer.log + + {{ LOG_DIR }}/appserver + + false + + + + + + + + + + + + + @ENV=RS_HOME@/doc/help + + + + + /opt/tmp/rsCasePrintTemp + + + + + + /opt/tmp/rsCasePrintTemp/PrinterConfigurations + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + A|B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + 30 + notepad + + + + 0 + true + + + 2880 + + + 2 + + + 3600000 + + + + + + + + + ? + + + + + + + + + + + + + + + + + + + + + + + + false + + NORMAL + + + STANDARD + + MON1 + + false + + false + + 10888 + + monadmin + + + + 127.0.0.1|0:0:0:0:0:0:0:1 + + -1 + + -1 + + false + + false + + false + + false + + + + + + false + + + + + + -1 + + + + 1000 + + + + + true + + + + + true + + config/module/dictionary/ + + config/module/dictionary/ + + /opt/tmp/dictionary/ + + diff --git a/roles/ams_0008_8.0.8.0/templates/rsWebserviceImp20.conf.j2 b/roles/ams_0008_8.0.8.0/templates/rsWebserviceImp20.conf.j2 new file mode 100644 index 0000000..b6f1f88 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/rsWebserviceImp20.conf.j2 @@ -0,0 +1,287 @@ +#encoding=UTF-8 +#******************************************************************** +# +# Service configuration file rsWebserviceImp20 +# +#******************************************************************** +# +#******************************************************************** +# Wrapper License Properties +#******************************************************************** +# Include file problems can be debugged by leaving only one '#' +# at the beginning of the following line: +##include.debug +#include %SHARED_HOME%/foundation/servicewrapper/license/wrapper-license-rsFRAME.conf + +# The following property will output information about which License Key(s) +# are being found, and can aid in resolving any licensing problems. +#wrapper.license.debug=TRUE + +#******************************************************************** +# Wrapper Localization +#******************************************************************** +# Specify the language and locale which the Wrapper should use. +#wrapper.lang=en_US # en_US or ja_JP + +# Specify the location of the language resource files (*.mo). +wrapper.lang.folder=../lang + +#******************************************************************** +# Wrapper Java Properties +#******************************************************************** +# Java Application +wrapper.java.command=%JRE_HOME%/bin/java + +# Tell the Wrapper to log the full generated Java command line. +#wrapper.java.command.loglevel=INFO + +# Java Main class. This class must implement the WrapperListener interface +# or guarantee that the WrapperManager class is initialized. Helper +# classes are provided to do this for you. +# See the following page for details: +# http://wrapper.tanukisoftware.com/doc/english/integrate.html +wrapper.java.mainclass=com.rola.rscase.application.ServiceWrapperListener + +# Java Classpath (include wrapper.jar) Add class path elements as +# needed starting from 1 +wrapper.java.classpath.1=%SERVICE_HOME%/lib/wrapper.jar +wrapper.java.classpath.2=%SHARED_HOME%/com.rola.launcher.jar + +# Java Library Path (location of Wrapper.DLL or libwrapper.so) +wrapper.java.library.path.1=%SERVICE_HOME%/lib +wrapper.java.library.path.2=%SHARED_HOME%/native +wrapper.java.library.path.3=%SHARED_HOME%/native/%WRAPPER_BITS% +wrapper.java.library.path.4=%WINDIR%/SYSTEM32 + +# Set system path +set.PATH=%SHARED_HOME%/native%WRAPPER_PATH_SEPARATOR%%SHARED_HOME%/native/%WRAPPER_BITS%%WRAPPER_PATH_SEPARATOR%%PATH% + +# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. +wrapper.java.additional.auto_bits=TRUE + +# Java Additional Parameters +wrapper.java.additional.1=-server +wrapper.java.additional.2=-XX:ErrorFile="%RS_HOME%/service/log/rsWebserviceImp20_hs_err_pid%p.log" +wrapper.java.additional.2.stripquotes=TRUE +wrapper.java.additional.3=-Djava.io.tmpdir="%TEMP%" +wrapper.java.additional.3.stripquotes=TRUE +wrapper.java.additional.4=-XX:+DisableAttachMechanism +wrapper.java.additional.5=-Drola.config="%SHARED_HOME%/config" +wrapper.java.additional.5.stripquotes=TRUE + +# Java Parameters for general webservice HTTP access +wrapper.java.additional.6=-Djetty.host={{ ansible_facts['default_ipv4']['address'] }} +wrapper.java.additional.7=-Djetty.port=7272 + +# List of paths/directories to "overlay" the standard configuration files separated by comma ",". +# File contents are merged. +# Default: %RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec +#wrapper.java.additional.8=-Drola.config.overlay.paths="%RS_HOME%/config/overlay-tech,%RS_HOME%/config/overlay-spec" +wrapper.java.additional.8.stripquotes=TRUE +# enable debug information for error analysis in config overlay +#wrapper.java.additional.9=-Drola.config.overlay.debug=true + +# Java parameters for secure webservice access via HTTPs (e.g. AIF) +#wrapper.java.additional.10=-Djavax.net.ssl.keyStore= +#wrapper.java.additional.11=-Djavax.net.ssl.keyStoreType=JKS +#wrapper.java.additional.12=-Djavax.net.ssl.keyStorePassword= +#wrapper.java.additional.13=-Djavax.net.ssl.trustStore= +#wrapper.java.additional.14=-Djavax.net.ssl.trustStoreType=JKS +#wrapper.java.additional.15=-Djavax.net.ssl.trustStorePassword= + +# Optional Jetty SSL configuration +# example for default web server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc/jetty-ssl.xml,etc/jetty-https.xml +# example for application server +#wrapper.java.additional.20=-Djetty.etc.config.urls=etc/jetty.xml,etc/jetty-deployer.xml,etc-appserver/jetty-ssl.xml,etc-appserver/jetty-https.xml + +#wrapper.java.additional.21=-Djetty.https.host= +#wrapper.java.additional.22=-Djetty.https.port=443 +#wrapper.java.additional.23=-Djetty.logdir="%RS_HOME%/service/log/rsWebserviceImp20-jetty/" +#wrapper.java.additional.23.stripquotes=TRUE + +#Activate UTF-8 support for gss kerberos authentication. +wrapper.java.additional.26=-Dsun.security.krb5.msinterop.kstring=true + +# Initial Java Heap Size (in MB) +wrapper.java.initmemory=2048 + +# Maximum Java Heap Size (in MB) +wrapper.java.maxmemory=2048 + +# Service parameters: +# 1-19. parameter: OSGi and framework parameters +# 20-n. parameter: further start parameters for rsFRAME service (optional, e.g. configfile) + +wrapper.app.parameter.1=-osgiUserWorkDir +wrapper.app.parameter.2="%TEMP%" +wrapper.app.parameter.2.stripquotes=TRUE +wrapper.app.parameter.3=-osgiConfiguration +wrapper.app.parameter.4=imp20 +wrapper.app.parameter.5=-osgiRoot +wrapper.app.parameter.6="%SHARED_HOME%" +wrapper.app.parameter.6.stripquotes=TRUE +wrapper.app.parameter.7=-osgiFrameworkConfigDir +wrapper.app.parameter.8="%RS_HOME%/frameworkconfig" +wrapper.app.parameter.8.stripquotes=TRUE +wrapper.app.parameter.9=-startprofileset +wrapper.app.parameter.10=imp20 +wrapper.app.parameter.11=-serviceSpecificationBundle +wrapper.app.parameter.12=com.rola.rsframe.core +wrapper.app.parameter.13=-serviceSpecificationClass +wrapper.app.parameter.14=com.rola.server.imp.rest.IMPRESTServlet +#Verbose output for osgi launcher +#wrapper.app.parameter.19=-osgiVerbose +wrapper.app.parameter.20=/configfile="%RS_HOME%/config/rsWebserviceImp20.xml" +wrapper.app.parameter.20.stripquotes=TRUE + +#******************************************************************** +# Wrapper Logging Properties +#******************************************************************** +# Enables Debug output from the Wrapper. +# wrapper.debug=TRUE + +# Format of output for the console. (See docs for formats) +wrapper.console.format=PM + +# Log Level for console output. (See docs for log levels) +wrapper.console.loglevel=STATUS + +# Log file to use for wrapper output logging. +wrapper.logfile="{{ LOG_DIR }}/webservice/rsWebserviceImp20-servicewrapper.log" + +# Format of output for the log file. (See docs for formats) +wrapper.logfile.format=LPTM + +# Log Level for log file output. (See docs for log levels) +wrapper.logfile.loglevel={{ ams_LogLevel }} + +# Maximum size that the log file will be allowed to grow to before +# the log is rolled. Size is specified in bytes. The default value +# of 0, disables log rolling. May abbreviate with the 'k' (kb) or +# 'm' (mb) suffix. For example: 10m = 10 megabytes. +wrapper.logfile.maxsize=10m + +# Maximum number of rolled log files which will be allowed before old +# files are deleted. The default value of 0 implies no limit. +wrapper.logfile.maxfiles=30 + +# Log Level for sys/event log output. (See docs for log levels) +wrapper.syslog.loglevel=ERROR + +#******************************************************************** +# Wrapper General Properties +#******************************************************************** +# Set the working directory to the RS-Home directory +wrapper.working.dir=%RS_HOME% + +# Allow for the use of non-contiguous numbered properties +wrapper.ignore_sequence_gaps=TRUE + +# Do not start if the pid file already exists. +#wrapper.pidfile.strict=TRUE + +# Title to use when running as a console +wrapper.console.title=rsWebserviceImp20-Service + +#******************************************************************** +# Wrapper JVM Checks +#******************************************************************** +# Detect DeadLocked Threads in the JVM. (Requires Standard Edition) +wrapper.check.deadlock=TRUE +wrapper.check.deadlock.interval=60 +wrapper.check.deadlock.action=RESTART +wrapper.check.deadlock.output=FULL + +# Out Of Memory detection. +# Ignore -verbose:class output to avoid false positives. +wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError +wrapper.filter.action.1000=NONE +# (Simple match) +wrapper.filter.trigger.1001=java.lang.OutOfMemoryError +# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) +#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError +#wrapper.filter.allow_wildcards.1001=TRUE +wrapper.filter.action.1001=RESTART +wrapper.filter.message.1001=The JVM has run out of memory. + +#******************************************************************** +# Wrapper Email Notifications. (Requires Professional Edition) +#******************************************************************** +# Common Event Email settings. +#wrapper.event.default.email.debug=TRUE +#wrapper.event.default.email.smtp.host= +#wrapper.event.default.email.smtp.port=25 +#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification +#wrapper.event.default.email.sender= +#wrapper.event.default.email.recipient= + + +# Restart behaviour depending on exit code +# Service exited with bad result (exit code != 0) +wrapper.on_exit.default=RESTART + +# Service exited with good result (exit code = 0) +wrapper.on_exit.0=SHUTDOWN + +# Number of seconds to allow between the time that the JVM reports that it is stopped +# and the time that the JVM process actually terminates (e.g. termination of pending threads) +wrapper.jvm_exit.timeout=30 + +# Delay service restart for number of seconds +wrapper.restart.delay=15 + +#******************************************************************** +# Wrapper Windows Service Properties +#******************************************************************** +# WARNING - Do not modify any of these properties when an application +# using this configuration file has been installed as a service. +# Please uninstall the service before modifying this section. The +# service can then be reinstalled. + +# Name of the service +wrapper.name=rsWebserviceImp20 + +# Display name of the service +wrapper.displayname=rsWebserviceImp20 + +# Description of the service +wrapper.description=rsWebserviceImp20 + +# Service dependencies. Add dependencies as needed starting from 1 +wrapper.ntservice.dependency.1= + +# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START +wrapper.ntservice.starttype=AUTO_START + +# Allow the service to interact with the desktop (Windows NT/2000/XP only). +wrapper.ntservice.interactive=FALSE + +# Automatically restart the service periodically +#wrapper.timer.1.action=RESTART +#wrapper.timer.1.interval=hour=24 + +# Configure the log attached to event emails. +#wrapper.event.default.email.maillog=ATTACHMENT +#wrapper.event.default.email.maillog.lines=50 +#wrapper.event.default.email.maillog.format=LPTM +#wrapper.event.default.email.maillog.loglevel=INFO + +# Enable specific event emails. +#wrapper.event.wrapper_start.email=TRUE +#wrapper.event.jvm_prelaunch.email=TRUE +#wrapper.event.jvm_start.email=TRUE +#wrapper.event.jvm_started.email=TRUE +#wrapper.event.jvm_deadlock.email=TRUE +#wrapper.event.jvm_stop.email=TRUE +#wrapper.event.jvm_stopped.email=TRUE +#wrapper.event.jvm_restart.email=TRUE +#wrapper.event.jvm_failed_invocation.email=TRUE +#wrapper.event.jvm_max_failed_invocations.email=TRUE +#wrapper.event.jvm_kill.email=TRUE +#wrapper.event.jvm_killed.email=TRUE +#wrapper.event.jvm_unexpected_exit.email=TRUE +#wrapper.event.wrapper_stop.email=TRUE + +# Specify custom mail content +#wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n diff --git a/roles/ams_0008_8.0.8.0/templates/rsWebserviceImp20.xml.j2 b/roles/ams_0008_8.0.8.0/templates/rsWebserviceImp20.xml.j2 new file mode 100644 index 0000000..fc5af27 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/rsWebserviceImp20.xml.j2 @@ -0,0 +1,480 @@ + + + + +]> + + + + &key; + &pwd; + &common; + ILNJNEBDBDLFBDAHBHJKCJGJKCEOKPJOHJCNHMOBAPIOHMBGNNLGEBJMOPEKKOGFAFB + + /opt/tmp/ + + C:/Programme/Internet Explorer/IEXPLORE.EXE + + true + 1 + + + + + + + + + + + 5 + + 5 + + + + + 2 + + + -1 + + + + + + + + + + + + + + + + + + + + + + + + + + {{ ams_LogLevel }} + + true + + true + true + + true + + + true + + + + + + + + + '.'yyyy-MM-dd + + + %d{dd MMM yyyy HH:mm:ss} [%t] %-5p %x :APPLICATION_ID: - %m%n + + + + 10MB + + + + + + + 0 + + rsWebserviceImp20.log + + {{ LOG_DIR }}/webservice/ + + false + + + + + + + + + + + + + @ENV=RS_HOME@/doc/help + + + + + /opt/tmp/rsCasePrintTemp + + + + + + /opt/tmp/rsCasePrintTemp/PrinterConfigurations + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + A|B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + 30 + notepad + + + + 0 + true + + + 2880 + + + 2 + + + 3600000 + + + + + + + + + ? + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + IF Import + + IF: Datenübername aus Fremdsystem + 120 + true + false + /opt/tmp + 60.0 + + + + 80 + + + + + + + + + + + + + + + + + 90000 + 60000 + + true + + + + + true + + + + + + + + + C:\Users\bmeise\AppData\Local\Temp\\export + rssuper + + + + + + + + + -1 + + + + + + + + IMP2_0 + + + + + + + true + + + false + + false + + false + + + false + true + + + + + false + + + + + + true + 2000 + + + + + + + + bka.bund.de/abs + + 1000 + + 5000 + + 3 + + + + 2880 + + + 2 + + + + + + false + + NORMAL + + + STANDARD + + MON1 + + false + + false + + 10888 + + monadmin + + + + 127.0.0.1|0:0:0:0:0:0:0:1 + + -1 + + -1 + + false + + false + + false + + false + + + + + + false + + + + + + -1 + + + + 1000 + + + + + true + + + + + true + + config/module/dictionary/ + + config/module/dictionary/ + + /opt/tmp/dictionary/ + + diff --git a/roles/ams_0008_8.0.8.0/templates/tech.database.yaml.j2 b/roles/ams_0008_8.0.8.0/templates/tech.database.yaml.j2 new file mode 100644 index 0000000..77fdf3c --- /dev/null +++ b/roles/ams_0008_8.0.8.0/templates/tech.database.yaml.j2 @@ -0,0 +1,41 @@ +## Scope +bundle.name: com.rola.radium.rsframe + +database: + + rsframe: + + ## Database connection options + db-config: + ## jdbc connection string for database connection + connect-string: jdbc:oracle:thin:@//{{ ams_DatabaseIPAdress }}:{{ ams_DatabasePort }}/{{ ams_DatabaseServiceName }} + ## oracle logon username, DO NOT MODIFY + username: ROLA_SERVERUSER + ## oracle logon password + password: ASSERVATE_TOOL + ## algorithm used for jdbc checksum calculation + #checksum-type: MD5 + ## level used for jdbc checksum calculation + #checksum-level: Accepted + ## algorithm used for jdbc encryption + #encryption-type: RC4_128 + ## level used for jdbc encryption + #encryption-level: Accepted + + # Connection pool preferences. + pool: + ## Minimum size of UCP pool. + #min-pool-size: 0 + ## Maximum size of UCP pool. + #max-pool-size: 500 + + ## Database SQL related tracing options + tracing: + ## Log all queries (to log-category: "rola.database.jdbc.query" with level "DEBUG") + #enable-log-all-queries: false + ## Log params for query- and slow-query-log entires + #enable-log-params: false + ## Log all slow queries (to log-category: "rola.database.jdbc.slowquery" with level "WARN") + #enable-log-slow-queries: true + ## Slow query execution time threshold in millis + #slow-query-threshold-millis: 30000 \ No newline at end of file diff --git a/roles/ams_0008_8.0.8.0/tests/inventory b/roles/ams_0008_8.0.8.0/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/ams_0008_8.0.8.0/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/ams_0008_8.0.8.0/tests/test.yml b/roles/ams_0008_8.0.8.0/tests/test.yml new file mode 100644 index 0000000..af33406 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - default_role \ No newline at end of file diff --git a/roles/ams_0008_8.0.8.0/vars/main.yml b/roles/ams_0008_8.0.8.0/vars/main.yml new file mode 100644 index 0000000..3bdb116 --- /dev/null +++ b/roles/ams_0008_8.0.8.0/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for default_role \ No newline at end of file diff --git a/roles/base_installation/.travis.yml b/roles/base_installation/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/base_installation/.travis.yml @@ -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/ \ No newline at end of file diff --git a/roles/base_installation/README.md b/roles/base_installation/README.md new file mode 100644 index 0000000..fee42d8 --- /dev/null +++ b/roles/base_installation/README.md @@ -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 diff --git a/roles/base_installation/defaults/main.yml b/roles/base_installation/defaults/main.yml new file mode 100644 index 0000000..4db8f11 --- /dev/null +++ b/roles/base_installation/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for default_role \ No newline at end of file diff --git a/roles/base_installation/files/bash_profile b/roles/base_installation/files/bash_profile new file mode 100644 index 0000000..6eeab73 --- /dev/null +++ b/roles/base_installation/files/bash_profile @@ -0,0 +1,29 @@ +# .bash_profile + +# Get the aliases and functions +if [ -f ~/.bashrc ]; then + . ~/.bashrc +fi + +# User specific environment and startup programs +export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 +if [ "$TERM" = "" ] +then + eval ` tset -s -Q -m ':?hp' ` +else + eval ` tset -s -Q ` +fi + +stty erase "^H" kill "^U" intr "^C" eof "^D" +stty hupcl ixon ixoff + +PATH=$PATH:$HOME/.local/bin:$HOME/bin +export PATH +set -u +trap "echo 'logout'" 0 +stty erase ^? + +# Set up the shell variables: +EDITOR=vi +export EDITOR +/home/jetty/psc.sh diff --git a/roles/base_installation/files/psc.sh b/roles/base_installation/files/psc.sh new file mode 100755 index 0000000..e84549c --- /dev/null +++ b/roles/base_installation/files/psc.sh @@ -0,0 +1,44 @@ +#!/usr/bin/bash +AMSHOME="/opt/rola/ams" + +if [ ! -f $AMSHOME/linux/Appserver/service/rsWebserviceAppserver.status ] +then +APPS="DOWN" +else +APPS=$(cat $AMSHOME/linux/Appserver/service/rsWebserviceAppserver.status) +fi +#Check for Webservice +if [ ! -f $AMSHOME/linux/Services/service/rsWebserviceImp20.status ] +then +WEBS="DOWN" +else +WEBS=$(cat $AMSHOME/linux/Services/service/rsWebserviceImp20.status) +fi +#Check for BV-Service +if [ ! -f $AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.status ] +then +BVS="DOWN" +else +BVS=$(cat $AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.status) +fi +#Anzeige + +printf "\n \e[33m\t\t\tAppserver und Services\e[0m \n\n\n" +if [[ $APPS = "STARTED" ]] +then +printf "\t\tAppserver\t\e[32m%s\e[0m \n\n\n" "$APPS" +else +printf "\t\tAppserver\t\e[31m%s\e[0m \n\n\n" "$APPS" +fi +if [[ $WEBS = "STARTED" ]] +then +printf "\t\tWebservice\t\e[32m%s\e[0m \n\n\n" "$WEBS" +else +printf "\t\tWebservice\t\e[31m%s\e[0m \n\n\n" "$WEBS" +fi +if [[ $BVS = "STARTED" ]] +then +printf "\t\tBV-Service\t\e[32m%s\e[0m \n\n\n" "$BVS" +else +printf "\t\tBV-Service\t\e[31m%s\e[0m \n\n\n" "$BVS" +fi diff --git a/roles/base_installation/files/startALL b/roles/base_installation/files/startALL new file mode 100755 index 0000000..010b38e --- /dev/null +++ b/roles/base_installation/files/startALL @@ -0,0 +1,25 @@ +#!/usr/bin/bash +AMSHOME="/opt/rola/ams" + +if [ -f $AMSHOME/linux/Appserver/service/rsWebserviceAppserver.status ] +then +echo "Appserver is already running!" +else +/opt/rola/ams/linux/Appserver/service/rsWebserviceAppserver.sh start; +fi +#Check for Webservice +if [ -f $AMSHOME/linux/Services/service/rsWebserviceImp20.status ] +then +echo "Webservice is already running!" +else +/opt/rola/ams/linux/Services/service/rsWebserviceImp20.sh start; +fi +#Check for BV-Service +if [ -f $AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.status ] +then +echo "BV-Service is already running!" +else +/opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.sh start; +fi + +./psc.sh diff --git a/roles/base_installation/files/stopALL b/roles/base_installation/files/stopALL new file mode 100755 index 0000000..b82dc8f --- /dev/null +++ b/roles/base_installation/files/stopALL @@ -0,0 +1,25 @@ +#!/usr/bin/bash +AMSHOME="/opt/rola/ams" + +if [ ! -f $AMSHOME/linux/Appserver/service/rsWebserviceAppserver.status ] +then +echo "Appserver not running!" +else +$AMSHOME/linux/Appserver/service/rsWebserviceAppserver.sh stop; +fi +#Check for Webservice +if [ ! -f $AMSHOME/linux/Services/service/rsWebserviceImp20.status ] +then +echo "Webservice not running!" +else +$AMSHOME/linux/Services/service/rsWebserviceImp20.sh stop; +fi +#Check for BV-Service +if [ ! -f $AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.status ] +then +echo "BV-Service not running!" +else +$AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.sh stop; +fi + +./psc.sh diff --git a/roles/base_installation/handlers/main.yml b/roles/base_installation/handlers/main.yml new file mode 100644 index 0000000..cb71395 --- /dev/null +++ b/roles/base_installation/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for default_role \ No newline at end of file diff --git a/roles/base_installation/meta/main.yml b/roles/base_installation/meta/main.yml new file mode 100644 index 0000000..5d50bf4 --- /dev/null +++ b/roles/base_installation/meta/main.yml @@ -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. \ No newline at end of file diff --git a/roles/base_installation/tasks/main.yml b/roles/base_installation/tasks/main.yml new file mode 100644 index 0000000..b75848b --- /dev/null +++ b/roles/base_installation/tasks/main.yml @@ -0,0 +1,75 @@ +--- + - name: Copy file bash_profile with owner and permissions bash_profile + copy: + src: ./files/bash_profile + dest: /home/jetty/.bash_profile + owner: jetty + group: dba + mode: '0644' + - name: Create a directory /opt/tmp if it does not exist + become: yes + become_user: root + file: + path: /opt/tmp + state: directory + mode: '0755' + owner: jetty + group: dba + - name: Create a directory "{{ LOG_DIR }}/appserver" if it does not exist + become: yes + become_user: root + file: + path: "{{ LOG_DIR }}/appserver" + state: directory + mode: '0755' + owner: jetty + group: dba + - name: Create a directory "{{ LOG_DIR }}/bvservice" if it does not exist + become: yes + become_user: root + file: + path: "{{ LOG_DIR }}/bvservice" + state: directory + mode: '0755' + owner: jetty + group: dba + - name: Create a directory "{{ LOG_DIR }}/webservice" if it does not exist + become: yes + become_user: root + file: + path: "{{ LOG_DIR }}/webservice" + state: directory + mode: '0755' + owner: jetty + group: dba + - name: Create a directory "{{ ACCESS_LOG }}" if it does not exist + become: yes + become_user: root + file: + path: "{{ ACCESS_LOG }}" + state: directory + mode: '0755' + owner: jetty + group: dba + - name: Copy file psc.sh with owner and permissions + copy: + src: ./files/psc.sh + dest: /home/jetty/psc.sh + owner: jetty + group: dba + mode: '0755' + - name: Copy file startALL with owner and permissions + copy: + src: ./files/startALL + dest: /home/jetty/startALL + owner: jetty + group: dba + mode: '0755' + - name: Copy file stopALL with owner and permissions + copy: + src: ./files/stopALL + dest: /home/jetty/stopALL + owner: jetty + group: dba + mode: '0755' + diff --git a/roles/base_installation/tests/inventory b/roles/base_installation/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/base_installation/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/base_installation/tests/test.yml b/roles/base_installation/tests/test.yml new file mode 100644 index 0000000..af33406 --- /dev/null +++ b/roles/base_installation/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - default_role \ No newline at end of file diff --git a/roles/base_installation/vars/main.yml b/roles/base_installation/vars/main.yml new file mode 100644 index 0000000..3bdb116 --- /dev/null +++ b/roles/base_installation/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for default_role \ No newline at end of file diff --git a/roles/default_role/.travis.yml b/roles/default_role/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/default_role/.travis.yml @@ -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/ \ No newline at end of file diff --git a/roles/default_role/README.md b/roles/default_role/README.md new file mode 100644 index 0000000..225dd44 --- /dev/null +++ b/roles/default_role/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +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: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/roles/default_role/defaults/main.yml b/roles/default_role/defaults/main.yml new file mode 100644 index 0000000..4db8f11 --- /dev/null +++ b/roles/default_role/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for default_role \ No newline at end of file diff --git a/roles/default_role/handlers/main.yml b/roles/default_role/handlers/main.yml new file mode 100644 index 0000000..cb71395 --- /dev/null +++ b/roles/default_role/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for default_role \ No newline at end of file diff --git a/roles/default_role/meta/main.yml b/roles/default_role/meta/main.yml new file mode 100644 index 0000000..5d50bf4 --- /dev/null +++ b/roles/default_role/meta/main.yml @@ -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. \ No newline at end of file diff --git a/roles/default_role/tasks/main.yml b/roles/default_role/tasks/main.yml new file mode 100644 index 0000000..57d2c96 --- /dev/null +++ b/roles/default_role/tasks/main.yml @@ -0,0 +1,2 @@ +--- +# tasks file for default_role \ No newline at end of file diff --git a/roles/default_role/tests/inventory b/roles/default_role/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/default_role/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/default_role/tests/test.yml b/roles/default_role/tests/test.yml new file mode 100644 index 0000000..af33406 --- /dev/null +++ b/roles/default_role/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - default_role \ No newline at end of file diff --git a/roles/default_role/vars/main.yml b/roles/default_role/vars/main.yml new file mode 100644 index 0000000..3bdb116 --- /dev/null +++ b/roles/default_role/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for default_role \ No newline at end of file diff --git a/roles/git/.travis.yml b/roles/git/.travis.yml new file mode 100644 index 0000000..36bbf62 --- /dev/null +++ b/roles/git/.travis.yml @@ -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/ \ No newline at end of file diff --git a/roles/git/README.md b/roles/git/README.md new file mode 100644 index 0000000..efebd1c --- /dev/null +++ b/roles/git/README.md @@ -0,0 +1,45 @@ +Role Name +========= + +1. Installiert git auf dem System. +2. Kopiert .gitignore nach /opt/rola +3. Initiiert ein Git-Repository + +Aber: git add . + git commit fehlt noch!!!!!!!!!!!!!!!!!!!!!!!! + + +Requirements +------------ + +RHEL 7, x86-64 + +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: all + roles: + - git + +License +------- + +BSD + +Author Information +------------------ + +Marcus Gillitzer Version 0.1 diff --git a/roles/git/defaults/main.yml b/roles/git/defaults/main.yml new file mode 100644 index 0000000..4db8f11 --- /dev/null +++ b/roles/git/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for default_role \ No newline at end of file diff --git a/roles/git/files/.gitignore b/roles/git/files/.gitignore new file mode 100755 index 0000000..7daeb51 --- /dev/null +++ b/roles/git/files/.gitignore @@ -0,0 +1,12 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!*.xml +!*.conf +# etc... + +# ...even if they are in subdirectories +!*/ + diff --git a/roles/git/handlers/main.yml b/roles/git/handlers/main.yml new file mode 100644 index 0000000..cb71395 --- /dev/null +++ b/roles/git/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for default_role \ No newline at end of file diff --git a/roles/git/meta/main.yml b/roles/git/meta/main.yml new file mode 100644 index 0000000..5d50bf4 --- /dev/null +++ b/roles/git/meta/main.yml @@ -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. \ No newline at end of file diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml new file mode 100644 index 0000000..b61b476 --- /dev/null +++ b/roles/git/tasks/main.yml @@ -0,0 +1,45 @@ +--- + - name: Install git via yum in latest version + become: yes + become_user: root + yum: + name: git.x86_64 + state: latest + disable_gpg_check: true + + - name: Copy file .gitignore with owner and permissions + copy: + src: ./files/.gitignore + dest: /opt/rola/.gitignore + owner: jetty + group: dba + mode: '0644' + + - name: Initialisiere leeres Repo innerhalb von /opt/rola + command: git init /opt/rola/ + +# Mehr habe ich nicht gemacht, +# git add . +# git commit +# habe ich händisch ausgeführt + + + + + + + + + + + + + + + + + + + + + diff --git a/roles/git/tests/inventory b/roles/git/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/roles/git/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/roles/git/tests/test.yml b/roles/git/tests/test.yml new file mode 100644 index 0000000..af33406 --- /dev/null +++ b/roles/git/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - default_role \ No newline at end of file diff --git a/roles/git/vars/main.yml b/roles/git/vars/main.yml new file mode 100644 index 0000000..3bdb116 --- /dev/null +++ b/roles/git/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for default_role \ No newline at end of file diff --git a/site.retry b/site.retry new file mode 100644 index 0000000..9f08615 --- /dev/null +++ b/site.retry @@ -0,0 +1,2 @@ +80.155.207.111 +80.155.207.161 diff --git a/site.yml b/site.yml new file mode 100644 index 0000000..8c4e945 --- /dev/null +++ b/site.yml @@ -0,0 +1,53 @@ +--- +#Installationsscript + + +########################################################## +######### Entwicklungsumgebung ############## +########################################################## +- name: Installation für Entwicklungsumgebung + hosts: development + become_user: jetty + become: yes + + roles: + - base_installation + - git + ##veraltet + ##- ams_0006_8.0.5.0 + - ams_0008_8.0.8.0 + + + +########################################################## +######### Produktionsumgebung ############## +########################################################## +- name: Installation für Produktionsumgebung + hosts: production + become_user: jetty + become: yes + + roles: + - base_installation + - git + ##veraltet + ##- ams_0006_8.0.5.0 + - ams_0008_8.0.8.0 + + + + +########################################################## +######### Schulungsumgebung ############## +########################################################## +- name: Installation für Schulungsumgebung + hosts: teaching + become_user: jetty + become: yes + + roles: + - base_installation + - git + ##veraltet + ##- ams_0006_8.0.5.0 + - ams_0008_8.0.8.0 diff --git a/teaching/hosts b/teaching/hosts new file mode 100644 index 0000000..7aade9f --- /dev/null +++ b/teaching/hosts @@ -0,0 +1,17 @@ +# This is the default ansible 'hosts' file. +# +# It should live in /etc/ansible/hosts +# +# - Comments begin with the '#' character +# - Blank lines are ignored +# - Groups of hosts are delimited by [header] elements +# - You can enter hostnames or ip addresses +# - A hostname/ip can be a member of multiple groups + +# Ex 1: Ungrouped hosts, specify before any group headers. + +[teaching] +80.155.205.161 + + + diff --git a/webservers.yml b/webservers.yml new file mode 100644 index 0000000..e69de29