mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Add hostname setting to azure provider
This commit is contained in:
parent
18fce45d91
commit
5502a5c3b1
1 changed files with 5 additions and 1 deletions
|
@ -39,12 +39,16 @@ def resolve_tasks(tasklist, manifest):
|
|||
if manifest.volume['partitions']['type'] != 'none':
|
||||
tasklist.update(task_sets.partitioning_set)
|
||||
|
||||
if manifest.system.get('hostname', False):
|
||||
tasklist.add(network.SetHostname)
|
||||
else:
|
||||
tasklist.add(network.RemoveHostname)
|
||||
|
||||
tasklist.update([tasks.packages.DefaultPackages,
|
||||
loopback.Create,
|
||||
security.EnableShadowConfig,
|
||||
network.RemoveDNSInfo,
|
||||
network.ConfigureNetworkIF,
|
||||
network.RemoveHostname,
|
||||
initd.AddSSHKeyGeneration,
|
||||
initd.InstallInitScripts,
|
||||
tasks.packages.Waagent,
|
||||
|
|
Loading…
Add table
Reference in a new issue