コード例 #1
0
ファイル: test_single.py プロジェクト: bhuvan/fuel-test
    def prepare_only_site_pp(self):
        manifest = Manifest().generate_openstack_manifest(
                template=Template.single(),
                ci=self.ci(),
                controllers=self.nodes().controllers,
                use_syslog=True,
                quantum=False, quantums=[],
                ha=False, ha_provider='generic',
                cinder=True, cinder_nodes=['all'], swift=False,
        )

        Manifest().write_manifest(remote=self.remote(), manifest=manifest)
コード例 #2
0
ファイル: test_single.py プロジェクト: bhuvan/fuel-test
 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)
コード例 #3
0
ファイル: test_config.py プロジェクト: bhuvan/fuel-test
 def test_generate_single(self):
     print Config().generate(
         ci=self.ci(),
         nodes=[self.nodes().computes[0]],
         template=Template.single())