|
|
@ -35,7 +35,7 @@ options:
|
|
|
|
- The datacenter location.
|
|
|
|
- The datacenter location.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: us/las
|
|
|
|
default: us/las
|
|
|
|
choices: [ "us/las", "us/lasdev", "de/fra", "de/fkb" ]
|
|
|
|
choices: [ "us/las", "de/fra", "de/fkb" ]
|
|
|
|
subscription_user:
|
|
|
|
subscription_user:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.
|
|
|
|
- The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.
|
|
|
@ -94,8 +94,7 @@ except ImportError:
|
|
|
|
|
|
|
|
|
|
|
|
LOCATIONS = ['us/las',
|
|
|
|
LOCATIONS = ['us/las',
|
|
|
|
'de/fra',
|
|
|
|
'de/fra',
|
|
|
|
'de/fkb',
|
|
|
|
'de/fkb']
|
|
|
|
'us/lasdev']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uuid_match = re.compile(
|
|
|
|
uuid_match = re.compile(
|
|
|
|
'[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}', re.I)
|
|
|
|
'[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}', re.I)
|
|
|
@ -206,7 +205,7 @@ def main():
|
|
|
|
argument_spec=dict(
|
|
|
|
argument_spec=dict(
|
|
|
|
name=dict(),
|
|
|
|
name=dict(),
|
|
|
|
description=dict(),
|
|
|
|
description=dict(),
|
|
|
|
location=dict(choices=LOCATIONS, default='us/lasdev'),
|
|
|
|
location=dict(choices=LOCATIONS, default='us/las'),
|
|
|
|
subscription_user=dict(),
|
|
|
|
subscription_user=dict(),
|
|
|
|
subscription_password=dict(),
|
|
|
|
subscription_password=dict(),
|
|
|
|
wait=dict(type='bool', default=True),
|
|
|
|
wait=dict(type='bool', default=True),
|
|
|
@ -256,4 +255,4 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
|
|
|
|
|
|
|
|
main()
|
|
|
|
main()
|
|
|
|