Skip to content

Commit 4756da1

Browse files
authored
[system-tests + config/install separation] Add support for testing in virtual env, separate cookbooks for config/ins
- Add a setup for running the config / install recipes using a virtualized environment with several mocks in place to exercise the code - Separate the config / install path into separate cookbooks for a cleaner understanding of what runs where.
1 parent 18e7060 commit 4756da1

File tree

156 files changed

+1802
-1036
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+1802
-1036
lines changed

Berksfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ cookbook "pyenv", path: "./third-party/pyenv-3.4.2"
1616
cookbook "selinux", path: "./third-party/selinux-3.1.1"
1717
cookbook "yum", path: "./third-party/yum-6.1.1"
1818
cookbook "yum-epel", path: "./third-party/yum-epel-4.1.2"
19+
cookbook "aws-parallelcluster-install", path: "./cookbooks/aws-parallelcluster-install"
20+
cookbook "aws-parallelcluster-config", path: "./cookbooks/aws-parallelcluster-config"
21+
cookbook "aws-parallelcluster-test", path: "./cookbooks/aws-parallelcluster-test"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
1010
- Change supervisord service script from SysVinit to Systemd.
1111
- Drop support for SysVinit. Only Systemd is supported.
1212
- Do not configure GPUs in Slurm when Nvidia driver is not installed.
13-
-
13+
- Move the configure / install recipes to separate cookbooks that are called from the main one. Existing entrypoints are maintained and backwards compatible.
1414
**BUG FIXES**
1515
- Fix supervisord service not enabled on Ubuntu.
1616

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
aws-parallelcluster-cookbook
2-
Copyright 2015-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
Copyright 2015-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.

attributes/conditions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Cookbook Name:: aws-parallelcluster
55
# Attributes:: default
66
#
7-
# Copyright 2013-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at

attributes/default.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Cookbook Name:: aws-parallelcluster
55
# Attributes:: default
66
#
7-
# Copyright 2013-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at
@@ -275,6 +275,8 @@
275275
default['cluster']['memory_limit'] = 'unlimited'
276276

277277
# Platform defaults
278+
#
279+
default['cluster']['kernel_release'] = node['kernel']['release'] unless default['cluster'].key?('kernel_release')
278280
case node['platform_family']
279281
when 'rhel', 'amazon'
280282

0 commit comments

Comments
 (0)