Exemple #1
0
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(),
    )
Exemple #2
0
def configure_minio(http):
    http.configure(port=hookenv.config('port'),
                   hostname=hookenv.application_name())
Exemple #3
0
def configure_http(http):
    http.configure(port=hookenv.config('http-port'),
                   hostname=hookenv.application_name())