aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.53k stars 4.12k forks source link

Install codedeploy agent on Centos 7 #2107

Closed davividal closed 8 years ago

davividal commented 8 years ago

Whenever I try to install AWS CodeDeploy agent on a on-premise server, I got a System.UNSUPORTED_SYSTEM_MSG. I was able to get it up and running with the following:

diff --git a/awscli/customizations/codedeploy/utils.py b/awscli/customizations/codedeploy/utils.py
index 7aee4bb..e343cf0 100644
--- a/awscli/customizations/codedeploy/utils.py
+++ b/awscli/customizations/codedeploy/utils.py
@@ -101,7 +101,8 @@ def validate_instance(params):
     if platform.system() == 'Linux':
         if 'Ubuntu' in platform.linux_distribution()[0]:
             params.system = Ubuntu(params)
-        if 'Red Hat Enterprise Linux Server' in platform.linux_distribution()[0]:
+        if 'Red Hat Enterprise Linux Server' in platform.linux_distribution()[0]
+            or 'CentOS Linux' in platform.linux_distribution()[0]:
             params.system = RHEL(params)
     elif platform.system() == 'Windows':
         params.system = Windows(params)

platform.linux_distribution outputs ('CentOS Linux', '7.2.1511', 'Core').

Is there a reason as to not allow install on CentOS? How can I test it to check if it is properly working?

davividal commented 8 years ago

Update: I'm using codedeploy-agent on a premise CentOS 7 server without any noticeable issue. My build files are .tar.gz stored in a S3 bucket.

jamesls commented 8 years ago

Let me follow up with the codedeploy team and see if they have any issues with this.

davividal commented 8 years ago

Hi. Any updates on this? I'm setting up 4 more on-premise instances on CentOS 7 and I need to get CodeDeploy working on them.

jamesls commented 8 years ago

Sorry for the delay, I'm following up again with codedeploy. I'll update this as soon as I have information to share.

davividal commented 8 years ago

Hey @jamesls , any update?

davividal commented 8 years ago

Any update on this? I'm on the verge to give up on using codedeploy on my on-premise instances.

Unless there is some MAJOR issue with CentOS 7, I don't think it should take more than a month to review a ONE LINE patch...

ambareesha commented 8 years ago

Apologies for the delay in getting back on this. We don't officially support CentOS since we haven't tested our agent on the OS. Unfortunately, our host-agent release process is a bit time consuming and we are focusing all our efforts right now on updating the host agent to work with all versions of Ruby 2.x. The next item in our roadmap after that is to support Ubuntu 16. We can consider adding tests for CentOS too at that point, so we can release support both the OSes at the same time.

Having said that, several of our customers are running the CodeDeploy host agent on CentOS without any problems. While it will take us some time to pull in your patch and test it, you can build your own custom host agent and run it on CentOS.

However, please be aware that this has not been tested officially and you could run into problems.

jamesls commented 8 years ago

Given the response from the code deploy team above ^ I think we'll need to hold off on merging this PR for the time being until CentOS is officially supported.

I'm going to go ahead and close out this issue for now, but we can revisit this again when CodeDeploy adds official support.

Thanks again for the pull request.

kyalamanchi commented 7 years ago

Any update on when Centos will be supported ?

BobbieBarker commented 5 years ago

2 years later.... how about that centOS support?

enricopesce commented 5 years ago

A N Y U P D A T E ? ? ? ?

CosmicCatnap commented 4 years ago

This is a one line fix that has been outstanding for 5 years now. Its currently being maintained by one of the largest and well funded companies in the world and is part of their most profitable division. Its pathetic to be honest.

davividal commented 4 years ago

@CosmicCatnap it is not 5 years. It will turn 4 years old in 1 day and 41 minutes. :birthday:

davividal commented 4 years ago

Congrats #2107 ! 4 years old!! 🎂

AhmedBenyahia commented 3 years ago

its 5 years now. I can't believe that a small task like this is taking 5 years. This is so annoying !!

AhmedBenyahia commented 3 years ago

@davividal can you tell me the steps to install the CLI manually with the modified file

davividal commented 3 years ago

@davividal can you tell me the steps to install the CLI manually with the modified file

Nope. I did this 5 years ago, I can't remember how I did it.

Since I made a PR with this change, I had a cloned repo with the patch applied. I probably installed this package using pip and my clone. But this is a guess.

rsiw2000 commented 1 year ago

Well, I'm interested too. I need to run codedeploy agent on a Centos 7. At this point, I'm sure AWS won't officially support this.

trevor-burbidge-iiq commented 1 year ago

After trying to figure out how to make this code change work to install on CentOS I finally realized that I don't need to use the aws-cli to install the agent, it can just be installed directly by following the instructions here: Install the CodeDeploy agent for Amazon Linux or RHEL

rsiw2000 commented 1 year ago

Yes, thanks for reminding me to take a minute to write a feedback here. It's working fine on CentOS 7 that I've installed using this installation guide.