Skip to content

Commit 46ea026

Browse files
authored
Add validation recipe call to image validation (#4372)
Added call to aws-parallelcluster::validation recipe to the BuilderImage validation component template in order to allow validation to be carried out within chef. This should enable us to move validation to chef recipes with easier access to node configuration. This should help us not exceed the maximum number of steps allowed in a component because we can now add validation to the chef cookbooks instead of adding new steps to the template. Added validation recipe for validation MySQL client package installation.
1 parent b285e88 commit 46ea026

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cli/src/pcluster/resources/imagebuilder/parallelcluster_validate.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,3 +399,11 @@ phases:
399399
fi
400400
echo "dpkg test passed"
401401
fi
402+
- name: ChefValidations
403+
action: ExecuteBash
404+
inputs:
405+
commands:
406+
- |
407+
set -vx
408+
409+
cinc-client --local-mode --config /etc/chef/client.rb --log_level info --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/parallelcluster/image_dna.json --override-runlist aws-parallelcluster::validations

0 commit comments

Comments
 (0)