Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
40b82a33
Commit
40b82a33
authored
Mar 11, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5916 from tidzo/issue4992
Fix for #4992 - Add userdata to cloud/nova_compute
parents
cd3fcd84
674969a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
library/cloud/nova_compute
+9
-1
No files found.
library/cloud/nova_compute
View file @
40b82a33
...
...
@@ -107,6 +107,11 @@ options:
- The amount of time the module should wait for the VM to get into active state
required: false
default: 180
user_data:
description:
- Opaque blob of data which is made available to the instance
required: false
default: None
requirements: ["novaclient"]
'''
...
...
@@ -157,6 +162,8 @@ def _create_server(module, nova):
'meta'
:
module
.
params
[
'meta'
],
'key_name'
:
module
.
params
[
'key_name'
],
'security_groups'
:
module
.
params
[
'security_groups'
]
.
split
(
','
),
#userdata is unhyphenated in novaclient, but hyphenated here for consistency with the ec2 module:
'userdata'
:
module
.
params
[
'user_data'
],
}
if
not
module
.
params
[
'key_name'
]:
del
bootkwargs
[
'key_name'
]
...
...
@@ -232,7 +239,8 @@ def main():
meta
=
dict
(
default
=
None
),
wait
=
dict
(
default
=
'yes'
,
choices
=
[
'yes'
,
'no'
]),
wait_for
=
dict
(
default
=
180
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'absent'
,
'present'
])
state
=
dict
(
default
=
'present'
,
choices
=
[
'absent'
,
'present'
]),
user_data
=
dict
(
default
=
None
)
),
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment