当前位置: 首页>>代码示例>>Python>>正文


Python manifest.Template类代码示例

本文整理汇总了Python中fuel_test.manifest.Template的典型用法代码示例。如果您正苦于以下问题:Python Template类的具体用法?Python Template怎么用?Python Template使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Template类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: generate_manifests

 def generate_manifests(self):
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.minimal(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         swift=False,
         quantum=True)
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.compact(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         quantum=False, loopback=False, use_syslog=False)
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.compact(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         quantum=False)
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.full(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         proxies=self.nodes().proxies,
         quantum=True)
     Manifest().write_openstack_simple_manifest(
         remote=self.remote(),
         ci=self.ci(),
         controllers=self.nodes().controllers)
     Manifest().write_openstack_single_manifest(
         remote=self.remote(),
         ci=self.ci())
开发者ID:adanin,项目名称:fuel,代码行数:34,代码来源:cobbler_test_case.py

示例2: test_deploy_compact_wo_quantum_cinder_all_by_ipaddr

 def test_deploy_compact_wo_quantum_cinder_all_by_ipaddr(self):
     if ASTUTE_USE:
         config = Config().generate(
             template=Template.compact(),
             ci=self.ci(),
             nodes = self.nodes().controllers + self.nodes().computes,
             quantums=self.nodes().quantums,
             quantum=False,
             cinder=True,
             cinder_nodes=map(
                 lambda x: x.get_ip_address_by_network_name('internal'),
                 self.nodes().controllers
                 + self.nodes().computes
                 + self.nodes().storages),)
         self.deploy_by_astute(config)
     else:
         Manifest().generate_openstack_manifest(
             template=Template.compact(), ci=self.ci(),
             controllers=self.nodes().controllers,
             cinder=True,
             cinder_nodes=map(
                 lambda x: x.get_ip_address_by_network_name('internal'),
                 self.nodes().controllers
                 + self.nodes().computes
                 + self.nodes().storages),
             quantums=self.nodes().quantums,
             quantum=False,)
         self.deploy_compact(quantum_node=False)
开发者ID:akolinko,项目名称:fuel,代码行数:28,代码来源:test_compact.py

示例3: test_generate_full

 def test_generate_full(self):
     Manifest().generate_openstack_manifest(
         template=Template.full(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         swift=False, loopback=False, use_syslog=False,
         quantum=True)
开发者ID:Zipfer,项目名称:fuel,代码行数:7,代码来源:test_manifest.py

示例4: setUp

 def setUp(self):
     super(NovaSubClassesTestCase, self).setUp()
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.full(), ci=self.ci(),
         controllers=self.nodes().controllers,
         proxies=self.nodes().proxies,
         quantums=self.nodes().quantums,
         quantum=True)
开发者ID:adanin,项目名称:fuel,代码行数:9,代码来源:test_nova_subclasses.py

示例5: test_deploy_compact_quantum_standalone

 def test_deploy_compact_quantum_standalone(self):
     if ASTUTE_USE:
         config = Config().generate(
             template=Template.compact(),
             ci=self.ci(),
             nodes = self.nodes().controllers,
             quantums=self.nodes().quantums,
             quantum=True, quantum_netnode_on_cnt=False,
             cinder_nodes=['controller'])
         self.deploy_by_astute(config)
     else:
         Manifest().generate_openstack_manifest(
             template=Template.compact(), ci=self.ci(),
             controllers=self.nodes().controllers,
             quantums=self.nodes().quantums,
             quantum=True, quantum_netnode_on_cnt=False, ha_provider=False,
             cinder_nodes=['controller'])
         self.deploy_compact(quantum_node=True)
开发者ID:akolinko,项目名称:fuel,代码行数:18,代码来源:test_compact.py

示例6: test_deploy_compact_wo_quantum

 def test_deploy_compact_wo_quantum(self):
     if ASTUTE_USE:
         config = Config().generate(
             template=Template.compact(),
             ci=self.ci(),
             nodes = self.nodes().controllers,
             quantums=self.nodes().quantums,
             quantum=False,
             cinder_nodes=['controller'])
         self.deploy_by_astute(config)
     else:
         Manifest().generate_openstack_manifest(
             template=Template.compact(), ci=self.ci(),
             controllers=self.nodes().controllers,
             quantums=self.nodes().quantums,
             quantum=False,
             cinder_nodes=['controller'])
         self.deploy_compact(quantum_node=False)
开发者ID:akolinko,项目名称:fuel,代码行数:18,代码来源:test_compact.py

示例7: test_generate_full

 def test_generate_full(self):
     print Config().generate(
         ci=self.ci(),
         nodes=self.nodes().controllers,
         template=Template.full(),
         quantums=self.nodes().quantums,
         swift=False,
         loopback=False,
         use_syslog=False,
         quantum=True)
开发者ID:Zipfer,项目名称:fuel,代码行数:10,代码来源:test_config.py

示例8: test_deploy_compact_quantum_standalone

 def test_deploy_compact_quantum_standalone(self):
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.compact(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         quantum=True, quantum_netnode_on_cnt=False, ha_provider=False)
     self.deploy_compact(quantum_node=True)
     if CREATE_SNAPSHOTS:
         self.environment().snapshot('compact', force=True)
开发者ID:adanin,项目名称:fuel,代码行数:10,代码来源:test_compact.py

示例9: test_deploy_compact_wo_ha_provider

 def test_deploy_compact_wo_ha_provider(self):
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.compact(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         quantum=False, use_syslog=False, ha_provider=False)
     self.deploy_compact(quantum_node=False)
     if CREATE_SNAPSHOTS:
         self.environment().snapshot('compact_wo_ha_provider', force=True)
开发者ID:adanin,项目名称:fuel,代码行数:10,代码来源:test_compact.py

示例10: test_deploy_compact_wo_quantum_cinder_all

 def test_deploy_compact_wo_quantum_cinder_all(self):
     if ASTUTE_USE:
         config = Config().generate(
             template=Template.compact(),
             ci=self.ci(),
             nodes = self.nodes().controllers + self.nodes().computes,
             quantums=self.nodes().quantums,
             quantum=True,
             cinder=True,
             cinder_nodes=['all'])
         self.deploy_by_astute(config)
     else:
         manifest = Manifest().generate_openstack_manifest(
             template=Template.compact(), ci=self.ci(),
             controllers=self.nodes().controllers,
             cinder=True,
             cinder_nodes=['all'],
             quantums=self.nodes().quantums,
             quantum=False)
         self.deploy_compact(manifest=manifest, quantum_node=False)
开发者ID:Zipfer,项目名称:fuel,代码行数:20,代码来源:test_compact.py

示例11: deploy_one_by_one

 def deploy_one_by_one(self):
     manifest = Manifest().generate_openstack_manifest(
         template=Template.minimal(),
         ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         quantum=True)
     self.validate(self.nodes().controllers[:1], PUPPET_AGENT_COMMAND)
     self.validate(self.nodes().controllers[1:], PUPPET_AGENT_COMMAND)
     self.validate(self.nodes().controllers[:1], PUPPET_AGENT_COMMAND)
     self.validate(self.nodes().computes, PUPPET_AGENT_COMMAND)
开发者ID:nickchase,项目名称:fuel,代码行数:11,代码来源:test_minimal.py

示例12: prepare_astute

 def prepare_astute(self):
     config = Config().generate(
         template=Template.single(),
         ci=self.ci(),
         nodes=[self.ci().nodes().controllers[:1]],
         quantum=False
     )
     print "Generated config.yaml:", config
     config_path = "/root/config.yaml"
     write_config(self.remote(), config_path, str(config))
     self.remote().check_call("cobbler_system -f %s" % config_path)
     self.remote().check_stderr("openstack_system -c %s -o /etc/puppet/manifests/site.pp -a /root/astute.yaml" % config_path, True)
开发者ID:Zipfer,项目名称:fuel,代码行数:12,代码来源:test_single.py

示例13: prepare_only_site_pp

    def prepare_only_site_pp(self):
        manifest = Manifest().generate_openstack_manifest(
            template=Template.simple(),
            ci=self.ci(),
            controllers=self.nodes().controllers,
            use_syslog=True,
            quantum=True, quantums=self.nodes().controllers,
            ha=False, ha_provider='generic',
            cinder=True, cinder_nodes=['All'], swift=False
        )

        Manifest().write_manifest(remote=self.remote(), manifest=manifest)
开发者ID:nickchase,项目名称:fuel,代码行数:12,代码来源:test_simple.py

示例14: test_deploy_compact_wo_quantum_cinder_all

 def test_deploy_compact_wo_quantum_cinder_all(self): 
     Manifest().write_openstack_manifest( 
         remote=self.remote(), 
         template=Template.compact(), ci=self.ci(), 
         controllers=self.nodes().controllers, 
         cinder=True,
         cinder_nodes=['all'],
         quantums=self.nodes().quantums, 
         quantum=False) 
     self.deploy_compact(quantum_node=False) 
     if CREATE_SNAPSHOTS: 
         self.environment().snapshot('compact_wo_quantum_cinderall', force=True) 
开发者ID:adanin,项目名称:fuel,代码行数:12,代码来源:test_compact.py

示例15: test_orchestrating_compact

 def test_orchestrating_compact(self):
     Manifest().write_openstack_manifest(
         remote=self.remote(),
         template=Template.compact(), ci=self.ci(),
         controllers=self.nodes().controllers,
         quantums=self.nodes().quantums,
         quantum=True)
     config_text = Astute.config('compact', controllers=self.nodes().controllers,
         computes=self.nodes().computes, quantums=self.nodes().quantums)
     remote = self.nodes().stomps[0].remote('public', login='root',
         password='r00tme')
     write_config(remote, '/tmp/nodes.yaml', config_text)
     remote.check_stderr('astute_run -v -f /tmp/nodes.yaml')
开发者ID:adanin,项目名称:fuel,代码行数:13,代码来源:test_orchestration.py


注:本文中的fuel_test.manifest.Template类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。