Browse code

Remove Code deploy agent for AWS

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

DheerajSShetty authored on 2018/02/22 03:55:49
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,27 +0,0 @@
1
-+++ a/install	2018-01-02 16:34:18.261486655 -0800
2
-@@ -297,10 +297,10 @@ EOF
3
-     if @sanity_check
4
-       @log.info("Waiting for 3 minutes before I check for a running agent")
5
-       sleep(3 * 60)
6
--      res = run_command(cmd, 'codedeploy-agent', 'status')
7
-+      res = run_command(cmd, 'status', 'codedeploy-agent')
8
-       if (res.nil? || res == false)
9
-         @log.info("No codedeploy agent seems to be running. Starting the agent.")
10
--        run_command(cmd, 'codedeploy-agent', 'start-no-update')
11
-+        run_command(cmd, 'restart', 'codedeploy-agent')
12
-       end
13
-     end
14
-   end
15
-@@ -356,9 +356,9 @@ EOF
16
-       @log.info('Running version matches target version, skipping install')
17
-     else
18
-       #use -y to answer yes to confirmation prompts
19
--      install_cmd = ['/usr/bin/yum', '-y', 'localinstall']
20
-+      install_cmd = ['/usr/bin/rpm', '-Uvh']
21
-       install_from_s3(region, bucket, version_file_key, @type, install_cmd)
22
--      do_sanity_check('/sbin/service')
23
-+      do_sanity_check('/usr/bin/systemctl')
24
-     end
25
-   when 'deb'
26
-     running_agent = `dpkg -s codedeploy-agent`
27 1
deleted file mode 100644
... ...
@@ -1,42 +0,0 @@
1
-Summary:        Code deploy agent installer for AWS 
2
-Name:           code-deploy-agent-installer
3
-Version:        1
4
-Release:        1%{?dist}
5
-Source0:        code-deploy-agent-installer-%{version}.tar.gz
6
-%define sha1    code-deploy-agent-installer=d858011f8a792a62fd0803116e13af7aab33a742
7
-Patch0:         code-deploy-agent-installer.patch
8
-License:        LGPLv2+
9
-URL:            https://aws-codedeploy-us-west-2.s3.amazonaws.com/latest/install
10
-Vendor:         VMware, Inc.
11
-Distribution:   Photon
12
-
13
-BuildArch:      noarch
14
-
15
-Requires:       cronie
16
-Requires:       chkconfig
17
-Requires:       ruby
18
-Requires:       wget
19
-Requires:       gawk
20
-Requires:       less
21
-
22
-%description
23
-This tool installs a script which in turn installs code deploy agent in AWS instance.
24
-
25
-%prep
26
-%setup -qn %{name}
27
-%patch0 -p1
28
-
29
-%build
30
-
31
-%install
32
-install -d %{buildroot}%{_bindir}/%{name}
33
-install -p -m 755 'install' %{buildroot}%{_bindir}/%{name}
34
-
35
-%files
36
-%{_bindir}/*
37
-
38
-%changelog
39
-*   Fri Jan 12 2018 Dheeraj Shetty <dheerajs@vmware.com> 1-1
40
--   Added new version of code-deploy-agent-installer
41
-
42
-