Browse code

Remove obsolete packages - vault, consul-template, nomad, rocket

Change-Id: I7118dbfa99eb6fe9bd9251a7b1a02838cac6f6b5
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2326
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

suezzelur authored on 2017/04/07 09:40:14
Showing 15 changed files
1 1
deleted file mode 100644
... ...
@@ -1,18 +0,0 @@
1
-[Unit]
2
-Description=Consul Template Agent
3
-Wants=basic.target
4
-After=basic.target network.target consul.service
5
-
6
-[Service]
7
-EnvironmentFile=-/etc/default/consul-template
8
-ExecStart=/usr/bin/consul agent $OPTIONS -config-dir /etc/consul-template.d
9
-ExecReload=/bin/kill -HUP $MAINPID
10
-User=root
11
-Group=root
12
-KillMode=process
13
-Restart=on-abnormal
14
-RestartSec=10s
15
-LimitNOFILE=4096
16
-
17
-[Install]
18
-WantedBy=multi-user.target
19 1
deleted file mode 100644
... ...
@@ -1,55 +0,0 @@
1
-Summary:	Consul Template-0.15.0
2
-Name:		consul-template
3
-Version:	0.15.0
4
-Release:	1%{?dist}
5
-License:	Mozilla Public License, version 2.0
6
-URL:		https://www.consul.io/
7
-Group:		System Environment/Security
8
-Vendor:		VMware, Inc.
9
-Distribution:	Photon
10
-Source0: https://releases.hashicorp.com/%{name}/%{version}/%{name}_%{version}_linux_amd64.zip
11
-%define sha1 consul-template=6cb37c40ea9a3885f12121d74f1b50a814fd0bb1
12
-Source1:	consul-template.service
13
-Requires:	shadow
14
-Requires:       consul >= 0.6.4
15
-BuildRequires:  unzip
16
-
17
-%description
18
-Generic template rendering and notifications with Consul
19
-
20
-%prep -p exit
21
-%setup -qcn %{name}-%{version}
22
-
23
-%build
24
-
25
-%install
26
-install -vdm755 %{buildroot}%{_bindir}
27
-install -vdm755 %{buildroot}%{_sysconfdir}/consul-template.d
28
-install -vdm755 %{buildroot}/usr/lib/systemd/system
29
-
30
-chown -R root:root %{buildroot}%{_bindir}
31
-
32
-mv %{_builddir}/%{name}-%{version}/%{name} %{buildroot}%{_bindir}/
33
-
34
-cp %{SOURCE1} %{buildroot}/usr/lib/systemd/system
35
-
36
-%post	-p /sbin/ldconfig
37
-%systemd_post %{name}.service
38
-
39
-%postun	-p /sbin/ldconfig
40
-%systemd_postun_with_restart %{name}.service
41
-
42
-%preun
43
-%systemd_preun %{name}.service
44
-
45
-%clean
46
-rm -rf %{buildroot}/*
47
-
48
-%files
49
-%{_bindir}/%{name}
50
-%dir %{_sysconfdir}/%{name}.d
51
-/usr/lib/systemd/system/%{name}.service
52
-
53
-%changelog
54
-*	Sun Jul 24 2016 Ivan Porto Carrero <icarrero@vmware.com> 0.15.0-1
55
--	Initial build.	First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        cve-check-tool, as its name suggests, is a tool for checking known (public) CVEs.
2 2
 Name:           cve-check-tool
3 3
 Version:        5.6.4.1
4
-Release:        7%{?dist}
4
+Release:        8%{?dist}
5 5
 Source0:        cve-check-tool-%{version}.tar.gz
6 6
 %define sha1    cve-check-tool=880719673907f5e69ece5180e762611fa66f4ae2
7 7
 Source1:        packages-mapping.cfg
... ...
@@ -64,6 +64,8 @@ rm -rf %{buildroot}/*
64 64
 %doc %{_mandir}/man1/*
65 65
 
66 66
 %changelog
67
+*   Thu Apr 06 2017 Anish Swaminathan <anishs@vmware.com> 5.6.4.1-8
68
+-   Remove vault entry from package mapping file
67 69
 *   Thu Dec 22 2016 Alexey Makhalov <amakhalov@vmware.com> 5.6.4.1-7
68 70
 -   Add more entries in package mapping file
69 71
 -   Improve jdk/jre version parsing
... ...
@@ -14,5 +14,4 @@ linux=linux_kernel
14 14
 openjdk=oracle:jdk
15 15
 python2=python
16 16
 python3=python
17
-vault=hashicorp:vault
18 17
 wget=gnu:wget
19 18
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-# https://www.nomadproject.io/docs/agent/config.html
2
-
3
-bind_addr = "0.0.0.0"
4
-data_dir = "/var/lib/nomad"
5
-
6
-leave_on_interrupt = true
7
-leave_on_terminate = true
8
-
9
-disable_update_check = true
10
-
11
-client {
12
-  servers = []
13
-}
14 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-[Unit]
2
-Description=Nomad Client Agent
3
-Documentation=https://www.nomadproject.io/docs/agent/
4
-After=network.target
5
-
6
-[Service]
7
-ExecStart=/usr/bin/nomad agent -config /etc/nomad/client.conf -client
8
-
9
-[Install]
10
-WantedBy=multi-user.target
11 1
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-# https://www.nomadproject.io/docs/agent/config.html
2
-
3
-bind_addr = "127.0.0.1"
4
-data_dir = "/var/lib/nomad"
5
-
6
-leave_on_interrupt = true
7
-leave_on_terminate = true
8
-
9
-disable_update_check = true
10
-
11
-server {
12
-  bootstrap_expect = 1
13
-}
14 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-[Unit]
2
-Description=Nomad Server Agent
3
-Documentation=https://www.nomadproject.io/docs/agent/
4
-After=network-online.target
5
-
6
-[Service]
7
-ExecStart=/usr/bin/nomad agent -config /etc/nomad/server.conf -server
8
-
9
-[Install]
10
-WantedBy=multi-user.target
11 1
deleted file mode 100644
... ...
@@ -1,67 +0,0 @@
1
-Summary:	Nomad Scheduler 0.4.1
2
-Name:		nomad
3
-Version:	0.4.1
4
-Release:	1%{?dist}
5
-License:	Mozilla Public License, version 2.0
6
-URL:		https://www.nomadproject.io/
7
-Group:		System Environment/Security
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=33ebb18daf38621e1c5e1d5e98b5eb9dbc3446c9
12
-Source1:	%{name}-client.conf
13
-Source2:	%{name}-client.service
14
-Source3:	%{name}-server.conf
15
-Source4:	%{name}-server.service
16
-Requires:	shadow
17
-BuildRequires:  unzip
18
-
19
-%description
20
-Easily deploy applications at any scale. A Distributed, Highly Available, Datacenter-Aware Scheduler
21
-
22
-%prep -p exit
23
-%setup -qcn %{name}-%{version}
24
-
25
-%build
26
-
27
-%install
28
-install -vdm755 %{buildroot}%{_bindir}
29
-install -vdm755 %{buildroot}%{_sysconfdir}/nomad.d
30
-install -vdm755 %{buildroot}/usr/lib/systemd/system
31
-
32
-chown -R root:root %{buildroot}%{_bindir}
33
-
34
-mv %{_builddir}/%{name}-%{version}/%{name} %{buildroot}%{_bindir}/
35
-
36
-cp %{SOURCE2} %{buildroot}/usr/lib/systemd/system
37
-cp %{SOURCE4} %{buildroot}/usr/lib/systemd/system
38
-install -vdm755 %{buildroot}/var/lib/%{name}
39
-
40
-%post
41
-%systemd_post %{name}-client.service
42
-%systemd_post %{name}-server.service
43
-
44
-%postun
45
-%systemd_postun_with_restart %{name}-client.service
46
-%systemd_postun_with_restart %{name}-server.service
47
-
48
-%preun
49
-%systemd_preun %{name}-client.service
50
-%systemd_preun %{name}-server.service
51
-
52
-%clean
53
-rm -rf %{buildroot}
54
-
55
-%files
56
-%defattr(-,root,root)
57
-%{_bindir}/%{name}
58
-/usr/lib/systemd/system/%{name}-client.service
59
-/usr/lib/systemd/system/%{name}-server.service
60
-%dir /var/lib/%{name}
61
-%dir %{_sysconfdir}/%{name}.d
62
-
63
-%changelog
64
-*	Sat Nov 12 2016 Ivan Porto Carrero <icarrero@vmware.com> 0.4.1-1
65
--	Defaults to dev mode
66
-*	Sun Jul 24 2016 Ivan Porto Carrero <icarrero@vmware.com> 0.4.0-1
67
--	Initial build.	First version
68 1
deleted file mode 100644
... ...
@@ -1,62 +0,0 @@
1
-Summary:        Rocket
2
-Name:           rocket
3
-Version:        1.4.0
4
-Release:        4%{?dist}
5
-License:        ASL 2.0
6
-URL:            http://rocket.readthedocs.org/en/latest/
7
-Group:          Applications/File
8
-Vendor:         VMware, Inc.
9
-Distribution:   Photon
10
-Source0:        rkt-v1.4.0.tar.gz
11
-BuildRequires:  systemd
12
-%define sha1 rkt=f1efb94ea08fc9917b7da1c1913c8d45b814e8f8
13
-
14
-%description
15
-Rocket is a CLI for running app containers, and an implementation of the App Container Spec.
16
-%prep
17
-%setup -q -n rkt-v%{version}
18
-%build
19
-%install
20
-install -vdm755 %{buildroot}/bin
21
-install -vdm755 %{buildroot}/usr/lib/systemd/system
22
-mv -v %{_builddir}/rkt-v%{version}/rkt %{buildroot}/bin/
23
-mv -v %{_builddir}/rkt-v%{version}/*.aci %{buildroot}/bin/
24
-mv -v %{_builddir}/rkt-v%{version}/scripts/setup-data-dir.sh %{buildroot}/bin/
25
-mv -v %{_builddir}/rkt-v%{version}/init/systemd/rkt-* %{buildroot}/usr/lib/systemd/system/
26
-install -vdm755 %{buildroot}/var/lib/rkt
27
-install -vdm755 %{buildroot}/var/lib/rkt/cas
28
-install -vdm755 %{buildroot}/var/lib/rkt/cas/db
29
-install -vdm755 %{buildroot}/var/lib/rkt/tmp
30
-install -vdm755 %{buildroot}/var/lib/rkt/containers
31
-
32
-%{_fixperms} %{buildroot}/*
33
-
34
-%post   -p /sbin/ldconfig
35
-%postun -p /sbin/ldconfig
36
-%clean
37
-rm -rf %{buildroot}/*
38
-%files
39
-%defattr(-,root,root)
40
-/bin/*
41
-/usr/lib/systemd/system/*
42
-/var/lib/rkt
43
-/var/lib/rkt/cas
44
-/var/lib/rkt/cas/db
45
-/var/lib/rkt/tmp
46
-/var/lib/rkt/containers
47
-
48
-%changelog
49
-*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 1.4.0-4
50
--       Modified %check
51
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.0-3
52
--	GA - Bump release of all rpms
53
-*       Mon Apr 18 2016 Kumar Kaushik <kaushikk@vmware.com> 1.4.0-2
54
--       Adding missing files.
55
-*       Fri Apr 15 2016 Kumar Kaushik <kaushikk@vmware.com> 1.4.0-1
56
--       Updated version.
57
-*       Tue Feb 23 2016 Xiaolin Li <xiaolinl@vmware.com> 1.0.0-1
58
--       Updated to version 1.0.0
59
-*       Mon Feb 1 2016 Alexey Makhalov <amakhalov@vmware.com> 0.5.1-2
60
--       Version name change: v0.5.1 -> 0.5.1
61
-*       Fri Mar 27 2015 Fabio Rapposeli <fabio@vmware.com> 0.5.1-1
62
--       Initial build.  First version
63 1
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-backend "consul" {
2
-  address = "localhost:8500"
3
-
4
-}
5
-
6
-listener "tcp" {
7
-  address = "0.0.0.0:8200"
8
-}
9 1
deleted file mode 100644
... ...
@@ -1,17 +0,0 @@
1
-[Unit]
2
-Description=vault Agent
3
-Documentation=https://www.vaultproject.io/docs/index.html
4
-Wants=basic.target
5
-After=basic.target network.target consul.service
6
-
7
-[Service]
8
-ExecStart=/usr/bin/vault server -config /etc/vault.d/vault.hcl
9
-ExecReload=/bin/kill -HUP $MAINPID
10
-User=root
11
-Group=root
12
-KillSignal=SIGINT
13
-Restart=on-failure
14
-LimitNOFILE=131072
15
-
16
-[Install]
17
-WantedBy=multi-user.target
18 1
deleted file mode 100644
... ...
@@ -1,61 +0,0 @@
1
-Summary:	Vault secrets management
2
-Name:		vault
3
-Version:	0.6.0
4
-Release:	1%{?dist}
5
-License:	Mozilla Public License, version 2.0
6
-URL:		https://www.vaultproject.io/
7
-Group:		System Environment/Security
8
-Vendor:		VMware, Inc.
9
-Distribution:	Photon
10
-Source0: https://releases.hashicorp.com/%{name}/%{version}/%{name}_%{version}_linux_amd64.zip
11
-%define sha1 vault=ec1115ba639870a63460884a59b44c77b0c71221
12
-Source1:	vault.service
13
-Source2:        vault.hcl
14
-Requires:	shadow
15
-Requires:       consul >= 0.6.4
16
-BuildRequires:  unzip
17
-
18
-%description
19
-Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault handles leasing, key revocation, key rolling, and auditing. Vault presents a unified API to access multiple backends: HSMs, AWS IAM, SQL databases, raw key/value, and more.
20
-
21
-%prep -p exit
22
-%setup -qcn %{name}-%{version}
23
-
24
-%build
25
-
26
-%install
27
-install -vdm755 %{buildroot}%{_bindir}
28
-install -vdm755 %{buildroot}/usr/lib/systemd/system
29
-install -vdm755 %{buildroot}/%{_sysconfdir}/vault.d
30
-
31
-chown -R root:root %{buildroot}%{_bindir}
32
-
33
-mv %{_builddir}/%{name}-%{version}/%{name} %{buildroot}%{_bindir}/
34
-
35
-cp %{SOURCE1} %{buildroot}/usr/lib/systemd/system
36
-cp %{SOURCE2} %{buildroot}%{_sysconfdir}/vault.d/
37
-install -vdm755 %{buildroot}/var/lib/vault
38
-
39
-%post	-p /sbin/ldconfig
40
-setcap cap_ipc_lock=+ep /usr/bin/%{name}
41
-%systemd_post vault.service
42
-
43
-%postun	-p /sbin/ldconfig
44
-%systemd_postun_with_restart vault.service
45
-
46
-%preun
47
-%systemd_preun vault.service
48
-
49
-%clean
50
-rm -rf %{buildroot}/*
51
-
52
-%files
53
-%{_bindir}/%{name}
54
-%{_sysconfdir}/%{name}.d/vault.hcl
55
-/usr/lib/systemd/system/%{name}.service
56
-%dir %{_sysconfdir}/%{name}.d
57
-%dir /var/lib/%{name}
58
-
59
-%changelog
60
-*	Sun Jul 24 2016 Ivan Porto Carrero <icarrero@vmware.com> 0.6.0-1
61
--	Initial build.	First version
... ...
@@ -130,7 +130,6 @@
130 130
         "urlgrabber",
131 131
         "yum-metadata-parser",
132 132
         "yum",
133
-        "rocket",
134 133
         "strace",
135 134
         "cracklib-python",
136 135
         "haveged",
137 136
deleted file mode 100644
... ...
@@ -1,79 +0,0 @@
1
-Running Rocket Containers on Photon OS
2
-======================================
3
-
4
-Rocket is a container runtime created by [CoreOS](http://coreos.com). It is designed for composability, security, and speed. 
5
-
6
-A command-line interface for running application containers, rkt (pronounced _"rock-it"_) implements the [App Container Spec](https://github.com/coreos/rkt/blob/master/Documentation/app-container.md).
7
-
8
-The rkt package is installed by default in the full version of Photon OS. In the minimal version, rkt is an optional package. You can install it by running the following commands as root:
9
-
10
-```
11
-tdnf install rocket
12
-```
13
-
14
-For more information about the tdnf command, see the [Photon OS Administration Guide](https://github.com/vmware/photon/blob/master/docs/photon-admin-guide.md).
15
-
16
-
17
-### Running an App Container Image
18
-
19
-rkt uses content addressable storage (CAS) for storing an app container image (ACI) on disk. In the following example, the image is downloaded and added to the CAS.
20
-
21
-Since rkt verifies signatures by default, you need to first [trust](https://github.com/coreos/rkt/blob/master/Documentation/signing-and-verification-guide.md#establishing-trust) the [CoreOS public key](https://coreos.com/dist/pubkeys/aci-pubkeys.gpg) used to sign the image:
22
-
23
-```
24
-$ sudo rkt trust --prefix coreos.com/etcd
25
-Prefix: "coreos.com/etcd"
26
-Key: "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg"
27
-GPG key fingerprint is: 8B86 DE38 890D DB72 9186  7B02 5210 BD88 8818 2190
28
-        CoreOS ACI Builder <release@coreos.com>
29
-Are you sure you want to trust this key (yes/no)? yes
30
-Trusting "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg" for prefix "coreos.com/etcd".
31
-Added key for prefix "coreos.com/etcd" at "/etc/rkt/trustedkeys/prefix.d/coreos.com/etcd/8b86de38890ddb7291867b025210bd8888182190"
32
-```
33
-
34
-Now that you have trusted the CoreOS public key, you can bring up a simple etcd instance using the ACI format:
35
-
36
-```
37
-$ privateIp=$(ip -4 -o addr show eth0 | cut -d' ' -f7 | cut -d'/' -f1)
38
-$ sudo rkt run coreos.com/etcd:v2.0.4 -- -name vmware-cna \
39
-> -listen-client-urls http://0.0.0.0:2379 \
40
-> -advertise-client-urls http://${privateIp}:2379 \
41
-> -listen-peer-urls http://0.0.0.0:2380 \
42
-> -initial-advertise-peer-urls http://${privateIp}:2380 \
43
-> -initial-cluster vmware-cna=http://${privateIp}:2380 \
44
-> -initial-cluster-state new
45
-
46
-rkt: searching for app image coreos.com/etcd:v2.0.4
47
-rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.4/etcd-v2.0.4-linux-amd64.aci
48
-Downloading signature from https://github.com/coreos/etcd/releases/download/v2.0.4/etcd-v2.0.4-linux-amd64.aci.asc
49
-Downloading ACI: [========================================     ] 3.38 MB/3.76 MB
50
-rkt: signature verified:
51
-  CoreOS ACI Builder <release@coreos.com>
52
-Timezone UTC does not exist in container, not updating container timezone.
53
-2015/04/02 13:18:39 no data-dir provided, using default data-dir ./vmware-cna.etcd
54
-2015/04/02 13:18:39 etcd: listening for peers on http://0.0.0.0:2380
55
-2015/04/02 13:18:39 etcd: listening for client requests on http://0.0.0.0:2379
56
-2015/04/02 13:18:39 etcdserver: name = vmware-cna
57
-2015/04/02 13:18:39 etcdserver: data dir = vmware-cna.etcd
58
-2015/04/02 13:18:39 etcdserver: member dir = vmware-cna.etcd/member
59
-2015/04/02 13:18:39 etcdserver: heartbeat = 100ms
60
-2015/04/02 13:18:39 etcdserver: election = 1000ms
61
-2015/04/02 13:18:39 etcdserver: snapshot count = 10000
62
-2015/04/02 13:18:39 etcdserver: advertise client URLs = http://192.168.35.246:2379
63
-2015/04/02 13:18:39 etcdserver: initial advertise peer URLs = http://192.168.35.246:2380
64
-2015/04/02 13:18:39 etcdserver: initial cluster = vmware-cna=http://192.168.35.246:2380
65
-2015/04/02 13:18:39 etcdserver: start member 8f79fa9a50a1689 in cluster 75c533bd1f49730b
66
-2015/04/02 13:18:39 raft: 8f79fa9a50a1689 became follower at term 0
67
-2015/04/02 13:18:39 raft: newRaft 8f79fa9a50a1689 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
68
-2015/04/02 13:18:39 raft: 8f79fa9a50a1689 became follower at term 1
69
-2015/04/02 13:18:39 etcdserver: added local member 8f79fa9a50a1689 [http://192.168.35.246:2380] to cluster 75c533bd1f49730b
70
-2015/04/02 13:18:41 raft: 8f79fa9a50a1689 is starting a new election at term 1
71
-2015/04/02 13:18:41 raft: 8f79fa9a50a1689 became candidate at term 2
72
-2015/04/02 13:18:41 raft: 8f79fa9a50a1689 received vote from 8f79fa9a50a1689 at term 2
73
-2015/04/02 13:18:41 raft: 8f79fa9a50a1689 became leader at term 2
74
-2015/04/02 13:18:41 raft.node: 8f79fa9a50a1689 elected leader 8f79fa9a50a1689 at term 2
75
-2015/04/02 13:18:41 etcdserver: published {Name:vmware-cna ClientURLs:[http://192.168.35.246:2379]} to cluster 75c533bd1f49730b
76
-```
77
-
78
-When you are done, press the `^]` key three times to kill the container. To generate `^]` on a U.S. keyboard, type Ctrl+] (hold down the Ctrl key and then press the `]` key). The key combination to generate the `^]` escape character might differ on keyboard layouts other than the U.S. keyboard. 
79
-