-
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.
Switch from git submodules to Ansible Galaxy for role management
- Loading branch information
Showing
31 changed files
with
190 additions
and
85 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,25 @@ | ||
--- | ||
skip_list: | ||
- 'meta-no-info' | ||
- var-naming[no-role-prefix] | ||
|
||
warn_list: | ||
- package-latest | ||
- unnamed-task | ||
|
||
exclude_paths: | ||
- group_vars/secrets.* | ||
- roles/dehydrated | ||
- roles/mailhog | ||
- roles/postgresql | ||
- roles/mail | ||
- roles/mariadb | ||
- roles/nginx | ||
- roles/elasticsearch | ||
- roles/oauth2_proxy | ||
- roles/php | ||
- roles/redis | ||
- roles/supervisord | ||
- roles/system | ||
- roles/apache | ||
- roles/solr |
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 |
---|---|---|
@@ -1,5 +1,21 @@ | ||
#!/bin/bash | ||
export PATH="${PWD}/venv/bin:${PATH}" | ||
export COT_IMAGE="fnkr/cot:ansible-$(awk -F '==' '{ if ($1 == "ansible") print $2 }' requirements.txt)" | ||
export COT_NET=host | ||
export COT_ENV_ANSIBLE_FORCE_COLOR=true | ||
|
||
if [ ! -f venv/bin/activate ] | ||
then | ||
echo "Creating virtual environment" | ||
python3 -m venv venv >/dev/null | ||
fi | ||
|
||
if [ -f venv/bin/activate ] | ||
then | ||
echo "Activating virtual environment" | ||
. venv/bin/activate | ||
fi | ||
|
||
if [ -f venv/bin/pip3 ] | ||
then | ||
echo "Installing requirements" | ||
venv/bin/pip3 install --upgrade pip >/dev/null 2>&1 | ||
venv/bin/pip3 install -r requirements.txt >/dev/null 2>&1 | ||
ansible-galaxy install -r requirements.yml >/dev/null 2>&1 | ||
fi |
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 |
---|---|---|
@@ -1,42 +0,0 @@ | ||
[submodule "roles/dehydrated"] | ||
path = roles/dehydrated | ||
url = https://github.com/punktDe/ansible-proserver-dehydrated.git | ||
[submodule "roles/mariadb"] | ||
path = roles/mariadb | ||
url = https://github.com/punktDe/ansible-proserver-mariadb.git | ||
[submodule "roles/elasticsearch"] | ||
path = roles/elasticsearch | ||
url = https://github.com/punktDe/ansible-proserver-elasticsearch.git | ||
[submodule "roles/mail"] | ||
path = roles/mail | ||
url = https://github.com/punktDe/ansible-proserver-mail.git | ||
[submodule "roles/redis"] | ||
path = roles/redis | ||
url = https://github.com/punktDe/ansible-proserver-redis.git | ||
[submodule "roles/nginx"] | ||
path = roles/nginx | ||
url = https://github.com/punktDe/ansible-proserver-nginx.git | ||
[submodule "roles/mailhog"] | ||
path = roles/mailhog | ||
url = https://github.com/punktDe/ansible-proserver-mailhog.git | ||
[submodule "roles/php"] | ||
path = roles/php | ||
url = https://github.com/punktDe/ansible-proserver-php.git | ||
[submodule "roles/oauth2_proxy"] | ||
path = roles/oauth2_proxy | ||
url = https://github.com/punktDe/ansible-proserver-oauth2-proxy.git | ||
[submodule "roles/supervisord"] | ||
path = roles/supervisord | ||
url = https://github.com/punktDe/ansible-proserver-supervisord.git | ||
[submodule "roles/postgresql"] | ||
path = roles/postgresql | ||
url = https://github.com/punktDe/ansible-proserver-postgresql.git | ||
[submodule "roles/apache"] | ||
path = roles/apache | ||
url = https://github.com/punktDe/ansible-proserver-apache | ||
[submodule "roles/system"] | ||
path = roles/system | ||
url = https://github.com/punktDe/ansible-proserver-system | ||
[submodule "roles/solr"] | ||
path = roles/solr | ||
url = https://github.com/punktDe/ansible-proserver-solr | ||
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,7 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/ansible/ansible-lint.git | ||
rev: v6.22.1 | ||
hooks: | ||
- id: ansible-lint | ||
files: \.(yaml|yml)$ |
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,15 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
line-length: disable | ||
truthy: | ||
allowed-values: ['true', 'false', 'yes', 'no'] | ||
comments: | ||
min-spaces-from-content: 1 | ||
braces: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 | ||
|
||
ignore: | | ||
.cache |
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
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
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
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
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,46 @@ | ||
--- | ||
collections: | ||
- name: https://github.com/ansible-collections/community.general | ||
type: git | ||
- name: https://github.com/ansible-collections/community.crypto | ||
type: git | ||
- name: https://github.com/ansible-collections/ansible.posix | ||
type: git | ||
|
||
roles: | ||
- name: apache | ||
src: https://github.com/punktDe/ansible-proserver-apache | ||
version: "1.0" | ||
- name: dehydrated | ||
src: https://github.com/punktDe/ansible-proserver-dehydrated | ||
version: "1.0.1" | ||
- name: elasticsearch | ||
src: https://github.com/punktDe/ansible-proserver-elasticsearch | ||
- name: mail | ||
src: https://github.com/punktDe/ansible-proserver-mail | ||
- name: mailhog | ||
src: https://github.com/punktDe/ansible-proserver-mailhog | ||
- name: mariadb | ||
src: https://github.com/punktDe/ansible-proserver-mariadb | ||
- name: nginx | ||
src: https://github.com/punktDe/ansible-proserver-nginx | ||
version: "1.1.0" | ||
- name: oauth2_proxy | ||
src: https://github.com/punktDe/ansible-proserver-oauth2-proxy | ||
version: "1.0.1" | ||
- name: php | ||
src: https://github.com/punktDe/ansible-proserver-php | ||
version: "1.0.1" | ||
- name: postgresql | ||
src: https://github.com/punktDe/ansible-proserver-postgresql | ||
version: "1.0.1" | ||
- name: redis | ||
src: https://github.com/punktDe/ansible-proserver-redis | ||
- name: solr | ||
src: https://github.com/punktDe/ansible-proserver-solr | ||
version: "1.1.0" | ||
- name: supervisord | ||
src: https://github.com/punktDe/ansible-proserver-supervisord | ||
- name: system | ||
src: https://github.com/punktDe/ansible-proserver-system | ||
version: "1.5.0" |
Submodule apache
deleted from
ccf026
Submodule dehydrated
deleted from
831941
Submodule elasticsearch
deleted from
456fe1
Submodule mail
deleted from
ee9ed4
Submodule mailhog
deleted from
3850f2
Submodule mariadb
deleted from
7adb23
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
Submodule nginx
deleted from
119776
Submodule oauth2_proxy
deleted from
955fb1
Submodule php
deleted from
0bdab7
Submodule postgresql
deleted from
44f0d8
Submodule redis
deleted from
e78762
Submodule solr
deleted from
d15f4e
Oops, something went wrong.