-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Berendt <[email protected]>
- Loading branch information
Showing
8 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
ignored: | ||
- DL3008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[defaults] | ||
action_plugins = /ansible/action_plugins | ||
deprecation_warnings = false | ||
forks = 50 | ||
host_key_checking = false | ||
log_path = /ansible/logs/ansible.log | ||
private_key_file = /ansible/secrets/id_rsa | ||
remote_tmp = /tmp | ||
retry_files_enabled = false | ||
roles_path = /ansible/roles:/ansible/galaxy | ||
|
||
# fact caching | ||
fact_caching = jsonfile | ||
fact_caching_connection = /ansible/cache | ||
gathering = smart | ||
|
||
[ssh_connection] | ||
pipelining = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export ARA_DEFAULT_LABELS=osism-kubernetes | ||
export ARA_IGNORED_FACTS=ansible_env,ansible_all_ipv4_addresses | ||
export ARA_IGNORED_FILES=.ansible/tmp,vault.yaml,vault.yml | ||
export ARA_IGNORED_ARGUMENTS=vault_password_files | ||
export ARA_LOCALHOST_AS_HOSTNAME=true | ||
export ARA_LOCALHOST_AS_HOSTNAME_FORMAT=fqdn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import os | ||
|
||
import jinja2 | ||
import yaml | ||
|
||
# get environment parameters | ||
|
||
VERSION = os.environ.get("VERSION", "latest") | ||
|
||
# load versions files from release repository | ||
|
||
with open("/release/%s/base.yml" % VERSION, "rb") as fp: | ||
versions = yaml.load(fp, Loader=yaml.FullLoader) | ||
|
||
# prepare jinja2 environment | ||
|
||
loader = jinja2.FileSystemLoader(searchpath="/src/templates/") | ||
environment = jinja2.Environment(loader=loader) | ||
|
||
# render requirements.txt | ||
|
||
template = environment.get_template("requirements.txt.j2") | ||
result = template.render( | ||
{ | ||
"ansible_version": versions["ansible_version"], | ||
"ansible_core_version": versions["ansible_core_version"], | ||
"osism_projects": versions["osism_projects"], | ||
"version": VERSION, | ||
} | ||
) | ||
with open("/requirements.txt", "w+") as fp: | ||
fp.write(result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Jinja2==3.1.4 | ||
PyYAML==6.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
_____ ___ ____ ___ __ __ | ||
( _ )/ __)(_ _)/ __)( \/ ) | ||
)(_)( \__ \ _)(_ \__ \ ) ( | ||
(_____)(___/(____)(___/(_/\/\_) | ||
|
||
Ansible version: ANSIBLE_VERSION | ||
Container version: {{ manager_version }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ansible-pylibssh==1.1.0 | ||
{% if ansible_core_version.startswith(('<', '>', '=')) %} | ||
ansible-core{{ ansible_core_version }} | ||
{% else %} | ||
ansible-core=={{ ansible_core_version }} | ||
{% endif %} | ||
ara=={{ osism_projects['ara'] }} | ||
osism=={{ osism_projects['osism'] }} |