collective.hostout的插件,该插件引导一个为hostout部署做好准备的ubuntu主机

hostout.ubuntu的Python项目详细描述


Installing

ubuntu是collective.hostout的插件。hostout是一个zc.buildout 食谱。

首先你需要一个工作的buildout。google buildout+你的fav应用程序框架来寻找如何构建它。 我们将使用一个非常简单的方法,在构建中添加一个hostout,然后扩展 使用“extends”添加ubuntu插件 选项

>>> write('buildout.cfg',
... """
... [buildout]
... parts = helloworld host
...
... [helloworld]
... recipe = zc.recipe.egg:scripts
... eggs = zc.recipe.egg
... initialization = import sys
...   main=lambda: sys.stdout.write('all your hosts are below to us!!!')
... entry-points = helloworld=__main__:main
...
... [host]
... recipe = collective.hostout
... host = 127.0.0.1:10022
... extends = hostout.ubuntu
...
... """)
>>> print system('bin/buildout -N')
Installing helloworld.
Generated script '/sample-buildout/bin/helloworld'.
Installing host.
Generated script '/sample-buildout/bin/hostout'.

在部署期间,hostout将检查远程上是否有正在工作的构建 如果找不到主机,将执行ubuntu引导安装 本机软件包

>>> print system('bin/hostout host deploy')
    Hostout: Running command 'predeploy' from '/.../collective/hostout/supervisor/fabfile.py'
    Logging into the following hosts as :
        127.0.0.1
    [127.0.0.1] sudo: /var/lib/plone/host1/bin/supervisorctl shutdown || echo 'Failed to shutdown'
    ...
    Hostout: Running command 'postdeploy' from '/.../collective/hostout/supervisor/fabfile.py'
    ...
    [127.0.0.1] sudo: /var/lib/plone/host1/bin/supervisord
    ...
    [127.0.0.1] sudo: /var/lib/plone/host1/bin/supervisorctl status
    ...
    Hostout: Running command 'postdeploy' from '.../collective.hostout/collective/hostout/fabfile.py'
    ...

Credits

dylan jay(pretaweb dot com的软件)

Release History

1.0A3(2010-06-03) -fabfile入口点

1.0a2 (2010-05-28)

  • 已将setaccess和setowners移到collective.hostout中

1.0a1 (2010-02-13)

  • 已移出collective.hostout
  • 将其升级到Fabric 1.0和Python 2.6

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java检查url是否等于或是的子目录?   java为什么我在hasNextLine上出错,而在hasNext上却没有?   如果条件变为真,如何停止while循环读取文件的每一行?   java JAXB:当使用XML模式(.xsd)验证XML文件时,如果验证失败,我能知道是哪个XML标记导致了它吗?   java Hadoop Reduce输出文件从未为大数据创建过   java EJB3,查询返回了一个以上结果的JPA错误。getSingleResult()   绑定StringProperty时发生java多线程错误   java三元运算符和基元类型   java在结果集上迭代时的奇怪行为   java EJB工厂类   java Firebase数据库   java需要帮助使用正则表达式来提取标记中的数据   不使用StringBuffer的java反向字符串。反向   java AIR admob问题#3500:扩展上下文没有名为CacheInterstitual的方法   java为什么我要在Spring Boot应用程序上配置DB连接时出现这个异常?创建名为“dataSource”的bean时出错   来自用户特定文件的java Spring引导重写属性