forked from mantl/mesos-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec.yml
43 lines (37 loc) · 1.05 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-master
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-master
type: rpm
depends:
- mesos = {{.Version}}
- systemd
targets:
- src: '{{specFile "mesos-master.service"}}'
dest: /etc/systemd/system/mesos-master.service
- src: '{{specFile "mesos-master.sysconfig"}}'
dest: /etc/sysconfig/mesos-master
config: true
- src: '{{specFile "mesos-master-firewall-rules.json"}}'
dest: /etc/sysconfig/mesos-master-firewall-rules.json
config: true
- src: '{{specFile "mesos-credentials"}}'
dest: /etc/sysconfig/mesos-credentials
config: true
scripts:
after-install: |
systemctl enable /etc/systemd/system/mesos-master.service 2> /dev/null
systemctl start mesos-master.service
before-remove: |
systemctl stop mesos-master.service
systemctl disable mesos-master.service 2> /dev/null
after-upgrade: |
systemctl daemon-reload
systemctl restart mesos-master.service
extra-args: |
--rpm-os linux