标签:模板 without oca min 1.9 x86 下载 can beautiful
可以用自带的模板生成一个实例,实例包含一些软件,比如WordPress博客系统等
[root@armstrong ~(keystone_demo)]# openstack stack create -t http://git.openstack.org/cgit/openstack/heat-templates/plain/hot/F20/WordPress_Native.yaml --parameter key_name=demo --parameter image_id=test_armstrong --parameter instance_type=m1.small teststack1 +---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | id | 57a009a6-9422-41b6-9d5b-8b2d3c35c25b | | stack_name | teststack1 | | description | Heat WordPress template to support F20, using only Heat OpenStack-native resource types, and without the requirement for heat-cfntools in the image. WordPress is web software you can use to create a beautiful website or blog. This template installs a single-instance WordPress deployment using a local MySQL database to store the data. | | | | | creation_time | 2018-06-13T10:03:23Z | | updated_time | None | | stack_status | CREATE_IN_PROGRESS | | stack_status_reason | Stack CREATE started | +---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ [root@armstrong ~(keystone_demo)]# openstack stack list +--------------------------------------+------------+-----------------+----------------------+--------------+ | ID | Stack Name | Stack Status | Creation Time | Updated Time | +--------------------------------------+------------+-----------------+----------------------+--------------+ | 57a009a6-9422-41b6-9d5b-8b2d3c35c25b | teststack1 | CREATE_COMPLETE | 2018-06-13T10:03:23Z | None | | e8a970a9-e45a-4c62-bcb2-229c27da768d | teststack | CREATE_COMPLETE | 2018-06-13T09:37:23Z | None | +--------------------------------------+------------+-----------------+----------------------+--------------+ [root@armstrong ~(keystone_demo)]# openstack stack event list teststack1 2018-06-13 10:03:24Z [teststack1]: CREATE_IN_PROGRESS Stack CREATE started 2018-06-13 10:03:24Z [teststack1.wordpress_instance]: CREATE_IN_PROGRESS state changed 2018-06-13 10:03:40Z [teststack1.wordpress_instance]: CREATE_COMPLETE state changed 2018-06-13 10:03:40Z [teststack1]: CREATE_COMPLETE Stack CREATE completed successfully [root@armstrong ~(keystone_demo)]# openstack stack show teststack1 +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | id | 57a009a6-9422-41b6-9d5b-8b2d3c35c25b | | stack_name | teststack1 | | description | Heat WordPress template to support F20, using only Heat OpenStack-native resource types, and without the requirement for heat-cfntools in the image. WordPress is web software you can use to create a beautiful website or blog. This template installs a single-instance WordPress deployment using a local MySQL database to store the data. | | | | | creation_time | 2018-06-13T10:03:23Z | | updated_time | None | | stack_status | CREATE_COMPLETE | | stack_status_reason | Stack CREATE completed successfully | | parameters | OS::project_id: 5a55ee4fa9474c31a372e3dc8a951cf6 | | | OS::stack_id: 57a009a6-9422-41b6-9d5b-8b2d3c35c25b | | | OS::stack_name: teststack1 | | | db_name: wordpress | | | db_password: ‘******‘ | | | db_root_password: ‘******‘ | | | db_username: ‘******‘ | | | image_id: test_armstrong | | | instance_type: m1.small | | | key_name: demo | | | | | outputs | - description: URL for Wordpress wiki | | | output_key: WebsiteURL | | | output_value: http://10.0.0.5/wordpress | | | | | links | - href: http://192.168.122.209:8004/v1/5a55ee4fa9474c31a372e3dc8a951cf6/stacks/teststack1/57a009a6-9422-41b6-9d5b-8b2d3c35c25b | | | rel: self | | | | | parent | None | | disable_rollback | True | | deletion_time | None | | stack_user_project_id | 65ccf3f9d7974cdd9f9ad8feeda03b4d | | capabilities | [] | | notification_topics | [] | | stack_owner | None | | timeout_mins | None | | tags | None | +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ [root@armstrong ~(keystone_demo)]# openstack server list +--------------------------------------+--------------------------------------------+--------+------------------+----------------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------+--------+------------------+----------------+----------+ | 225cfd69-7cd0-49bd-9871-344b4cbb8f84 | teststack1-wordpress_instance-wbgmozqpqsir | ACTIVE | private=10.0.0.5 | test_armstrong | m1.small | +--------------------------------------+--------------------------------------------+--------+------------------+----------------+----------+ [root@armstrong ~(keystone_demo)]# openstack console log show 225cfd69-7cd0-49bd-9871-344b4cbb8f84 ......... ......... CentOS Linux 7 (Core) Kernel 3.10.0-123.el7.x86_64 on an x86_64 teststack1-wordpress-instance-wbgmozqpqsir login: [ 148.261322] cloud-init[785]: Cloud-init v. 0.7.9 running ‘modules:config‘ at Wed, 13 Jun 2018 10:06:14 +0000. Up 145.93 seconds. [ 159.042384] cloud-init[908]: Cloud-init v. 0.7.9 running ‘modules:final‘ at Wed, 13 Jun 2018 10:06:25 +0000. Up 156.51 seconds. [ 163.427916] cloud-init[908]: Provision began: 2018-06-13 18:06:31.929803 [ 163.433730] cloud-init[908]: /var/lib/heat-cfntools/cfn-userdata 实际上虚机未能联网,故没有下载WordPress和MariaDB组件
标签:模板 without oca min 1.9 x86 下载 can beautiful
原文地址:https://www.cnblogs.com/gushiren/p/9511659.html