Пример #1
0
 def construct_normal(self):
     cloud_init = CloudInit()
     cloud_init.add_ssh_key("chubb")
     cloud_init.set_machine_id("passport")
     cloud_init.set_provider_type("dummy")
     cloud_init.set_zookeeper_machines([
         DummyMachine("blah", "blah", "cotswold"),
         DummyMachine("blah", "blah", "longleat")])
     return cloud_init
Пример #2
0
 def construct_normal(self):
     cloud_init = CloudInit()
     cloud_init.add_ssh_key("chubb")
     cloud_init.set_machine_id("passport")
     cloud_init.set_provider_type("dummy")
     cloud_init.set_zookeeper_machines([
         DummyMachine("blah", "blah", "cotswold"),
         DummyMachine("blah", "blah", "longleat")])
     return cloud_init
Пример #3
0
 def construct_bootstrap(self, with_zookeepers=False):
     cloud_init = CloudInit()
     cloud_init.enable_bootstrap()
     cloud_init.add_ssh_key("chubb")
     cloud_init.set_machine_id("passport")
     cloud_init.set_provider_type("dummy")
     cloud_init.set_instance_id_accessor("token")
     cloud_init.set_zookeeper_secret("seekrit")
     cloud_init.set_juju_source(distro=True)
     if with_zookeepers:
         cloud_init.set_zookeeper_machines([
             DummyMachine("blah", "blah", "cotswold"),
             DummyMachine("blah", "blah", "longleat")])
     return cloud_init