示例#1
0
文件: eip.py 项目: 9apps/9tk
 def install(self):
     renderArgs = {
         "provides" : "EC2 Elastic IP provisioning",
         "short_description" : "EIP housekeeping",
         "description" : "Associate and disassociate EIP to/from this instance",
         "py_script" : "eip.py",
         "start_args" : "associate",
         "stop_args" : "disassociate"
     }
     initd = Initd(self.INITD_NAME)
     return initd.install(renderArgs)
示例#2
0
文件: volume.py 项目: 9apps/9tk
 def install(self):
     renderArgs = {
         "provides" : "EC2 Volume provisioning",
         "short_description" : "Volume housekeeping",
         "description" : "Mount or umount a given list of volumes to their respective mountpoints",
         "py_script" : "volume.py",
         "start_args" : "mount",
         "stop_args" : "umount"
     }
     initd = Initd(self.INITD_NAME)
     return initd.install(renderArgs)