Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a README describing briefly how to use the jail role
Unsure whether this should go in the docs or the directory of the role. I opted for the latter thinking if someone wanted to learn how to use the role, they would be more likely to look in the role's directory.
- Loading branch information
Showing
2 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Jail Role | ||
========= | ||
|
||
The jail role requires four arguments to be used. | ||
|
||
``name`` | ||
The name to use for the jail. This is often the same as the hostname. | ||
|
||
``hostname`` | ||
The hostname of the jail. | ||
|
||
``jid`` | ||
The jail ID. This must be unique on the host. | ||
|
||
``ip_address`` | ||
A list of interface and IP address pairs. Each address in the list should be of the form `interface|ip`. | ||
|
||
|
||
Example playbook | ||
---------------- | ||
|
||
:: | ||
|
||
--- | ||
- name: Jail test | ||
hosts: servicehosts | ||
roles: | ||
- role: jail | ||
name: jailtest.buildbot.net | ||
jid: 1 | ||
hostname: jailtest.buildbot.net | ||
ip_address: ['vtnet0|192.168.8.49'] |