initial commit

This commit is contained in:
mwiegand 2022-10-27 13:26:35 +02:00
commit 8c72e3008f
No known key found for this signature in database
8 changed files with 55 additions and 0 deletions

8
.envrc Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
python3 -m venv .venv
source ./.venv/bin/activate
PATH_add .venv/bin
PATH_add bin
python3 -m pip install --upgrade pip

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.venv

8
.secrets.cfg Normal file
View file

@ -0,0 +1,8 @@
# DO NOT COMMIT THIS FILE
# share it with your team through a secure channel
[generate]
key = gFnYh5VA0Nmcp-yEOfe5sLwNuuxrtYU8orwcDrVp2cc=
[encrypt]
key = rEy1vPcZBoKEnSvYARc8z2Vlpqs_NsAQZ1hmgQioMzQ=

14
bundles/ssh/items.py Normal file
View file

@ -0,0 +1,14 @@
files = {
'/test123': {
'content': 'HALLO WELT!!11 ' + node.metadata.get('domain'),
}
}
actions = {
'schieber': {
'command': 'mv /test123 /test456',
'needs': [
'file:/test123',
],
},
}

0
bundles/ssh/metadata.py Normal file
View file

7
groups.py Normal file
View file

@ -0,0 +1,7 @@
groups = {
'all': {
'bundles': [
'ssh',
],
},
}

16
nodes.py Normal file
View file

@ -0,0 +1,16 @@
nodes = {
'leotest': {
'hostname': '167.235.199.211',
'groups': ['all'],
'metadata': {
'domain': 'whatever.example.com',
},
},
'leotest2': {
'hostname': '167.235.199.227',
'groups': ['all'],
'metadata': {
'domain': 'somethingelse.example.com',
},
},
}

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
bundlewrap>=4.15.0