Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.idea
*.iml
.vagrant
Berksfile.lock
*~
*#
.#*
Expand Down
24 changes: 0 additions & 24 deletions Berksfile

This file was deleted.

2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

source 'https://rubygems.org'

gem 'berkshelf'

group :style do
gem 'cookstyle', '~> 7.25.9'
gem 'rake', '~> 13.0.1'
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ This repo contains the AWS ParallelCluster Chef cookbook used in AWS ParallelClu

# Code structure

The root folder of the cookbook repository can be considered the main cookbook, since it contains two files: `Berksfile` and `metadata.rb`.
These files are used by the CLI (build image time) and `user-data.sh` code to [vendor](https://docs.chef.io/workstation/berkshelf/#berks-vendor)
the other sub-cookbooks and third party cookbooks.
The root folder of the cookbook repository can be considered the main cookbook, since it contains two files: `Policyfile.rb` and `metadata.rb`.
These files are used by the CLI (build image time) and `user-data.sh` code to vendor the other sub-cookbooks and third party cookbooks.

The main cookbook does not contain any recipe, attribute or library. They are distributed in the functional cookbooks under the `cookbooks` folder
defined as follows:
Expand Down Expand Up @@ -391,13 +390,14 @@ If you interrupt it and try to run `kitchen verify`, you see authentication fail
This happens because Ubuntu22 does not accept authentication via RSA key. You need to re-create a key pair
using `ED25519` key type.

### Known issues with Berks
### Known issues with Policyfiles

#### Kitchen doesn't see your changes

If Kitchen doesn't detect your changes, try
```
berks shelf uninstall ${COOKBOOK_NAME}
chef install
chef push kitchen
```

## About python tests
Expand Down
20 changes: 0 additions & 20 deletions cookbooks/aws-parallelcluster-awsbatch/Berksfile

This file was deleted.

9 changes: 0 additions & 9 deletions cookbooks/aws-parallelcluster-computefleet/Berksfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'chefspec'
require 'chefspec/berkshelf'

require_relative '../../aws-parallelcluster-shared/spec/spec_helper'
21 changes: 0 additions & 21 deletions cookbooks/aws-parallelcluster-entrypoints/Berksfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'chefspec'
require 'chefspec/berkshelf'

require_relative '../../aws-parallelcluster-shared/spec/spec_helper'
14 changes: 0 additions & 14 deletions cookbooks/aws-parallelcluster-environment/Berksfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'chefspec'
require 'chefspec/berkshelf'

require_relative '../../aws-parallelcluster-shared/spec/spec_helper'

Expand Down
11 changes: 0 additions & 11 deletions cookbooks/aws-parallelcluster-platform/Berksfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'chefspec'
require 'chefspec/berkshelf'

require_relative '../../aws-parallelcluster-shared/spec/spec_helper'

Expand Down
8 changes: 0 additions & 8 deletions cookbooks/aws-parallelcluster-shared/Berksfile

This file was deleted.

14 changes: 13 additions & 1 deletion cookbooks/aws-parallelcluster-shared/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
require 'chefspec'
require 'chefspec/berkshelf'

# Chef::Mixin::ShellOut is required to mock shellout
include Chef::Mixin::ShellOut

RSpec.configure do |c|
c.before(:suite) do
# Copy third-party cookbooks to cookbooks directory for ChefSpec tests
require 'fileutils'
third_party_path = File.expand_path('../../third-party', __dir__)
cookbooks_path = File.expand_path('../..', __dir__)
if Dir.exist?(third_party_path)
Dir.glob(File.join(third_party_path, '*')).each do |cookbook|
next unless File.directory?(cookbook)
FileUtils.cp_r(cookbook, cookbooks_path)
end
end
end

c.before(:each) do
allow(File).to receive(:exist?).and_call_original
allow(Dir).to receive(:exist?).and_call_original
Expand Down
15 changes: 0 additions & 15 deletions cookbooks/aws-parallelcluster-slurm/Berksfile

This file was deleted.

1 change: 0 additions & 1 deletion cookbooks/aws-parallelcluster-slurm/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'chefspec'
require 'chefspec/berkshelf'

require_relative '../../aws-parallelcluster-shared/spec/spec_helper'

Expand Down
8 changes: 0 additions & 8 deletions cookbooks/aws-parallelcluster-tests/Berksfile

This file was deleted.

Loading
Loading