|
| 1 | +Title: Configuring for Rackspace |
| 2 | +TODO: Review again soon (created: March 2016) |
| 3 | + 'juju add-credential rackspace' should exist |
| 4 | + Need exhaustive list of conf/cred parameters to use |
| 5 | + Does 'juju show-cloud rackspace' replace 'juju help rackspace-provider'? Confirm these commands |
| 6 | + Confirm navigation.tpl contains controllers & models (see links in first paragraph) |
| 7 | + Explain the configuration parameters (like credentials parameters) |
| 8 | + Explain how to use auth-type 'access-key' |
| 9 | + |
| 10 | + |
| 11 | +# Configuring for Rackspace |
| 12 | + |
| 13 | +Here we gather the ingredients necessary for the creation of a *controller* for |
| 14 | +the Rackspace cloud provider (see [Controllers](./controllers.html)). If your |
| 15 | +objective is instead to create a Rackspace *model* please see [Defining a |
| 16 | +model](./models-defining.html). |
| 17 | + |
| 18 | + |
| 19 | +## Prerequisites |
| 20 | + |
| 21 | + - A Rackspace cloud account is required. See https://cart.rackspace.com/cloud . |
| 22 | + |
| 23 | + - The Juju client (the host running the below commands) will need the ability |
| 24 | + to contact the Rackspace infrastructure on TCP ports 22 and 17070. |
| 25 | + |
| 26 | + - An understanding of the [Getting started](./getting-started.html) page. |
| 27 | + |
| 28 | + |
| 29 | +## Credentials |
| 30 | + |
| 31 | +Values will need to be found for certain parameters: |
| 32 | + |
| 33 | +**`default-region`**<br/> |
| 34 | +Decide on the default Rackspace *region*. See |
| 35 | +[Rackspace regions](https://support.rackspace.com/how-to/about-regions/). |
| 36 | +or the output to `juju list-clouds`. |
| 37 | + |
| 38 | +**`auth-type`**<br/> |
| 39 | +This can be either 'access-key' or 'userpass'. Here, we'll use 'userpass'. |
| 40 | + |
| 41 | +**`username`**<br/> |
| 42 | +For the 'userpass' auth-type, this is the name used to log in to the |
| 43 | +[Rackspace cloud control panel](https://mycloud.rackspace.com). |
| 44 | + |
| 45 | +**`password`**<br/> |
| 46 | +For the 'userpass' auth-type, this is the password associated with the value of |
| 47 | +'username'. |
| 48 | + |
| 49 | +**`tenant-name`**<br/> |
| 50 | +This is the Rackspace account number. You can view it in the cloud control |
| 51 | +panel in the top-right corner (under your username). |
| 52 | + |
| 53 | +See `juju show-cloud rackspace`. |
| 54 | + |
| 55 | +### Add credentials |
| 56 | + |
| 57 | +Create a YAML file called, say, `credentials-rackspace.yaml` and provide the |
| 58 | +credential-related material. In this example, it would look like this: |
| 59 | + |
| 60 | +```yaml |
| 61 | + rackspace: |
| 62 | + default-credential: some_label |
| 63 | + default-region: DFW |
| 64 | + some_label: |
| 65 | + auth-type: userpass |
| 66 | + username: your_username |
| 67 | + password: your_password |
| 68 | + tenant-name: "123456" |
| 69 | +``` |
| 70 | +
|
| 71 | +Now add this to the system. At time of this writing, you must manually add the |
| 72 | +above block to the user-wide credentials file |
| 73 | +`~/.local/share/juju/credentials`. Put it under the 'credentials:' section. |
| 74 | +Therefore, if this is the sole block in that file, the entire file would appear |
| 75 | +as: |
| 76 | + |
| 77 | +```yaml |
| 78 | +credentials: |
| 79 | + rackspace: |
| 80 | + default-credential: some_label |
| 81 | + default-region: DFW |
| 82 | + some_label: |
| 83 | + auth-type: userpass |
| 84 | + username: your_username |
| 85 | + password: your_password |
| 86 | + tenant-name: "123456" |
| 87 | +``` |
| 88 | + |
| 89 | + |
| 90 | +## Configuration |
| 91 | + |
| 92 | +Create a YAML file called, say, `~/config-rackspace.yaml` and provide the |
| 93 | +configuration-related material. In this example, it would look like this: |
| 94 | + |
| 95 | +```yaml |
| 96 | +logging-config: "<root>=DEBUG" |
| 97 | +agent-metadata-url: https://streams.canonical.com/juju/tools |
| 98 | +image-metadata-url: http://0315ec36e423bb7dba4b-3eabf88619cf7b7e6fc262bcf48df10b.r19.cf1.rackcdn.com/images |
| 99 | +image-stream: "released" |
| 100 | +default-series: "trusty" |
| 101 | +``` |
| 102 | + |
| 103 | +!!! Note: A temporary URL provided by Rackspace has been used for |
| 104 | +'image-metadata-url' in the example configuration. This should not be needed in |
| 105 | +the long term. |
| 106 | + |
| 107 | + |
| 108 | +## Create controller |
| 109 | + |
| 110 | +Once the configuration and credentials information have been entered it is time |
| 111 | +to create the controller for Rackspace. See |
| 112 | +[Creating a controller](./controllers-creating.html). |
| 113 | + |
| 114 | +This will result in the controller being visible in the |
| 115 | +[Rackspace cloud control panel](https://mycloud.rackspace.com): |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | +## Additional notes |
| 121 | + |
| 122 | +See [General configuration options](https://jujucharms.com/docs/stable/config-general) |
| 123 | +for additional and advanced customization of your environment. |
0 commit comments