File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -452,6 +452,7 @@ class Layer(UuidAuditedModel):
452452 flavor = models .ForeignKey ('Flavor' )
453453 nodes = models .PositiveSmallIntegerField (default = 0 )
454454 # chef settings
455+ chef_version = models .CharField (max_length = 32 , default = '11.4.4' )
455456 run_list = models .CharField (max_length = 512 )
456457 initial_attributes = fields .JSONField (default = '{}' , blank = True )
457458 environment = models .CharField (max_length = 64 , default = '_default' )
@@ -548,6 +549,8 @@ def _prepare_launch_args(self):
548549 chef ['validation_name' ] = settings .CHEF_VALIDATION_NAME
549550 chef ['validation_key' ] = settings .CHEF_VALIDATION_KEY
550551 chef ['node_name' ] = self .id
552+ if self .layer .chef_version :
553+ chef ['version' ] = self .layer .chef_version
551554 if self .layer .run_list :
552555 chef ['run_list' ] = self .layer .run_list .split (',' )
553556 if self .layer .initial_attributes :
You can’t perform that action at this time.
0 commit comments