-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminating prereq tasks for OSP roles (#604)
Co-authored-by: Paul Barfuss <[email protected]>
- Loading branch information
1 parent
cd1fd51
commit 2a729b2
Showing
11 changed files
with
120 additions
and
45 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
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,57 @@ | ||
Role Name | ||
========= | ||
|
||
This role allow users to add or remove a images in OpenStack | ||
|
||
Requirements | ||
------------ | ||
|
||
1. A valid OpenStack RC file, with the proper access rights to an OpenStack tenant, needs to be sourced before using this role. | ||
1. The `openstack` python shade packages to allow for interactions with the platform. | ||
|
||
|
||
Role Variables | ||
-------------- | ||
|
||
See `Example Inventory` below for more specific details. At a high level, the following variables need to be defined: | ||
|
||
- `osp_images`: A list of images to add | ||
|
||
Dependencies | ||
------------ | ||
|
||
None | ||
|
||
|
||
Example Playbook | ||
---------------- | ||
|
||
``` | ||
- hosts: servers | ||
roles: | ||
- role: admin-image | ||
``` | ||
|
||
**Note:** Make sure to source the OpenStack RC file (with proper access rights) before running this playbook/role. | ||
|
||
Example Inventory | ||
---------------- | ||
|
||
``` | ||
osp_images: | ||
- filename: "/the/path/to/my/image.qcow2" | ||
disk_format: qcow2 | ||
is_public: yes | ||
name: my-image | ||
``` | ||
|
||
|
||
License | ||
------- | ||
|
||
Apache License 2.0 | ||
|
||
Author Information | ||
------------------ | ||
|
||
Red Hat Community of Practice & staff of the Red Hat Open Innovation Labs. |
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
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
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
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,63 @@ | ||
Role Name | ||
========= | ||
|
||
This role allow users to add nova flavors to OpenStack. | ||
|
||
Requirements | ||
------------ | ||
|
||
2 Requirements: | ||
|
||
1. A valid OpenStack RC file, with the proper access rights to an OpenStack tenant, needs to be sourced before using this role. | ||
1. The `openstack` binary, compatible with the target OpenStack environment, is accessible part of your path. | ||
|
||
|
||
Role Variables | ||
-------------- | ||
|
||
See `Example Inventory` below for more specific details. | ||
|
||
The following inventory variable is required: | ||
- `osp_custom_flavors`: A list of flavors to manage | ||
|
||
|
||
Dependencies | ||
------------ | ||
|
||
None | ||
|
||
|
||
Example Playbook | ||
---------------- | ||
|
||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: | ||
|
||
``` | ||
- hosts: servers | ||
roles: | ||
- role: admin-nova-flavor | ||
``` | ||
|
||
**Note:** Make sure to source the OpenStack RC file (with proper access rights) before running this playbook/role. | ||
|
||
Example Inventory | ||
---------------- | ||
|
||
``` | ||
osp_custom_flavors: | ||
- name: "m1.tiny" | ||
ram: 512 | ||
disk: 10 | ||
vcpus: 1 | ||
``` | ||
|
||
|
||
License | ||
------- | ||
|
||
Apache License 2.0 | ||
|
||
Author Information | ||
------------------ | ||
|
||
Red Hat Community of Practice & staff of the Red Hat Open Innovation Labs. |
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
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
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
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
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