Skip to content

Commit 543ba73

Browse files
default is_public to true, typos, better readme
1 parent cad0ce9 commit 543ba73

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

roles/os_flavors/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ may contain 'ephemeral', 'flavorid', 'rxtx_factor' and 'swap' items.
3232
Optionally, the dict may also contain an item 'extra_specs', which is a dict of
3333
metadata to attach to the flavor object.
3434

35-
`is_public` is a mandatory parameter when mapping flavor to project. Non public
36-
flavor can't be mapped. However there is possibility to create flavor which
35+
`is_public` default is `true`. It is a mandatory parameter when mapping flavor
36+
to project, and it have to be set to `false` in that case. Non public
37+
flavor can't be mapped. However there is possibility to create flavor which
3738
is private and not mapped to any project. Only 'true' and 'false' are
3839
allowed here.
3940

4041
`project` list of project to which flavor should be mapped. In other
4142
words: this flavor will be visible and usable only in said project. It is
42-
a dict, withpossible one element.
43+
a dict, with possible one element.
4344

4445
Dependencies
4546
------------
@@ -88,7 +89,7 @@ The following playbook will allow uasge of `flavor-1` only in project `projectA`
8889
auth_url: <keystone auth URL>
8990
os_flavors:
9091
- name: flavor-1
91-
state: private
92+
is_public: false
9293
project: "projectA"
9394

9495
Author Information

roles/os_flavors/tasks/flavors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ephemeral: "{{ item.ephemeral | default(omit) }}"
1313
swap: "{{ item.swap | default(omit) }}"
1414
rxtx_factor: "{{ item.rxtx_factor | default(omit) }}"
15-
is_public: "{{ item.is_public | default(omit) }}"
15+
is_public: "{{ item.is_public | default('true') }}"
1616
flavorid: "{{ item.flavorid | default(omit) }}"
1717
extra_specs: "{{ item.extra_specs | default(omit) }}"
1818
state: "{{ item.state | default('present') }}"

0 commit comments

Comments
 (0)