Esempio n. 1
0
def install(**kwargs):
    command = [
        "wget -qO- https://get.docker.com/ > /tmp/docker_install.sh",
        "sed -i \"s/sh_c='sudo -E sh -c\'/sh_c='sh -c\'/g\" /tmp/docker_install.sh",
        SUDO + "chmod 700 /tmp/docker_install.sh",
        SUDO + "/tmp/docker_install.sh",
        SUDO + "usermod -aG docker {}".format(USERNAME),
        SUDO + "service docker restart"
    ]
    ssh.run_all(command, **kwargs)
Esempio n. 2
0
def status(**kwargs):
    command = [
        SUDO + "service apache2 status"
    ]
    ssh.run_all(command, **kwargs)
Esempio n. 3
0
def install(**kwargs):
    command = [
        SUDO + "apt-get install -y apache2"
    ]
    ssh.run_all(command, **kwargs)
Esempio n. 4
0
def status(**kwargs):
    command = [
        "service docker status",
    ]
    ssh.run_all(command, **kwargs)