Added explicit loops for data bag creation.
Change-Id: I22c7c87cae850ff0bbd40fb51cd62fcd239aba26
This commit is contained in:
parent
569f4af706
commit
ddbbdf82c6
24
README.md
24
README.md
|
@ -36,6 +36,12 @@ user_passwords
|
|||
- admin
|
||||
- guest
|
||||
|
||||
```bash
|
||||
for item in admin guest ; do
|
||||
knife data bag create user_passw $p --secret-file ~/.chef/openstack_data_bag_secret;
|
||||
done
|
||||
```
|
||||
|
||||
db_passwords
|
||||
ITEM example : {"id" : "nova", "nova" : "mypass"}
|
||||
|
||||
|
@ -49,6 +55,12 @@ db_passwords
|
|||
- heat
|
||||
- dash
|
||||
|
||||
```bash
|
||||
for item in nova horizon keystone glance ceilmeter neutron cinder heat dash ; do
|
||||
knife data bag create db_passwords $p --secret-file ~/.chef/openstack_data_bag_secret;
|
||||
done
|
||||
```
|
||||
|
||||
service_passwords
|
||||
ITEM example : {"id" : "openstack-image", "openstack-image" : "mypass"}
|
||||
|
||||
|
@ -59,12 +71,24 @@ service_passwords
|
|||
- openstack-network
|
||||
- rbd
|
||||
|
||||
```bash
|
||||
for item in openstack-image openstack-compute openstack-block-storage openstack-orchestration openstack-network rbd ; do
|
||||
knife data bag create service_passwords $p --secret-file ~/.chef/openstack_data_bag_secret;
|
||||
done
|
||||
```
|
||||
|
||||
secrets
|
||||
ITEM example : {"id" : "openstack_identity_bootstrap_token", "openstack_identity_bootstrap_token" : "mytoken"}
|
||||
|
||||
- openstack_identity_bootstrap_token
|
||||
- neutron_metadata_secret
|
||||
|
||||
```bash
|
||||
for item in openstack_identity_bootstrap_token neutron_metadata_secret ; do
|
||||
knife data bag create secrets $p --secret-file ~/.chef/openstack_data_bag_secret;
|
||||
done
|
||||
```
|
||||
|
||||
# Cookbooks #
|
||||
|
||||
The cookbooks have been designed and written in such a way that they can be used to deploy individual service components on _any_ of the nodes in the infrastructure; in short they can be used for single node 'all-in-one' installs (for testing), right up to multi/many node production installs. In order to achieve this flexibility, they are configured by attributes which may be used to override search. Chef 11 or later is currently required. Ruby 1.9.x is considered the minimum supported version of Ruby as well. Most users of this repository test with the full-stack Chef 11 client and a Chef server (Chef Solo is not explicity supported).
|
||||
|
|
Loading…
Reference in New Issue