debobs-init

This commit is contained in:
Arjan Adriaanse 2021-09-18 13:28:58 +02:00
commit 2d791baf56
Signed by: arjan
GPG Key ID: BEA76A8D4DE08DF4
6 changed files with 153 additions and 0 deletions

21
.debops.cfg Normal file
View File

@ -0,0 +1,21 @@
# -*- conf -*-
[paths]
;data-home: /opt/debops
[ansible defaults]
display_skipped_hosts = False
retry_files_enabled = False
stdout_callback = yaml
;callback_plugins = /my/plugins/callback
;roles_path = /my/roles
[ansible inventory]
host_pattern_mismatch = ignore
[ansible paramiko]
;record_host_keys=True
[ansible ssh_connection]
;ssh_args = -o ControlMaster=auto -o ControlPersist=60s

4
.gitattributes vendored Normal file
View File

@ -0,0 +1,4 @@
# Uncomment the lines below to encrypt your secrets with git-crypt
#/ansible/secret/** filter=git-crypt diff=git-crypt
#/secret/** filter=git-crypt diff=git-crypt

54
.gitignore vendored Normal file
View File

@ -0,0 +1,54 @@
## DebOps project environment
# See https://docs.debops.org/en/master/user-guide/project-directories.html
# Autogenerated by the debops script
/ansible.cfg
# Symlink your debops package here for path consistency
/debops
# Workshop directories for unfinished roles
/roles
/playbooks
## Debops secrets, EncFS implementation
# If you'll be using git-crypt instead
# Remove this whole section
# and uncomment the lines in .gitattributes
# EncFS mount targets
/ansible/secret
/secret
# EncFS encrypted folders
# Remove this when you're ready to commit it to git
.encfs.secret
#-- python
*.py[co]
#-- vim
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
*~
#-- Emacs
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
#-- SublimeText
*.sublime-workspace
#*.sublime-project
#-- sftp configuration file
sftp-config.json

12
Pipfile Normal file
View File

@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
debops = "*"
[dev-packages]
[requires]
python_version = "3.9"

43
Pipfile.lock generated Normal file
View File

@ -0,0 +1,43 @@
{
"_meta": {
"hash": {
"sha256": "52615710627e2e5ad0aea09cae5ada8c06972a15ff7a604d3493956d29902b9a"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.9"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"debops": {
"hashes": [
"sha256:0e35b53672ef43ad93413ebc2ad03a73186d4c29b0cfa8ec7af14a20a4b4b417",
"sha256:8d87dcad8f1cc672a9a288199db599f299272daa19153b1802748d520eb7282c"
],
"index": "pypi",
"version": "==2.3.2"
},
"distro": {
"hashes": [
"sha256:83f5e5a09f9c5f68f60173de572930effbcc0287bb84fdc4426cb4168c088424",
"sha256:c8713330ab31a034623a9515663ed87696700b55f04556b97c39cd261aa70dc7"
],
"version": "==1.6.0"
},
"future": {
"hashes": [
"sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d"
],
"markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2'",
"version": "==0.18.2"
}
},
"develop": {}
}

19
ansible/inventory/hosts Normal file
View File

@ -0,0 +1,19 @@
# This is an Ansible inventory file in INI format. You can define a list of
# hosts and groups to be managed by this particular inventory.
# Hosts listed under [debops_all_hosts] will have common DebOps plays
# ran against them. It will include services such as iptables, DNS, Postfix,
# sshd configuration and more.
#
# View the list here:
# https://github.com/debops/debops/blob/master/ansible/playbooks/common.yml
#
# You should check Getting Started guide for useful suggestions:
# https://docs.debops.org/en/master/introduction/getting-started.html
# Your host was not detected as compatible with DebOps playbooks, so you will
# not be able to leverage the above features on your current operating system.
# You can however use a virtual machine as the Ansible Controller.
[debops_all_hosts]