bundles/jenkins: add zfs dataset

This commit is contained in:
Franzi 2021-07-11 15:29:42 +02:00
parent 3871893c9b
commit 0a14d46cf2
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,13 @@
directories = {
'/var/lib/jenkins': {
'owner': 'jenkins',
'group': 'jenkins',
'needs': {
'pkg_apt:jenkins',
},
},
}
files = { files = {
'/etc/default/jenkins': { '/etc/default/jenkins': {
'triggers': { 'triggers': {
@ -9,6 +19,7 @@ files = {
svc_systemd = { svc_systemd = {
'jenkins': { 'jenkins': {
'needs': { 'needs': {
'directory:/var/lib/jenkins',
'pkg_apt:jenkins', 'pkg_apt:jenkins',
}, },
}, },

View file

@ -21,4 +21,14 @@ defaults = {
'/var/lib/jenkins', '/var/lib/jenkins',
}, },
}, },
'zfs': {
'datasets': {
'tank/jenkins': {
'mountpoint': '/var/lib/jenkins',
'needed_by': {
'pkg_apt:jenkins',
},
},
},
},
} }