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

Adapt InSpec to work with latest train OS updates #855

Closed
chris-rock opened this issue Aug 2, 2016 · 1 comment
Closed

Adapt InSpec to work with latest train OS updates #855

chris-rock opened this issue Aug 2, 2016 · 1 comment
Milestone

Comments

@chris-rock
Copy link
Contributor

Description

@stevendanna introduced a couple of updates for our OS detection: inspec/train#126. This PR changes the way we get os information:

# old
@platform[:family] = 'centos'

# new 
@platform[:name] = 'centos'
@platform[:family] = 'redhat'

InSpec and Platform Version

latest

Possible Solutions

We should prefer to use dynamic methods like inspec.os.linux? or inpsec.os.debian? in our resource implementations. In addition we need to update the mock helper to reflect the changes: https://github.com/chef/inspec/blob/master/test/helper.rb#L40-L59

@chris-rock chris-rock added this to the 0.29.0 milestone Aug 2, 2016
@chris-rock
Copy link
Contributor Author

In addition, we need to ensure that Amazon Linux is supported, since this is now its own family.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants