fix new added local repo bug.
Change-Id: I8287c0c6a9bd06a34a01b13ee03429e137977584
This commit is contained in:
parent
67d35b643a
commit
0fbc8047fd
@ -15,11 +15,13 @@ while true; do
|
||||
let all_nodes_success=1
|
||||
for node in \\$nodes; do
|
||||
mkdir -p /var/log/chef/\\$node
|
||||
#if $getVar("local_repo","") != ""
|
||||
cat << EOL > /etc/chef/\\$node.json
|
||||
cat << EOL > /etc/chef/\\$node.json
|
||||
#if $getVar("local_repo","") != ""
|
||||
{"local_repo": "$local_repo"}
|
||||
#else
|
||||
{}
|
||||
#end if
|
||||
EOL
|
||||
#end if
|
||||
if [ ! -f "/etc/chef/\\$node.pem" ]; then
|
||||
cat << EOL > /etc/rsyslog.d/\\$node.conf
|
||||
\\\\$ModLoad imfile
|
||||
|
Loading…
x
Reference in New Issue
Block a user