This commit is contained in:
mwiegand 2021-07-07 22:39:32 +02:00
parent e4d1c00d4e
commit ddf331f4f0
7 changed files with 38 additions and 46 deletions

View file

@ -33,6 +33,9 @@ files['/etc/bind/named.conf'] = {
files['/etc/bind/named.conf.options'] = { files['/etc/bind/named.conf.options'] = {
'owner': 'root', 'owner': 'root',
'group': 'bind', 'group': 'bind',
'needs': [
'pkg_apt:bind9',
],
'needed_by': [ 'needed_by': [
'svc_systemd:bind9', 'svc_systemd:bind9',
], ],
@ -70,6 +73,9 @@ files['/etc/bind/named.conf.local'] = {
}, },
'owner': 'root', 'owner': 'root',
'group': 'bind', 'group': 'bind',
'needs': [
'pkg_apt:bind9',
],
'needed_by': [ 'needed_by': [
'svc_systemd:bind9', 'svc_systemd:bind9',
], ],

View file

@ -1,13 +1,9 @@
assert node.has_bundle('mailserver') assert node.has_bundle('mailserver')
groups['vmail'] = {}
users['vmail'] = { users['vmail'] = {
'home': '/var/vmail', 'home': '/var/vmail',
'needs': [
'group:vmail',
],
} }
directories = { directories = {
'/etc/dovecot': { '/etc/dovecot': {
'purge': True, 'purge': True,

View file

@ -7,7 +7,6 @@ file_attributes = {
], ],
} }
groups['opendkim'] = {}
users['opendkim'] = {} users['opendkim'] = {}
directories = { directories = {

View file

@ -1,12 +1,15 @@
assert node.has_bundle('mailserver') assert node.has_bundle('mailserver')
file_options = { file_options = {
'triggers': [ 'needs': [
'svc_systemd:postfix:restart', 'pkg_apt:postfix',
], ],
'needed_by': [ 'needed_by': [
'svc_systemd:postfix', 'svc_systemd:postfix',
], ],
'triggers': [
'svc_systemd:postfix:restart',
],
} }
files = { files = {

View file

@ -1,9 +1,30 @@
assert node.has_bundle('php') assert node.has_bundle('php')
assert node.has_bundle('mailserver') assert node.has_bundle('mailserver')
directories = {
'/opt/roundcube': {
'owner': 'www-data',
},
'/opt/roundcube/logs': {
'owner': 'www-data',
'needs': [
'git_deploy:/opt/roundcube',
],
},
'/opt/roundcube/temp': {
'owner': 'www-data',
'needs': [
'git_deploy:/opt/roundcube',
],
}
}
git_deploy['/opt/roundcube'] = { git_deploy['/opt/roundcube'] = {
'repo': "https://github.com/roundcube/roundcubemail.git", 'repo': "https://github.com/roundcube/roundcubemail.git",
'rev': node.metadata.get('roundcube/version'), 'rev': node.metadata.get('roundcube/version'),
'needs': [
'directory:/opt/roundcube',
],
} }
files['/opt/roundcube/config/config.inc.php'] = { files['/opt/roundcube/config/config.inc.php'] = {
@ -19,16 +40,3 @@ files['/opt/roundcube/config/config.inc.php'] = {
'git_deploy:/opt/roundcube', 'git_deploy:/opt/roundcube',
], ],
} }
directories['/opt/roundcube/logs'] = {
'owner': 'www-data',
'needs': [
'git_deploy:/opt/roundcube',
],
}
directories['/opt/roundcube/temp'] = {
'owner': 'www-data',
'needs': [
'git_deploy:/opt/roundcube',
],
}

View file

@ -4,7 +4,9 @@ defaults = {
'telegraf': {}, 'telegraf': {},
}, },
'sources': [ 'sources': [
'deb https://repos.influxdata.com/debian {release} stable', # FIXME
# 'deb https://repos.influxdata.com/debian {release} stable',
'deb https://repos.influxdata.com/debian buster stable',
], ],
}, },
'telegraf': { 'telegraf': {

View file

@ -1,7 +1,7 @@
{ {
'hostname': '162.55.188.157', 'hostname': '162.55.188.157',
'groups': [ 'groups': [
'archive', # 'archive',
'backup', 'backup',
'hetzner-cloud', 'hetzner-cloud',
'debian-10', 'debian-10',
@ -11,21 +11,10 @@
'dnsserver', 'dnsserver',
], ],
'bundles': [ 'bundles': [
# 'nextcloud',
'wireguard', 'wireguard',
'zfs', 'zfs',
], ],
'metadata': { 'metadata': {
'systemd-timers': {
'test1': {
'when': 'weekly',
'command': '/bin/ls',
},
},
'nextcloud': {
'hostname': 'cloud.sublimity.de',
'version': '21.0.0',
},
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae', 'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
'bind': { 'bind': {
'hostname': 'ns.sublimity.de', 'hostname': 'ns.sublimity.de',
@ -42,14 +31,6 @@
'islamicstate.eu': [], 'islamicstate.eu': [],
}, },
}, },
'dns': {
'islamicstate.eu': {
'A': ['1.2.3.4'],
},
'test.islamicstate.eu': {
'AAAA': ['::1337'],
},
},
'network': { 'network': {
'internal': { 'internal': {
'interface': 'ens10', 'interface': 'ens10',
@ -67,8 +48,6 @@
'hostname': 'mail.sublimity.de', 'hostname': 'mail.sublimity.de',
'admin_email': 'postmaster@sublimity.de', 'admin_email': 'postmaster@sublimity.de',
'domains': [ 'domains': [
'mail3.sublimity.de',
'islamicstate.eu',
# 'sublimity.de', # 'sublimity.de',
# 'freibrief.net', # 'freibrief.net',
# 'nadenau.net', # 'nadenau.net',
@ -115,7 +94,6 @@
'ram': 8096, 'ram': 8096,
}, },
'wireguard': { 'wireguard': {
# ip r add 10.0.0.0/24 via 172.19.136.2 dev wg0
'my_ip': '172.30.0.1/24', 'my_ip': '172.30.0.1/24',
'peers': { 'peers': {
'home.server': { 'home.server': {
@ -135,7 +113,7 @@
'zfs': { 'zfs': {
'pools': { 'pools': {
'tank': { 'tank': {
'device': '/dev/disk/by-id/scsi-0HC_Volume_11764264', 'device': '/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0-part2',
}, },
}, },
}, },