Skip to content

Commit c8eb3b0

Browse files
committed
fix
1 parent 8a9281f commit c8eb3b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbooks/aws-parallelcluster-environment/templates/cfn_hup_configuration/cfn-hook-update.conf.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
triggers=post.update
33
<% case node['cluster']['node_type'] -%>
44
<% when 'HeadNode', 'LoginNode' -%>
5-
path=Resources.<%= @launch_template_resource_id %>.Metadata.AWS::CloudFormation::Init
6-
action=<% if node['cluster']['node_type'] == 'HeadNode' -%>echo "Update triggered at $(date) by <%= node['cluster']['node_type'] %>" >> <%= @update_dir %>; <% end -%>PATH=/usr/local/bin:/bin:/usr/bin:/opt/aws/bin;. /etc/parallelcluster/pcluster_cookbook_environment.sh; $CFN_BOOTSTRAP_VIRTUALENV_PATH/cfn-init -v --stack <%= @stack_id %> --resource <%= @launch_template_resource_id %> --configsets update --region <%= @region %> --url <%= @cloudformation_url %> --role <%= @cfn_init_role %>
5+
path=Resources.<%= @launch_template_resource_id %>.Metadata.AWS::CloudFormation::Init
6+
action=<% if node['cluster']['node_type'] == 'HeadNode' -%>echo "Update triggered at $(date) by <%= node['cluster']['node_type'] %>" >> <%= @update_dir %>; <% end -%>PATH=/usr/local/bin:/bin:/usr/bin:/opt/aws/bin;. /etc/parallelcluster/pcluster_cookbook_environment.sh; $CFN_BOOTSTRAP_VIRTUALENV_PATH/cfn-init -v --stack <%= @stack_id %> --resource <%= @launch_template_resource_id %> --configsets update --region <%= @region %> --url <%= @cloudformation_url %> --role <%= @cfn_init_role %>
77
<% end %>
88
runas=root

0 commit comments

Comments
 (0)