This shows you the differences between two versions of the page.
juju-openstack [2014/04/24 05:53] gsamfira |
juju-openstack [2014/04/24 05:53] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Set up environment for Openstack ====== | ||
- | |||
- | {{: | ||
- | |||
- | * Upload images to glance. Names must be exactly as the " | ||
- | |||
- | glance image-create --name win2012r2 --is-public True --disk-format qcow2 --container-format bare --file ~/ | ||
- | |||
- | * Get ubuntu images from: | ||
- | |||
- | http:// | ||
- | |||
- | |||
- | * Edit: | ||
- | |||
- | ~/ | ||
- | |||
- | |||
- | * and add: | ||
- | |||
- | openstack: | ||
- | type: openstack | ||
- | # Specifies whether the use of a floating IP address is required to give the nodes | ||
- | # a public IP address. Some installations assign public IP addresses by default without | ||
- | # requiring a floating IP address. | ||
- | use-floating-ip: | ||
- | admin-secret: | ||
- | # Globally unique swift bucket name | ||
- | control-bucket: | ||
- | public-bucket-uri: | ||
- | # If set, tools-url specifies from where tools are fetched. | ||
- | # tools-url: | ||
- | # Usually set via the env variable OS_AUTH_URL, | ||
- | # auth-url: https:// | ||
- | # override if your workstation is running a different series to which you are deploying | ||
- | default-series: | ||
- | # The following are used for userpass authentication (the default) | ||
- | auth-mode: userpass | ||
- | # Usually set via the env variable OS_USERNAME, | ||
- | username: admin | ||
- | # Usually set via the env variable OS_PASSWORD, | ||
- | password: admin | ||
- | # Usually set via the env variable OS_TENANT_NAME, | ||
- | # tenant-name: | ||
- | # Usually set via the env variable OS_REGION_NAME, | ||
- | region: RegionOne | ||
- | network: private | ||
- | |||
- | |||
- | * sync tools to Openstack: | ||
- | |||
- | glance image-list # we need the image ID for each " | ||
- | juju-metadata generate-image -e openstack -i 01225b3c-7249-4e1e-baef-aac122b3d9f8 -s win2012r2 # image ID and serie name | ||
- | #you should get two files: com.ubuntu.cloud: | ||
- | juju sync-tools -e openstack --source=/ | ||
- | # juju-09c98b2249a0e5021afaa076916c112d is the bucket name from ~/ | ||
- | swift upload juju-09c98b2249a0e5021afaa076916c112d/ | ||
- | juju bootstrap -e openstack --debug | ||
- | |||