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

St 1 ephemeral previously formatted #28

Merged
merged 18 commits into from
Apr 8, 2015

Conversation

lopaka
Copy link
Contributor

@lopaka lopaka commented Apr 6, 2015

No description provided.

default['ephemeral_lvm']['filesystem'] = "ext4"
# RHEL 7 and CentOS 7 uses XFS as their default file system.
default['ephemeral_lvm']['filesystem'] =
node['platform'] =~ /redhat|centos/ && node['platform_version'] =~ /^7\./ ? 'xfs' : 'ext4'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use value_for_platform_family for this, I think you will be able to just use 'rhel' as the family name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kitchen testing shows using value_for_platform_family works fine. However, testing in RS returns the following error: Option filesystem must be a kind of String! You passed {["7.0", "7.1"]=>"xfs", "default"=>"ext4"}. To continue moving forward, I will use 'node["platform_family"] and node['platform_version'].

douglaswth added a commit that referenced this pull request Apr 8, 2015
…ously_formatted

St 1 ephemeral previously formatted
@douglaswth douglaswth merged commit 9a687fb into master Apr 8, 2015
@douglaswth douglaswth deleted the ST-1_ephemeral_previously_formatted branch April 8, 2015 21:35
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

Successfully merging this pull request may close these issues.

None yet

2 participants