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
f9a14f0d
Commit
f9a14f0d
authored
May 29, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup fetch doc formatting.
parent
267b29ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
24 deletions
+30
-24
Makefile
+1
-1
library/cloud/quantum_floating_ip_associate
+15
-14
library/files/fetch
+14
-9
No files found.
Makefile
View file @
f9a14f0d
...
...
@@ -177,7 +177,7 @@ deb: debian
# for arch or gentoo, read instructions in the appropriate 'packaging' subdirectory directory
modulepages
:
PYTHONPATH
=
./lib
$(PYTHON)
hacking/module_formatter.py
-A
$(VERSION)
-t
man
-o
docs/man/man3/
--module-dir
=
library
--template-dir
=
hacking/templates
PYTHONPATH
=
./lib
$(PYTHON)
hacking/module_formatter.py
-A
$(VERSION)
-t
man
-o
docs/man/man3/
--module-dir
=
library
--template-dir
=
hacking/templates
--verbose
# because this requires Sphinx it is not run as part of every build, those building the RPM and so on can ignore this
...
...
library/cloud/quantum_floating_ip_associate
View file @
f9a14f0d
...
...
@@ -27,9 +27,9 @@ except ImportError:
DOCUMENTATION
=
'''
---
module: quantum_floating_ip_associate
short_description: Associate
/D
isassociate a particular floating ip with an instance
short_description: Associate
or d
isassociate a particular floating ip with an instance
description:
- Associates or disassociate
'
s a specific floating ip with a particular instance
- Associates or disassociates a specific floating ip with a particular instance
options:
login_username:
description:
...
...
@@ -38,46 +38,47 @@ options:
default: admin
login_password:
description:
-
P
assword of login user
-
p
assword of login user
required: true
default: True
login_tenant_name:
description:
-
T
he tenant name of the login user
-
t
he tenant name of the login user
required: true
default:
T
rue
default:
t
rue
auth_url:
description:
-
T
he keystone url for authentication
-
t
he keystone url for authentication
required: false
default: 'http://127.0.0.1:35357/v2.0/'
region_name:
description:
-
N
ame of the region
-
n
ame of the region
required: false
default: None
state:
description:
-
Indicat
e desired state of the resource
-
indicates th
e desired state of the resource
choices: ['present', 'absent']
default: present
instance_name:
description:
-
N
ame of the instance to which the public ip should be assigned
-
n
ame of the instance to which the public ip should be assigned
required: true
default: None
ip_address:
description:
-
F
loating ip that should be assigned to the instance
-
f
loating ip that should be assigned to the instance
required: true
default: None
examples:
- code: "quantum_floating_ip_associate: state=present login_username=admin login_password=admin login_tenant_name=admin
ip_address=1.1.1.1 instance_name=vm1"
description: "Associate a specific floating ip with an Instance"
requirements: ["quantumclient", "keystoneclient"]
'''
EXAMPLES
=
'''
# Associate a specific floating ip with an Instance
quantum_floating_ip_associate: state=present login_username=admin login_password=admin login_tenant_name=admin ip_address=1.1.1.1 instance_name=vm1
'''
def
_get_ksclient
(
module
,
kwargs
):
try
:
kclient
=
ksclient
.
Client
(
username
=
kwargs
.
get
(
'login_username'
),
...
...
library/
network
/fetch
→
library/
files
/fetch
View file @
f9a14f0d
...
...
@@ -41,15 +41,20 @@ options:
the destination. If dest ends with '/', it will use the basename of the source
file, similar to the copy module. Obvioiusly this is only handy if the filenames
are unqiue.
examples:
- code: "fetch: src=/var/log/messages dest=/home/logtree"
description: "Example from Ansible Playbooks"
- code: "fetch: src=/tmp/somefile dest="/tmp/beefcake-{{ ansible_hostname }}" flat=yes"
description: "Copies a file from remote machine and stores it at the absolute path /tmp/beefcake-{{ ansible_hostname }}"
- code: "fetch: src=/tmp/uniquefile dest="/tmp/special/" flat=yes"
description: "Copies a file from remote machine and stores it at the absolute path /tmp/special"
- code: "fetch: src=/tmp/uniquefile dest="special/" flat=yes"
description: "Copies a file from remote machine and stores it in special/uniquefile relative to the playbook"
requirements: []
author: Michael DeHaan
'''
EXAMPLES = '''
# Store file into /tmp/fetched/host.example.com/tmp/somefile
fetch: src=/tmp/somefile dest=/tmp/fetched
# Specifying a path directly
fetch: src=/tmp/somefile dest=/tmp/prefix-{{ ansible_hostname }} flat=yes
# Specifying a destination path
fetch: src=/tmp/uniquefile dest=/tmp/special/ flat=yes
# Storing in a path relative to the playbook
fetch: src=/tmp/uniquefile dest=special/prefix-{{ ansible_hostname }} flat=yes
'''
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