forked from mantl/mesos-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec.yml
43 lines (37 loc) · 1.04 KB
/
spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: mesos-agent
version: 0.27.2
license: ASL 2.0
iteration: 1
vendor: Mesos
url: http://mesos.apache.org/
architecture: noarch
description: configuration files for the mesos-agent
type: rpm
depends:
- mesos = {{.Version}}
- systemd
targets:
- src: '{{specFile "mesos-agent.service"}}'
dest: /etc/systemd/system/mesos-agent.service
- src: '{{specFile "mesos-agent.sysconfig"}}'
dest: /etc/sysconfig/mesos-agent
config: true
- src: '{{specFile "mesos-agent-firewall-rules.json"}}'
dest: /etc/sysconfig/mesos-agent-firewall-rules.json
config: true
- src: '{{specFile "mesos-credential"}}'
dest: /etc/sysconfig/mesos-credential
config: true
scripts:
after-install: |
systemctl enable /etc/systemd/system/mesos-agent.service 2> /dev/null
systemctl start mesos-agent.service
before-remove: |
systemctl stop mesos-agent.service
systemctl disable mesos-agent.service 2> /dev/null
after-upgrade: |
systemctl daemon-reload
systemctl restart mesos-agent.service
extra-args: |
--rpm-os linux