bundles/jenkins-ci: add systemd unit file
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
bd45def053
commit
945e349d61
4 changed files with 59 additions and 0 deletions
|
@ -22,6 +22,16 @@ files = {
|
|||
'/var/lib/jenkins/.ssh/config': {
|
||||
'source': 'ssh-config',
|
||||
},
|
||||
'/etc/systemd/system/jenkins.service': {
|
||||
'content_type': 'mako',
|
||||
'context': {
|
||||
'read_write_paths': node.metadata.get('jenkins-ci/writeable_paths'),
|
||||
},
|
||||
'triggers': {
|
||||
'action:systemd-reload',
|
||||
'svc_systemd:jenkins:restart',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
if node.metadata.get('jenkins-ci/install_ssh_key', False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue