Browse code

Deprecate fleet

Change-Id: I360a473a5d7442e42b8378de18bfd9478a2d6064
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2485
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

suezzelur authored on 2017/04/20 16:58:08
Showing 4 changed files
1 1
deleted file mode 100644
... ...
@@ -1,34 +0,0 @@
1
-# This config file is INI-formatted
2
-
3
-# Lower the logging threshold. Acceptable values are 0, 1, and 2. A higher
4
-# value corresponds to a lower logging threshold.
5
-# verbosity=0
6
-
7
-# Provide a custom set of etcd endpoints. The default value is determined
8
-# by the underlying go-etcd library.
9
-# etcd_servers=["http://127.0.0.1:4001"]
10
-
11
-# Amount of time in seconds to allow a single etcd request before considering it failed.
12
-# etcd_request_timeout=1.0
13
-
14
-# Provide TLS configuration when SSL certificate authentication is enabled in etcd endpoints
15
-# etcd_cafile=/path/to/CAfile
16
-# etcd_keyfile=/path/to/keyfile
17
-# etcd_certfile=/path/to/certfile
18
-
19
-# IP address that should be published with any socket information. By default,
20
-# no IP address is published.
21
-# public_ip=""
22
-
23
-# Comma-delimited key/value pairs that are published to the fleet registry.
24
-# This data can be referenced in unit files to affect scheduling descisions.
25
-# An example could look like: metadata="region=us-west,az=us-west-1"
26
-# metadata=""
27
-
28
-# An Agent will be considered dead if it exceeds this amount of time to
29
-# communicate with the Registry. The agent will attempt a heartbeat at half
30
-# of this value.
31
-# agent_ttl="30s"
32
-
33
-# Interval at which the engine should reconcile the cluster schedule in etcd.
34
-# engine_reconcile_interval=2
35 1
deleted file mode 100644
... ...
@@ -1,14 +0,0 @@
1
-polkit.addRule(function(action, subject) {
2
-        // "org.freedesktop.systemd1.manage-units" - for starting and stopping units
3
-        // "org.freedesktop.systemd1.manage-unit-files" - for enabling/disabling units
4
-        // "org.freedesktop.systemd1.reload-daemon" - for systemd reloading
5
-        if(
6
-                (action.id=="org.freedesktop.systemd1.manage-units")||
7
-                (action.id=="org.freedesktop.systemd1.manage-unit-files")||
8
-                (action.id=="org.freedesktop.systemd1.reload-daemon")
9
-        ){
10
-                if((subject.user=="fleet")||(subject.isInGroup("fleet")))
11
-                        return polkit.Result.YES;
12
-        }
13
-});
14
-
15 1
deleted file mode 100644
... ...
@@ -1,103 +0,0 @@
1
-Summary:	A Distributed init System
2
-Name:		fleet
3
-Version:	1.0.0
4
-Release:	1%{?dist}
5
-License:	Apache 2.0
6
-URL:		https://coreos.com/using-coreos/clustering/
7
-Group:		OS/ClusterManagement
8
-BuildRequires:	go
9
-Vendor:		VMware, Inc.
10
-Distribution:	Photon
11
-Source0:	https://github.com/coreos/%{name}/archive/%{name}-%{version}.tar.gz
12
-%define sha1 fleet=fe5ea489767565573857542cdc29a9fe80d31ec0
13
-Source1:	fleet.conf
14
-Source2:	fleet.rules
15
-Requires:	shadow
16
-Requires:	systemd
17
-BuildRequires:	systemd
18
-
19
-%description
20
-fleet ties together systemd and etcd into a simple distributed init system.
21
-
22
-%prep
23
-%setup -q
24
-
25
-%build
26
-./build
27
-
28
-%install
29
-mkdir -p %{buildroot}%{_bindir}
30
-cp bin/* %{buildroot}%{_bindir}
31
-mkdir -p %{buildroot}/etc/fleet
32
-install -p -m 0644 %{SOURCE1} %{buildroot}/etc/fleet
33
-mkdir -p %{buildroot}/run/fleet
34
-mkdir -p %{buildroot}/lib/systemd/system
35
-cat << EOF >> %{buildroot}/lib/systemd/system/fleet.service
36
-[Unit]
37
-Description=Fleet Server
38
-After=network.target
39
-After=etcd.service
40
-Wants=etcd.service
41
-
42
-[Service]
43
-Type=simple
44
-WorkingDirectory=/run/fleet
45
-User=fleet
46
-Group=fleet
47
-ExecStart=/usr/bin/fleetd
48
-
49
-[Install]
50
-WantedBy=multi-user.target
51
-EOF
52
-mkdir -p %{buildroot}/lib/tmpfiles.d
53
-cat << EOF >> %{buildroot}/lib/tmpfiles.d/fleet.conf
54
-d /run/fleet 0755 fleet fleet -
55
-EOF
56
-mkdir -p %{buildroot}/usr/share/polkit-1/rules.d/
57
-install -p -m 0644 %{SOURCE2} %{buildroot}/usr/share/polkit-1/rules.d/
58
-
59
-%check
60
-export GOPATH=%{_builddir}
61
-go get golang.org/x/tools/cmd/cover
62
-./test
63
-
64
-%pre
65
-getent group fleet >/dev/null || /usr/sbin/groupadd fleet
66
-getent passwd fleet >/dev/null || /usr/sbin/useradd -c "fleet user" -s /sbin/nologin -g fleet -d /run/fleet fleet
67
-
68
-%post
69
-/sbin/ldconfig
70
-%systemd_post fleet.service
71
-
72
-%preun
73
-%systemd_preun fleet.service
74
-
75
-%postun
76
-/sbin/ldconfig
77
-%systemd_postun_with_restart fleet.service
78
-
79
-%files
80
-%defattr(-,root,root)
81
-%{_bindir}/*
82
-/etc/fleet/fleet.conf
83
-/run/fleet
84
-/lib/systemd/system/fleet.service
85
-/lib/tmpfiles.d/fleet.conf
86
-/usr/share/polkit-1/rules.d/fleet.rules
87
-
88
-%changelog
89
-*	Tue Apr 04 2017 Chang Lee <changlee@vmware.com> 1.0.0-1
90
--	Updated to version 1.0.0
91
-*	Mon Nov 21 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.11.5-5
92
--	add shadow to requires
93
-*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 0.11.5-4
94
--       Modified %check
95
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.11.5-3
96
--	GA - Bump release of all rpms
97
-*       Mon May 09 2016 Nick Shi <nshi@vmware.com> 0.11.5-2
98
--       Configure fleet and add fleet to systemd service.
99
-*       Wed Feb 24 2016 Kumar Kaushik <kaushikk@vmware.com> 0.11.5-1
100
--       Updated version.
101
-*	Mon Jul 13 2015 Danut Moraru <dmoraru@vmware.com> 0.11.1-1
102
--	Initial build.
103
-
... ...
@@ -145,7 +145,6 @@
145 145
         "syslog-ng",
146 146
         "zookeeper",
147 147
         "fuse",
148
-        "fleet",
149 148
         "nss-altfiles",
150 149
         "apache-maven",
151 150
         "subversion",