Enable os-collect-config service

When using get-occ-config.sh to configure pre-provisioned nodes, the
os-collect-config service may not have been enabled by default. This can
lead to reboots causing future updates or upgrade processes to fail.

Change-Id: If7d4dbcc721fbb0ea835dbd70126f9532a94d937
Closes-Bug: #1734783
This commit is contained in:
Alex Schultz 2017-11-27 16:13:37 -07:00
parent c67dbe950d
commit 828bc54f84
2 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,7 @@ metadata_url=$deployed_server_metadata_url"
ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host "echo \"$config\" > os-collect-config.conf"
ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo cp os-collect-config.conf /etc/os-collect-config.conf
ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo systemctl restart os-collect-config
ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo systemctl enable os-collect-config
fi
let i+=1

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Enable the os-collect-config service on the system when using the
get-occ-config.sh method of split stack configuration. LP#1734783