def __init__(self, configHolder): configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, configHolder) self._serviceName = 'slapd' self._packages = ['stratuslab-openldap-support'] self._sharepath = '/usr/share/stratuslab/registration-openldap' self._sysconfigLdap = '/etc/sysconfig/ldap' self._sysconfigLdapTemplate = '%s/sysconfig/ldap' % self._sharepath self._testCertCmd = '%s/scripts/generate-self-signed-certificate.sh' % self._sharepath self._certConfigLdif = '%s/ldif/certificates-config.ldif' % self._sharepath self._ldapClientConfig = '/etc/openldap/ldap.conf' self._openLdapConfig = '/etc/openldap/slapd.d/cn=config/olcDatabase={0}config.ldif' self._accessValue = 'olcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * none' self._databaseTemplate = '%s/ldif/cloud-db-defn.ldif' % self._sharepath self._completeDatabaseTemplate = 'cloud-db-defn.ldif' self._cloudDatabaseSkeleton = '%s/ldif/cloud-data.ldif' % self._sharepath self._openLdapAdminDn = 'cn=admin,o=cloud' self._nodename = 'localhost'
def __init__(self, configHolder=ConfigHolder()): self.persistentDiskDbHost = 'localhost' self.configHolder = configHolder self.configHolder.assign(self) self.profile = None # Can be frontend or node self.system = SystemFactory.getSystem(self.persistentDiskSystem, self.configHolder) # Package to be installed self.packages = {'frontend': { 'pdisk': ['stratuslab-pdisk-server', ], 'iscsi': ['scsi-target-utils', 'iscsi-initiator-utils'], 'nfs': ['nfs-utils', 'nfs-utils-lib'], 'lvm': ['lvm2', ], 'file': ['qemu-img'], }, 'node': { 'pdisk': ['stratuslab-pdisk-host', ], 'iscsi': ['iscsi-initiator-utils', ], 'nfs': ['nfs-utils', 'nfs-utils-lib'], 'lvm': [], 'file': [], }, } self.pdiskConfigBackendTpl = Util.get_template_file([self.PDISK_BACKEND_CONF_NAME + '.tpl']) self.authnConfigFile = Defaults.AUTHN_CONFIG_FILE self.pdiskConfigFile = os.path.join(Defaults.ETC_DIR, 'pdisk.cfg') self.pdiskHostConfigFile2 = os.path.join(Defaults.ETC_DIR, 'pdisk-host.conf') self.pdiskHomeDir = '/opt/stratuslab/storage/pdisk' self.cloudNodeKey = os.path.join(self.pdiskHomeDir, 'cloud_node.key') self.pdiskUsername = '******' self.pdiskPassword = self._extractPdiskPassword()
def __init__(self, configHolder): configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, configHolder) self._pkgs = ['libcouchbase2-libevent', 'libcouchbase-devel'] self._deps = ['python-pip', 'gcc'] self._repofile = '/etc/yum.repos.d/couchbase.repo' self._repourl = 'http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo'
def __init__(self, configHolder): configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, configHolder) self._pkgs = ["libcouchbase2-libevent", "libcouchbase-devel"] self._deps = ["python-pip", "gcc"] self._repofile = "/etc/yum.repos.d/couchbase.repo" self._repourl = "http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo"
def __init__(self, configHolder): configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, configHolder) self._serviceName = 'couchbase-server' self._packages = ['couchbase-server'] self._cb_cluster_username = '******' self._cb_cluster_password = CouchbaseServer._generate_password() self._cb_cluster_password_path = '/opt/couchbase/cluster-password.txt'
def __init__(self, configHolder=ConfigHolder()): self.configHolder = configHolder self.configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, self.configHolder) self.runtime = datetime.datetime.now() self._setDefaultConfiguration() self._setFirewallConfiguration() self._setSudoConfiguration() self._setCloudConfiguration()
def __init__(self, configHolder=ConfigHolder()): self.configHolder = configHolder self.configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, configHolder) self.packages = ['lighttpd', 'rubygem-json', 'ruby-sqlite3'] self.ruby_gems = ['sinatra'] self.sunstone_cfg = '/etc/one/sunstone-server.conf' self.lighttpd_cfg = '/etc/lighttpd/lighttpd.conf' self.lighttpd_cert = '/etc/lighttpd/server.pem'
def _setFrontendSystem(self): if not self.frontendIp or self.frontendIp == "127.0.0.1": printWarning("frontend_ip configuration parameter is %s, this is very likely not to work" % self.frontendIp) self.frontend = SystemFactory.getSystem(self.frontendSystem, self.configHolder)
def __init__(self, configHolder): configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, configHolder) self.packages = ['stratuslab-consolidation']
def __init__(self, configHolder): configHolder.assign(self) self.system = SystemFactory.getSystem(self.frontendSystem, configHolder) self._serviceName = 'cimi' self._package = 'stratuslab-cimi-server'
def _setNodeSystem(self): if self.nodeAddr: self.node = SystemFactory.getSystem(self.nodeSystem, self.configHolder) self.node.workOnNode()