def configure_minio(gipup): if not Path('/run/password').exists(): Path('/run/password').write_text(''.join( choices(ascii_uppercase + digits, k=30))) gipup.publish_info( port=hookenv.config('port'), ip=hookenv.application_name(), user='******', password=Path('/run/password').read_text(), )
def configure_minio(http): http.configure(port=hookenv.config('port'), hostname=hookenv.application_name())
def configure_http(http): http.configure(port=hookenv.config('http-port'), hostname=hookenv.application_name())