in lib/muchos/existing.py [0:0]
def setup(self):
config = self.config
print("Setting up {0} cluster".format(config.cluster_name))
self.sync()
conf_upload = path.join(config.deploy_path, "conf/upload")
cluster_tarballs = "{0}/tarballs".format(config.user_home())
self.exec_on_proxy_verified("mkdir -p {0}".format(cluster_tarballs))
for f in listdir(conf_upload):
tarball_path = path.join(conf_upload, f)
if path.isfile(tarball_path) and tarball_path.endswith("gz"):
self.send_to_proxy(tarball_path, cluster_tarballs)
self.execute_playbook("site.yml")