Commit Graph

14 Commits

Author SHA1 Message Date
Bruno Tavares
caa3a7378b Allocates a tty when deploying to allow full fledge interaction
To have some interactions on the script we need to allocate a tty. This
adds a pseudo-tty to the ssh session.

This enables `read -s` on deployment scripts.
2015-09-26 23:44:25 -03:00
Bruno Tavares
a7daca90dd Fix prompt when executing the deployment with the password
`sudo -S` reads the password from stdin. The way it was it was executing
the deploy script with the password as the stdin of the pipe.

Now, when password is passed as an argument we aquire a sudo session
executing a command that always work and then prefixing the installation
with sudo.
2015-09-26 23:35:05 -03:00
Bruno Tavares
41cf8f98bf Allows deployment scripts to be interactive
Previously, because we were piping the compiled script blob over ssh to
decompress over there without creating an intermediated bundled file, we
were allocating the stdin of the ssh session to have the read from the
pipe.

This blocked the allocation of the /dev/tty over the session and
prevented users to interact with the script. We would like some of the
interactions to work, like prompting for a confirmation or typing a
password.

To fix this, the deployment process was split in two steps. The first
step still receives the bundled file over a pipe, decompresses it on a
temprary folder, and outputs the location of the deployment folder.

We grab this output to feed on the second step, which has a script to go
to the deployment folder and start the execution.

Now, roles can make use of read, as well as sudo with password.
2015-09-26 22:36:18 -03:00
Bruno Tavares
c68cbaeee8 Ensures that we execute the deployment using bash 2015-09-26 00:51:33 -03:00
Bruno Tavares
6149a4a8e1 Wraps deploy script execution on to prevent partial execution if it is terminated before finished transfering 2015-09-26 00:51:19 -03:00
Bruno Tavares
f516cc2dac Renames variable on deployment script to not confuse with deployment host target 2015-09-26 00:32:34 -03:00
Rogério Chaves
7cff074e95 Remove double quotes from ssh target 2015-09-25 20:12:01 -03:00
Bruno Tavares
08a4e1ac77 Reports the deployment execution status 2015-06-26 12:14:22 -03:00
Bruno Tavares
25069f4877 Lints the executable scripts 2015-05-20 17:16:16 -03:00
Bruno Tavares
5bdabf6556 Deploy kickstart on a tmp folder 2014-03-19 18:23:28 -03:00
Bruno Tavares
b783772864 Add support to send password on deploy 2014-02-21 21:27:32 -03:00
Bruno Tavares
57b73e88fd Add support to debug 2014-02-21 21:14:39 -03:00
Bruno Tavares
47e692b57f Support running with sudo 2014-02-21 15:59:46 -03:00
Bruno Tavares
fcfd9c516e Introduce kickstart deploy 2014-02-20 13:19:43 -03:00