Skip to content
Snippets Groups Projects
Commit 1dedceff authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: apply schema restrictions

parent 741635df
No related branches found
No related tags found
1 merge request!1Feat GitLab-CI
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# and not relative to the CWD of execution. CLI arguments passed to the --exclude # and not relative to the CWD of execution. CLI arguments passed to the --exclude
# option will be parsed relative to the CWD of execution. # option will be parsed relative to the CWD of execution.
exclude_paths: exclude_paths:
- .cache/ # implicit unless exclude_paths is defined in config - .cache/ # implicit unless exclude_paths is defined in config
- .git/ - .git/
- .githooks/ - .githooks/
- backups/ - backups/
...@@ -15,24 +15,19 @@ exclude_paths: ...@@ -15,24 +15,19 @@ exclude_paths:
# verbosity: 1 # verbosity: 1
# Mock modules or roles in order to pass ansible-playbook --syntax-check # Mock modules or roles in order to pass ansible-playbook --syntax-check
#mock_modules: # mock_modules:
# - zuul_return # - zuul_return
# # note the foo.bar is invalid as being neither a module or a collection # # note the foo.bar is invalid as being neither a module or a collection
# - fake_namespace.fake_collection.fake_module # - fake_namespace.fake_collection.fake_module
# - fake_namespace.fake_collection.fake_module.fake_submodule # - fake_namespace.fake_collection.fake_module.fake_submodule
#mock_roles: # mock_roles:
# - mocked_role # - mocked_role
# - author.role_name # old standalone galaxy role # - author.role_name # old standalone galaxy role
# - fake_namespace.fake_collection.fake_role # role within a collection # - fake_namespace.fake_collection.fake_role # role within a collection
# Enable checking of loop variable prefixes in roles # Enable checking of loop variable prefixes in roles
loop_var_prefix: "{role}_" loop_var_prefix: "{role}_"
# Enforce variable names to follow pattern below, in addition to Ansible own
# requirements, like avoiding python identifiers. To disable add `var-naming`
# to skip_list.
var_naming_pattern: "^[a-z_][a-z0-9_]*$"
use_default_rules: true use_default_rules: true
# Load custom rules from this specific folder # Load custom rules from this specific folder
# rulesdir: # rulesdir:
...@@ -46,9 +41,9 @@ skip_list: ...@@ -46,9 +41,9 @@ skip_list:
# Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is # Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is
# mentioned in the enable_list: # mentioned in the enable_list:
enable_list: enable_list:
- empty-string-compare # opt-in - empty-string-compare # opt-in
- no-log-password # opt-in - no-log-password # opt-in
- no-same-owner # opt-in - no-same-owner # opt-in
# add yaml here if you want to avoid ignoring yaml checks when yamllint # add yaml here if you want to avoid ignoring yaml checks when yamllint
# library is missing. Normally its absence just skips using that rule. # library is missing. Normally its absence just skips using that rule.
- yaml - yaml
...@@ -60,19 +55,19 @@ enable_list: ...@@ -60,19 +55,19 @@ enable_list:
warn_list: warn_list:
- skip_this_tag - skip_this_tag
- git-latest - git-latest
- experimental # experimental is included in the implicit list - experimental # experimental is included in the implicit list
# - role-name # - role-name
# Offline mode disables installation of requirements.yml # Offline mode disables installation of requirements.yml
offline: false offline: false
# Define required Ansible's variables to satisfy syntax check # Define required Ansible's variables to satisfy syntax check
#extra_vars: # extra_vars:
# foo: bar # foo: bar
# multiline_string_variable: | # multiline_string_variable: |
# line1 # line1
# line2 # line2
# complex_variable: ":{;\t$()" # complex_variable: ":{;\t$()"
# Uncomment to enforce action validation with tasks, usually is not # Uncomment to enforce action validation with tasks, usually is not
# needed as Ansible syntax check also covers it. # needed as Ansible syntax check also covers it.
......
--- ---
galaxy_info: galaxy_info:
name: "ansible_lza_install_common"
namespace: "slub"
author: Jörg Sachse author: Jörg Sachse
description: role to deploy a base install of Debian for use in the SLUBarchiv digital preservation repository
company: SLUB Dresden company: SLUB Dresden
# 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 description: role to deploy a base install of Debian for use in the SLUBarchiv digital preservation repository
# (default) - MIT - GPLv2 - GPLv3 - Apache - CC-BY 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.
# issue_tracker_url: "https://example.com/"
# 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
license: public domain license: public domain
min_ansible_version: 2.5 # Some suggested licenses: - BSD
# 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 # (default) - MIT - GPLv2 - GPLv3 - Apache - CC-BY
# 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 min_ansible_version: "2.5"
# notifications for this branch will be accepted. Otherwise, in all cases, the repo's default branch (usually master) will be used. github_branch: # 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:
namespace: "slub"
# 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 # 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 and versions (or releases), visit: https://galaxy.ansible.com/api/v1/platforms/
# #
...@@ -21,16 +27,10 @@ galaxy_info: ...@@ -21,16 +27,10 @@ galaxy_info:
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- 10 - "buster"
- 11 - "bullseye"
- name: RedHat - name: EL
versions: versions:
- 7 - "7"
- 8 - "8"
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: [] dependencies: []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment