コード例 #1
0
ファイル: api.py プロジェクト: globusonline/provision
    def __init__(self, argv, disable_sigintwatch=False):
        Command.__init__(self, argv, disable_sigintwatch=disable_sigintwatch)

        self.optparser.add_option(
            "-m",
            "--domain",
            action="store",
            type="string",
            dest="domain",
            help="Domain that the user will be added to.",
        )

        self.optparser.add_option(
            "-n", "--id", action="store", type="string", dest="id", help="Unique identifier for the new host."
        )

        self.optparser.add_option(
            "-p",
            "--depends",
            action="store",
            type="string",
            dest="depends",
            default=None,
            help="ID of the node (if any) that the new host depends on.",
        )

        self.optparser.add_option(
            "-r",
            "--run-list",
            action="store",
            type="string",
            dest="runlist",
            help="List of Chef recipes or roles to apply to this host.",
        )
コード例 #2
0
ファイル: ec2.py プロジェクト: globusonline/provision
    def __init__(self, argv):
        Command.__init__(self, argv)
        
        self.optparser.add_option("-s", "--chef-directory", 
                                  action="store", type="string", dest="chef_dir", 
                                  help = "Location of Chef files.")        
        
        self.optparser.add_option("-c", "--conf", 
                                  action="store", type="string", dest="conf", 
                                  default = defaults.CONFIG_FILE,
                                  help = "Configuration file. Must include an [ec2] section.") 

        self.optparser.add_option("-a", "--ami", 
                                  action="store", type="string", dest="ami", 
                                  help = "AMI to base the new AMI on.")

        self.optparser.add_option("-n", "--name", 
                                  action="store", type="string", dest="aminame", 
                                  help = "Name of AMI to create")

        self.optparser.add_option("-t", "--instance-type", 
                                  action="store", type="string", dest="instance_type", 
                                  help = "EC2 instance type to use")

        self.optparser.add_option("-g", "--security-groups", 
                                  action="store", type="string", dest="security_groups", 
                                  help = "EC2 security groups to use (comma separated)")
コード例 #3
0
ファイル: api.py プロジェクト: ajyounge/provision
    def __init__(self, argv):
        Command.__init__(self, argv)    

        self.optparser.add_option("-m", "--domain", 
                                  action="store", type="string", dest="domain",
                                  help = "Domain that the user will be added to.")  

        self.optparser.add_option("-l", "--login", 
                                  action="store", type="string", dest="login",
                                  help = "User's UNIX login name")        

        self.optparser.add_option("-p", "--password-hash", 
                                  action="store", type="string", dest="passwd", 
                                  default = "!",
                                  help = "Password hash (default is disabled password)")
        
        self.optparser.add_option("-s", "--ssh-pubkey", 
                                  action="store", type="string", dest="ssh", 
                                  help = "Public SSH key to be added to the new user's authorized_keys file.")        

        self.optparser.add_option("-a", "--admin", 
                                  action="store_true", dest="admin", 
                                  help = "Gives the user sudo privileges.")
        
        self.optparser.add_option("-c", "--certificate", 
                                  action="store", type="string", dest="certificate", 
                                  default = "generated",                                  
                                  help = "Type of certificate. Can be \"generated\" or \"none\" (default is " 
                                         "to generate a certificate for the user)")
コード例 #4
0
    def __init__(self, argv):
        Command.__init__(self, argv)    

        self.optparser.add_option("-m", "--domain", 
                                  action="store", type="string", dest="domain", 
                                  help = "Register only the endpoints in this domain") 

        self.optparser.add_option("-r", "--replace", 
                                  action="store_true", dest="replace", 
                                  help = "If an endpoint already exists, replace it")           
コード例 #5
0
ファイル: api.py プロジェクト: ajyounge/provision
    def __init__(self, argv):
        Command.__init__(self, argv)

        self.optparser.add_option("-x", "--extra-files", 
                                  action="store", type="string", dest="extra_files", 
                                  help = "File with list of files to upload to each host before configuring the instance.")

        self.optparser.add_option("-r", "--run", 
                                  action="store", type="string", dest="run", 
                                  help = "File with list of commands to run on each host after configuring the instance.")
コード例 #6
0
ファイル: api.py プロジェクト: ajyounge/provision
 def __init__(self, argv):
     Command.__init__(self, argv)
     
     self.optparser.add_option("-c", "--conf", 
                               action="store", type="string", dest="conf", 
                               default = defaults.CONFIG_FILE,
                               help = "Configuration file.")
     
     self.optparser.add_option("-t", "--topology", 
                               action="store", type="string", dest="topology",
                               help = "Topology file. Can be either a simple topology file (with extension .conf) "
                                      "or a topology JSON file (with extension .json).")        
コード例 #7
0
ファイル: ec2.py プロジェクト: globusonline/provision
    def __init__(self, argv):
        Command.__init__(self, argv)
        
        self.optparser.add_option("-a", "--ami", 
                                  action="store", type="string", dest="ami", 
                                  help = "AMI to update.")

        self.optparser.add_option("-n", "--name", 
                                  action="store", type="string", dest="aminame", 
                                  help = "Name of new AMI.")

        self.optparser.add_option("-c", "--conf", 
                                  action="store", type="string", dest="conf", 
                                  default = defaults.CONFIG_FILE,
                                  help = "Configuration file. Must include an [ec2] section.") 
        
        self.optparser.add_option("-f", "--files", 
                                  action="store", type="string", dest="files", 
                                  help = "Files to add to AMI")
コード例 #8
0
ファイル: ec2.py プロジェクト: ajyounge/provision
    def __init__(self, argv):
        Command.__init__(self, argv)
        
        self.optparser.add_option("-s", "--chef-directory", 
                                  action="store", type="string", dest="chef_dir", 
                                  help = "Location of Chef files.")        
        
        self.optparser.add_option("-c", "--conf", 
                                  action="store", type="string", dest="conf", 
                                  default = defaults.CONFIG_FILE,
                                  help = "Configuration file. Must include an [ec2] section.") 

        self.optparser.add_option("-a", "--ami", 
                                  action="store", type="string", dest="ami", 
                                  help = "AMI to base the new AMI on.")

        self.optparser.add_option("-n", "--name", 
                                  action="store", type="string", dest="aminame", 
                                  help = "Name of AMI to create")
コード例 #9
0
ファイル: api.py プロジェクト: globusonline/provision
    def __init__(self, argv, disable_sigintwatch=False):
        Command.__init__(self, argv, disable_sigintwatch=disable_sigintwatch)

        self.optparser.add_option(
            "-t", "--topology", action="store", type="string", dest="topology", help="Topology file (JSON format only)"
        )

        self.optparser.add_option(
            "-x",
            "--extra-files",
            action="store",
            type="string",
            dest="extra_files",
            help="File with list of files to upload to each host before configuring the instance.",
        )

        self.optparser.add_option(
            "-r",
            "--run",
            action="store",
            type="string",
            dest="run",
            help="File with list of commands to run on each host after configuring the instance.",
        )
コード例 #10
0
ファイル: api.py プロジェクト: ajyounge/provision
    def __init__(self, argv):
        Command.__init__(self, argv)

        self.optparser.add_option("-m", "--domain", 
                                  action="store", type="string", dest="domain",
                                  help = "Remove hosts from this domain")  
コード例 #11
0
ファイル: api.py プロジェクト: ajyounge/provision
 def __init__(self, argv):
     Command.__init__(self, argv)
コード例 #12
0
ファイル: api.py プロジェクト: globusonline/provision
    def __init__(self, argv, disable_sigintwatch=False):
        Command.__init__(self, argv, disable_sigintwatch=disable_sigintwatch)

        self.optparser.add_option(
            "-m", "--domain", action="store", type="string", dest="domain", help="Remove hosts from this domain"
        )
コード例 #13
0
ファイル: api.py プロジェクト: globusonline/provision
 def __init__(self, argv):
     Command.__init__(self, argv, disable_sigintwatch=True)
コード例 #14
0
ファイル: api.py プロジェクト: globusonline/provision
 def __init__(self, argv, disable_sigintwatch=False):
     Command.__init__(self, argv, disable_sigintwatch=disable_sigintwatch)