This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - role_dir: the directory where the role exists (default = $PWD) | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) |
This file contains hidden or 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
--- | |
- name: Install OracleJava | |
hosts: "localhost" | |
vars: | |
arch: '' | |
orajdk: | |
type: 'jdk' | |
version: 8 | |
upd: '' | |
dlfolder: /tmp |
This file contains hidden or 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
--- | |
- name: apache | |
hosts: "localhost" | |
tasks: | |
- name: send a message to chat in playbook | |
telegram: | |
token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX' | |
chat_id: '000000' | |
msg: "Ansible task finished" | |
environment: |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: ingress-nginx-controller | |
data: | |
http-snippet: "proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=nexus:100m inactive=30d max_size=2g use_temp_path=off;" | |
... | |
--- |
This file contains hidden or 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
--- | |
# Example manual devops image prepare | |
# export CI_REGISTRY_USER=alexgluck CI_JOB_TOKEN=<INSERT Personal Access Token with r\w registry permission> | |
stages: | |
- "prepare environment" | |
- "lint" | |
- "get tokens" | |
- "filter token" | |
- "create token" |