mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
- Use manifest.provider instead of manifest.system
- Add 'parted' package required for recent versions of Azure agent
This commit is contained in:
parent
1ffbf1e18f
commit
b7243449f5
1 changed files with 4 additions and 3 deletions
|
@ -13,6 +13,7 @@ class DefaultPackages(Task):
|
|||
info.packages.add('python-openssl')
|
||||
info.packages.add('python-pyasn1')
|
||||
info.packages.add('sudo')
|
||||
info.packages.add('parted')
|
||||
|
||||
import os.path
|
||||
kernel_packages_path = os.path.join(os.path.dirname(__file__), 'packages-kernels.yml')
|
||||
|
@ -42,7 +43,7 @@ class Waagent(Task):
|
|||
log_check_call(['chroot', info.root, 'cp', waagent_script, '/usr/sbin/waagent'])
|
||||
log_check_call(['chroot', info.root, 'chmod', '755', '/usr/sbin/waagent'])
|
||||
log_check_call(['chroot', info.root, 'waagent', '-install'])
|
||||
if info.manifest.system['waagent'].get('conf', False):
|
||||
if os.path.isfile(info.manifest.system['waagent']['conf']):
|
||||
log_check_call(['cp', info.manifest.system['waagent']['conf'],
|
||||
if info.manifest.provider['waagent'].get('conf', False):
|
||||
if os.path.isfile(info.manifest.provider['waagent']['conf']):
|
||||
log_check_call(['cp', info.manifest.provider['waagent']['conf'],
|
||||
os.path.join(info.root, 'etc/waagent.conf')])
|
||||
|
|
Loading…
Add table
Reference in a new issue