构建、部署和配置storpool jujuju charms
storpool-charms-manage的Python项目详细描述
storpool charms manage-部署storpool openstack集成jujujujuju charms
=================================================================
使用“storpool charms manage”包和“spcharms管理”工具
用于部署storpool集成jujujujujujujujujuju charms
openstack charms bundle.
部署预构建的charms
——更改为
新创建的“storpool charms-<;yyyymmdd>;-<;series>;`目录并运行:
spcharms\u manage deploy
请确保使用已正确设置为
访问juju群集的shell执行此操作;最简单的测试方法是预先运行
“jujuju status”命令并检查它显示正确的
机器、应用程序和单元。如果storpool charms以前已安装在juju集群上,则需要先执行`./storpool-charms.py undeploy`.
在将charms部署到jujuju集群后,仍需要配置它们;有关
charms配置的信息,请[联系storpool][support]。
生成charms
----
要获取最新版本的storpool charms,请执行以下步骤。
1。签出当前版本的字符:
`spcharms\u manage.py check out`
>2。构建charms(确保安装了“charm tools”ubuntu包):
`spcharms\u manage.py build`
>3。部署新构建的字符:
`spcharms\u manage.py deploy`
>4。稍后,从github存储库获取最新的storpool更新:
`spcharms\u manage.py pull&;spcharms_manage.py build`
即使它们以不同的方式部署,也要考虑到juju集群中openstack charms的当前部署。“storpool.charm s.manage.jujuju”模块的
“get_storpool_config_data()”和“get_charm_config_data()”函数将
为字典提供值,这些值稍后可能会合并到
文本或yaml配置片段中:
from storpool.charms.manage import config as sconfig
from storpool.charms.manage import juju作为sjuju
cfg=sconfig.config(space=-storpool,repo=-username:password')
status=sju.get_status(cfg)
对于主机名,spcfg.items()中的数据:
print('host{name}:storpool id{oid}'
.format(name=hostname,oid=data['sp_urid'])
storpool.charms.manage模块是完整类型的。
请与我们联系
----
请随时[与storpool联系][支持]以获取任何附加信息或
以获得任何问题的帮助。
版权和许可证
-
版权(C)2018 storpool
所有权利保留。
根据apache许可证2.0版(以下简称“许可证”);
除非符合许可证,否则您不得使用此文件。
除非适用法律要求或书面同意,否则您可以在http://www.apache.org/licenses/license-2.0
软件
发行版许可下的UTE以“原样”的方式分发,
无任何明示或暗示的保证或条件。
请参阅许可证,以了解管辖许可的特定语言以及许可下的限制。
[发布]:https://github.com/storpool/storpool charms/releases
[支持]:mailto:support@storpool.com
=================================================================
使用“storpool charms manage”包和“spcharms管理”工具
用于部署storpool集成jujujujujujujujujuju charms
openstack charms bundle.
部署预构建的charms
——更改为
新创建的“storpool charms-<;yyyymmdd>;-<;series>;`目录并运行:
spcharms\u manage deploy
请确保使用已正确设置为
访问juju群集的shell执行此操作;最简单的测试方法是预先运行
“jujuju status”命令并检查它显示正确的
机器、应用程序和单元。如果storpool charms以前已安装在juju集群上,则需要先执行`./storpool-charms.py undeploy`.
在将charms部署到jujuju集群后,仍需要配置它们;有关
charms配置的信息,请[联系storpool][support]。
生成charms
----
要获取最新版本的storpool charms,请执行以下步骤。
1。签出当前版本的字符:
`spcharms\u manage.py check out`
>2。构建charms(确保安装了“charm tools”ubuntu包):
`spcharms\u manage.py build`
>3。部署新构建的字符:
`spcharms\u manage.py deploy`
>4。稍后,从github存储库获取最新的storpool更新:
`spcharms\u manage.py pull&;spcharms_manage.py build`
即使它们以不同的方式部署,也要考虑到juju集群中openstack charms的当前部署。“storpool.charm s.manage.jujuju”模块的
“get_storpool_config_data()”和“get_charm_config_data()”函数将
为字典提供值,这些值稍后可能会合并到
文本或yaml配置片段中:
from storpool.charms.manage import config as sconfig
from storpool.charms.manage import juju作为sjuju
cfg=sconfig.config(space=-storpool,repo=-username:password')
status=sju.get_status(cfg)
print('host{name}:storpool id{oid}'
.format(name=hostname,oid=data['sp_urid'])
storpool.charms.manage模块是完整类型的。
请与我们联系
----
请随时[与storpool联系][支持]以获取任何附加信息或
以获得任何问题的帮助。
版权和许可证
-
版权(C)2018 storpool
所有权利保留。
根据apache许可证2.0版(以下简称“许可证”);
除非符合许可证,否则您不得使用此文件。
除非适用法律要求或书面同意,否则您可以在http://www.apache.org/licenses/license-2.0
软件
发行版许可下的UTE以“原样”的方式分发,
无任何明示或暗示的保证或条件。
请参阅许可证,以了解管辖许可的特定语言以及许可下的限制。
[发布]:https://github.com/storpool/storpool charms/releases
[支持]:mailto:support@storpool.com