Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add platform detection for Arista EOS #860

Merged
merged 2 commits into from
Aug 11, 2016
Merged

Conversation

jerearista
Copy link
Contributor

Arista EOS can be detected based on the /etc/Eos-release file which includes the EOS version string.

@jerearista
Copy link
Contributor Author

@tas50 This is the PR we discussed via email earlier today.

@tas50
Copy link
Contributor

tas50 commented Aug 11, 2016

Thanks for getting this filed @jerearista. The tests are failing due to issues with rack 2.0 and the new rspec release. I have a PR to get that fixed. Once we get it merged in you should be able to rebase off master to get your PR to pass.

I do have some reservations about making the platform_family fedora in this PR. I know that EOS is based on Fedora, but the Arista install may differ enough from Fedora that having the platform_family fedora will become a disservice to anyone attempting to make generalization about "fedora-ness" of the setup. Pinging @thommay and @lamont-granquist for their thoughts on this since we've discussed greater platform_family issues a lot lately.

@lamont-granquist
Copy link
Contributor

IDK what fedora looks like now after systemd, but if there's /etc/sysconfig that looks like the rest of the redhat systems, and it has "*-devel" RPMs, and things like that, then its 'fedora-derived' system. Since its a switch O/S I'm sure they messed around with networking stuff in important ways -- maybe hostname, ipaddress, etc are no longer set the same was a fedora -- but it doesn't matter since that is inherently going to have to switch off node[:platform] == "arista_eos" anyway.

If node[:platform_family] == 'fedora' gets anything correct about the system config, then its probably the right thing to do -- the /differences/ are the wrong thing to look at since platform_family is inherently fuzzy-matching.

@tas50 tas50 merged commit af061dd into chef:master Aug 11, 2016
@tas50
Copy link
Contributor

tas50 commented Aug 11, 2016

👍 from me obviously if lamont is ok with the platform family. Test failure was due to rack coming in with github changelog generator. That's been fixed in another PR so this will run fine in master now.

@jerearista
Copy link
Contributor Author

Thanks. I'll keep an eye on the fedora setting.

On Aug 11, 2016 3:35 PM, "Tim Smith" notifications@github.com wrote:

👍 from me obviously if lamont is ok with the platform family. Test
failure was due to rack coming in with github changelog generator. That's
been fixed in another PR so this will run fine in master now.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#860 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHedgCUFbC4e2OspE0v4eL-iIl6r4dLcks5qe3lpgaJpZM4JhhsS
.

@lamont-granquist
Copy link
Contributor

Yeah that was a 👍 -- although I'm kind of blindly guessing what EOS looks like...

@jerearista jerearista deleted the arista_eos branch August 12, 2016 18:37
@thommay thommay added Type: Enhancement Adds new functionality. and removed Enhancement labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants