mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Update digitalocean.py
Add option to install agent for metrics, advanced graphs and monitoring
This commit is contained in:
parent
98d0a15575
commit
8de470e57a
@ -380,6 +380,15 @@ def create(vm_):
|
||||
if not isinstance(ipv6, bool):
|
||||
raise SaltCloudConfigError("'ipv6' should be a boolean value.")
|
||||
kwargs['ipv6'] = ipv6
|
||||
|
||||
monitoring = config.get_cloud_config_value(
|
||||
'monitoring', vm_, __opts__, search_global=False, default=None,
|
||||
)
|
||||
|
||||
if monitoring is not None:
|
||||
if not isinstance(monitoring, bool):
|
||||
raise SaltCloudConfigError("'monitoring' should be a boolean value.")
|
||||
kwargs['monitoring'] = monitoring
|
||||
|
||||
kwargs['tags'] = config.get_cloud_config_value(
|
||||
'tags', vm_, __opts__, search_global=False, default=False
|
||||
|
Loading…
Reference in New Issue
Block a user