initial commit
This commit is contained in:
commit
8c72e3008f
8 changed files with 55 additions and 0 deletions
8
.envrc
Normal file
8
.envrc
Normal 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
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.venv
|
8
.secrets.cfg
Normal file
8
.secrets.cfg
Normal 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
14
bundles/ssh/items.py
Normal 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
0
bundles/ssh/metadata.py
Normal file
7
groups.py
Normal file
7
groups.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
groups = {
|
||||||
|
'all': {
|
||||||
|
'bundles': [
|
||||||
|
'ssh',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
16
nodes.py
Normal file
16
nodes.py
Normal 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
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bundlewrap>=4.15.0
|
Loading…
Reference in a new issue