cloud:cli
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
cloud:cli [2020/05/14 10:13] – [Internet Addresses] chudler | cloud:cli [2021/04/15 16:45] – chudler | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== CONFIGURATION ===== | ===== CONFIGURATION ===== | ||
- | Use a clouds.yaml file to direct your client. | + | Use the '' |
- | '' | + | |
+ | === Generate New Credentials === | ||
+ | |||
+ | Instead of taking risks and storing your University credentials in the file, use the [[ https:// | ||
+ | |||
+ | See the [[ cloud: | ||
+ | |||
+ | ==Cloud Name== | ||
+ | For convenience, | ||
< | < | ||
- | clouds: | + | export OS_CLOUD=openstack |
- | | + | |
- | auth: | + | |
- | auth_url: https:// | + | |
- | username: " | + | |
- | password: " | + | |
- | project_id: YOUR PROJECT UUID | + | |
- | project_name: | + | |
- | user_domain_name: | + | |
- | region_name: | + | |
- | interface: " | + | |
- | identity_api_version: | + | |
</ | </ | ||
- | The [[ cloud: | ||
- | |||
- | You can also download a customized version of this data after you authenticate to the Web Interface (click API Access from the menu and then the button " | ||
====== USAGE ====== | ====== USAGE ====== | ||
Line 35: | Line 29: | ||
</ | </ | ||
- | take note and always use help for guidance < | + | always use help for guidance < |
For example< | For example< | ||
Line 49: | Line 43: | ||
====Images==== | ====Images==== | ||
- | Images are prebuilt | + | Images are prebuilt |
- | There are images that Techstaff provides, some of which are restricted-use. We can build images for you or you can build and upload your own. Our images are generic, bare bones, cloud enabled popular operating systems that are a firm foundation for you to customize from. They are often in RAW format, not qcow2, for performance reasons. | + | There are images that Techstaff provides, some of which are restricted-use. We can build images for you or you can build and upload your own. Our images are generic, bare bones, cloud enabled, popular operating systems, that are a firm foundation for you to customize from. They are often in RAW format, not qcow2, for performance reasons. |
+ | |||
+ | Beware of images that are used internally to provide cloud services. You should not usually launch these directly. You do have access to them for the use of a service, and are welcome to customize for advanced usage. | ||
< | < | ||
Line 58: | Line 54: | ||
Openstack can hold a public key in its db, and insert it into instances when told. This is optional (your author does not use this capability) | Openstack can hold a public key in its db, and insert it into instances when told. This is optional (your author does not use this capability) | ||
- | < | + | < |
==== Flavors ==== | ==== Flavors ==== | ||
A flavor is a pre-chosen size for resources that make up an instance. It is a mandatory parameter when creating instances. Look at the available flavors, which your admins have created.\\ | A flavor is a pre-chosen size for resources that make up an instance. It is a mandatory parameter when creating instances. Look at the available flavors, which your admins have created.\\ | ||
- | Servers can grow after creation. For example, the disk-size attribute merely expresses the **minimum** size of the boot volume, and most cloud-enabled operating systems expand the root volume on first-boot. In spite of this, relying on dynamically resizing instances increases risk, and you should choose a size that is close to what you expect to use. | + | |
+ | Servers can grow after creation. For example, the '' | ||
< | < | ||
Line 82: | Line 79: | ||
You now have all of the prerequisites for launching a virtual computer. These are the prerequisites: | You now have all of the prerequisites for launching a virtual computer. These are the prerequisites: | ||
- | * Properly prepared Network -- or use the one called | + | * Properly prepared Network -- or use the one called |
* Flavor Name | * Flavor Name | ||
* Image Name | * Image Name | ||
Line 149: | Line 146: | ||
</ | </ | ||
- | In actual fact, all of the servers you create will be in the same security group. | + | In actual fact, all of the servers you create will be in the same security group, so you will not need to " |
==== Internet Addresses ==== | ==== Internet Addresses ==== | ||
- | If the server' | + | If the server' |
As in [[ cloud: | As in [[ cloud: | ||
Line 181: | Line 178: | ||
This section added a floating ip address directly to the server. You must realize that a router was needed on the subnet for that to happen. On default subnets, your cloud admin has pre-created suitable routers. The command will fail if you are creating your own subnets and networks without taking similar steps. | This section added a floating ip address directly to the server. You must realize that a router was needed on the subnet for that to happen. On default subnets, your cloud admin has pre-created suitable routers. The command will fail if you are creating your own subnets and networks without taking similar steps. | ||
+ | Mixing and matching these techniques will create hilarious disasters. | ||
==== A WORD ABOUT CLOUD INIT ==== | ==== A WORD ABOUT CLOUD INIT ==== | ||
- | Your author uses cloud init extensively and does not contemplate alternative. It is optional. | + | Your author uses cloud init extensively and does not contemplate alternative. It is optional. |
+ | < | ||
+ | # | ||
+ | network: | ||
+ | version: 2 | ||
+ | ethernets: | ||
+ | net0: | ||
+ | match: | ||
+ | name: en* | ||
+ | dhcp4: true | ||
+ | preserve_hostname: | ||
+ | users: | ||
+ | - name: ubuntu | ||
+ | ssh-authorized-keys: | ||
+ | - CONTENTS OF YOUR ssh key .pub file | ||
+ | timezone: America/ | ||
+ | datasource: | ||
+ | | ||
+ | metadata_urls: | ||
+ | max_wait: -1 | ||
+ | timeout: 10 | ||
+ | retries: 5 | ||
+ | apply_network_config: | ||
+ | manage_etc_hosts: | ||
+ | manual_cache_clean: | ||
+ | </ |
/var/lib/dokuwiki/data/pages/cloud/cli.txt · Last modified: 2021/04/15 16:53 by chudler