Commit facfef7c authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

initial version

parents
Copyright 2021, Technische Universität Dresden
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Description
This role installs, enables and configures the PHP module `<module>`.
## Requirements
### Variables
## Processes
None
## License
BSD-3-Clause
## Contributors
- firstname lastname <e-mail-address>
---
php_module_config_file: "module.ini.j2"
php_module_priority: <module prio>
---
# handlers file for project-template
---
galaxy_info:
author: Martin Pietsch <martin.pietsch@tu-dresden.de>
description: This role installs, enables and configures
the PHP module `<module>`.
company: Technische Universität Dresden
role_name: package_lang_php_module_<module>
namespace: sdm
license: BSD-3-Clause
min_ansible_version: 2.10
platforms:
- name: Linux/UNIX
versions:
- all
galaxy_tags: []
dependencies: []
---
- name: Converge
hosts: all
vars:
system_config_directory: "/etc"
tasks:
- name: "Install PHP intl"
sdm.oor.call_role:
name: "package.lang.php.module.intl"
- name: "Configure PHP intl"
sdm.oor.call_role:
name: "package.lang.php.module.intl"
tasks: "configure"
---
dependency:
name: galaxy
enabled: false
driver:
name: podman
platforms:
- name: package_lang_php_module_intl_debian
registry:
url: gitlab.mn.tu-dresden.de:8000
image: sdmgroup/containers/debian10:latest
command: /lib/systemd/systemd
pre_build_image: false
provisioner:
name: ansible
config_options:
defaults:
callback_whitelist: sdm.oor.sdmoor
stdout_callback: sdm.oor.sdmdefault
strategy: sdm.oor.sdmlinear
vars_plugins_enabled: sdm.common.sdm_host_group_vars
deprecation_warnings: false
jinja2_extensions: jinja2.ext.do
playbooks:
create: create.yml
converge: converge.yml
destroy: destroy.yml
prepare: prepare.yml
verifier:
name: ansible
lint: |
set -e
yamllint .
ansible-lint .
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
assert:
that: true
extension=intl
[intl]
intl.default_locale = {{ php_mod_intl_default_locale }}
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
intl.error_level = {{ php_mod_intl_error_level }}
intl.use_exceptions = {{ php_mod_intl_use_exceptions | string }}
---
- hosts: localhost
remote_user: root
roles:
- project-template
---
package_packages: ["php7.3-<module>"]
---
php_module_name: "<module name>"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment