cookbook 'devstack', '~> 1.1.0'
devstack (4) Versions 1.1.0 Follow0
Installs/Configures devstack
cookbook 'devstack', '~> 1.1.0', :supermarket
knife supermarket install devstack
knife supermarket download devstack
devstack cookbook
A cookbook to install devstack
Requirements
Cookbooks
Operating Systems
- Centos 7
- Ubuntu 14.04
Attributes
devstack::default
Key | Type | Description | Default |
---|---|---|---|
['devstack']['host-ip'] |
String | The host/ip to bind the stack to | 198.101.10.10 |
['devstack']['database-password'] |
String | The password for the DevStack database | ostackdemo |
['devstack']['rabbit-password'] |
String | The password for tde rabbit service | ostackdemo |
['devstack']['service-token'] |
String | The token for the DevStack service user | token |
['devstack']['service-password'] |
String | The password for the DevStack service user | ostackdemo |
['devstack']['admin-password'] |
String | The password for the DevStack admin user | ostackdemo |
['devstack']['dest'] |
String | The directory to install DevStack | /opt/stack |
['devstack']['pip-timeout'] |
Integer | The default time out for pip | 1000 |
Usage
Generic
Just include devstack
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[devstack]" ] }
Local Testing
There is also test-kitchen support for this cookbook. You can run:
$ chef exec kitchen verify
And it'll build it via vagrant on your local machine. There are serverspec tests also attached to verify devstack
is built correctly. You'll notice that it stops outputting at Recipe: devstack::stack
, it's running the stack.sh
behind the scenes,
it averages 30ish mins on my MacBook Pro.
You can login to the devstack instance via:
$ chef exec kitchen login <version you converged> vagrant@<machine_you_converged> $ cd /opt/stack/devstack/ vagrant@<machine_you_converged>:/opt/stack/devstack/ $ source openrc vagrant@<machine_you_converged>:/opt/stack/devstack/ $ nova list vagrant@<machine_you_converged>:/opt/stack/devstack/ $ nova boot test --image cirros-0.3.4-x86_64-uec --flavor 1
If you haven't changed any variables and usernames/passwords, you can go to http://localhost:8080 and use demo/devstack
and see
the dashboard.
TODO
NOTE: Not in order of priority.
- travis testing
- Rakefile and rake commands
- chefspec for the different resources
- more serverspec tests
- neutron support
- multi-node lab support
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Apache 2
Author: Cameron Lopez
Author: JJ Asghar (jj@chef.io)
Dependent cookbooks
apt >= 0.0.0 |
git >= 0.0.0 |
sudo >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
CHANGELOG for devstack
This file is used to list changes made in each version of devstack.
0.1.0:
- Initial release of devstack
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
1.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC009: Resource attribute not recognised: devstack/recipes/user.rb:20
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC009: Resource attribute not recognised: devstack/recipes/user.rb:20
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.1.0 passed this metric
Testing File Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number