Browse code

Remove obsoleted package - consul

Change-Id: I6c111d059ddd16d66c85070dc151c97830d1e850
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2346
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>

suezzelur authored on 2017/04/11 03:45:19
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,16 +0,0 @@
1
-[Unit]
2
-Description=Consul Agent
3
-Requires=network-online.target
4
-After=network-online.target
5
-
6
-[Service]
7
-ExecStart=/usr/bin/consul agent -config-dir=/etc/consul.d -dev -advertise 127.0.0.1
8
-ExecReload=/usr/bin/kill -HUP $MAINPID
9
-KillSignal=SIGINT
10
-User=consul
11
-Group=consul
12
-Restart=on-failure
13
-LimitNOFILE=131072
14
-
15
-[Install]
16
-WantedBy=multi-user.target
17 1
deleted file mode 100644
... ...
@@ -1,85 +0,0 @@
1
-Summary:	Consul-0.7.1
2
-Name:		consul
3
-Version:	0.7.1
4
-Release:	1%{?dist}
5
-License:	Mozilla Public License, version 2.0
6
-URL:		https://www.consul.io/
7
-Group:		System Environment/Daemons
8
-Vendor:		VMware, Inc.
9
-Distribution:	Photon
10
-Source0: https://releases.hashicorp.com/%{name}/%{version}/%{name}_%{version}_linux_amd64.zip
11
-%define sha1 %{name}_%{version}_linux_amd64.zip=c2be9eebc40bf552e260c7dd31a77cb60474712f
12
-Source1:	consul.service
13
-Requires:	shadow
14
-BuildRequires:  unzip
15
-
16
-%description
17
-Consul is a tool for service discovery and configuration. Consul is distributed, highly available, and extremely scalable.
18
-
19
-Consul provides several key features:
20
- - Service Discovery - Consul makes it simple for services to register themselves and to discover other services via a DNS or HTTP interface. External services such as SaaS providers can be registered as well.
21
- - Health Checking - Health Checking enables Consul to quickly alert operators about any issues in a cluster. The integration with service discovery prevents routing traffic to unhealthy hosts and enables service level circuit breakers.
22
- - Key/Value Storage - A flexible key/value store enables storing dynamic configuration, feature flagging, coordination, leader election and more. The simple HTTP API makes it easy to use anywhere.
23
- - Multi-Datacenter - Consul is built to be datacenter aware, and can support any number of regions without complex configuration.
24
-
25
-
26
-%prep -p exit
27
-%setup -qcn %{name}-%{version}
28
-
29
-%build
30
-
31
-%install
32
-install -vdm755 %{buildroot}%{_bindir}
33
-install -vdm755 %{buildroot}%{_sysconfdir}/%{name}.d
34
-install -vdm755 %{buildroot}/usr/lib/systemd/system
35
-
36
-chown -R root:root %{buildroot}%{_bindir}
37
-
38
-mv %{_builddir}/%{name}-%{version}/%{name} %{buildroot}%{_bindir}/
39
-
40
-cp %{SOURCE1} %{buildroot}/usr/lib/systemd/system
41
-install -vdm755 %{buildroot}/var/lib/consul
42
-
43
-%pre
44
-if ! getent group %{name} >/dev/null; then
45
-    groupadd %{name}
46
-fi
47
-if ! getent passwd %{name} >/dev/null; then
48
-    useradd -c "Consul Agent" -d /var/lib/%{name} -g %{name} -s /bin/false %{name}
49
-fi
50
-exit 0
51
-
52
-%post
53
-%systemd_post %{name}.service
54
-
55
-%postun
56
-if [ $1 -eq 0 ]; then
57
-  # this is delete operation
58
-  if getent passwd %{name} >/dev/null; then
59
-      userdel %{name}
60
-  fi
61
-  if getent group %{name} >/dev/null; then
62
-      groupdel %{name}
63
-  fi
64
-fi
65
-%systemd_postun_with_restart %{name}.service
66
-
67
-%preun
68
-%systemd_preun %{name}.service
69
-
70
-%clean
71
-rm -rf %{buildroot}
72
-
73
-%files
74
-%defattr(-,%{name},%{name})
75
-%{_bindir}/%{name}
76
-/usr/lib/systemd/system/%{name}.service
77
-%dir /var/lib/%{name}
78
-%dir %{_sysconfdir}/%{name}.d
79
-
80
-%changelog
81
-*	Sat Nov 12 2016 Ivan Porto Carrero <icarrero@vmware.com> 0.7.1-1
82
--	Defaults to dev mode
83
-- Fix user and group creation
84
-*	Sun Jul 24 2016 Ivan Porto Carrero <icarrero@vmware.com> 0.6.4-1
85
--	Initial build.	First version