Skip to content

Instantly share code, notes, and snippets.

@spigell
Created December 9, 2017 12:47
Show Gist options
  • Save spigell/2051b103fb32d9368f98137ab8a815b9 to your computer and use it in GitHub Desktop.
Save spigell/2051b103fb32d9368f98137ab8a815b9 to your computer and use it in GitHub Desktop.
1) с vagrant_id
[spigell@hammerhead ~]$ sparrowdo --verbose --vagrant_id=7671ea9
exporting ssh configuration from vagrant machine (id 7671ea9)
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; rm -rf /opt/sparrow/sparrowdo-cache && mkdir -m 777 -p /opt/sparrow/sparrowdo-cache'"
Connection to 127.0.0.1 closed.
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; rm -rf /opt/sparrow/sparrow-cache && \
mkdir -m 777 -p /opt/sparrow/sparrow-cache && \
mkdir -m 777 -p /opt/sparrow/sparrow-cache/plugins && \
mkdir -m 777 -p /opt/sparrow/sparrow-cache/files && \
echo print os | perl -MOutthentic > /opt/sparrow/sparrow-cache/os.txt && \
uname -n > /opt/sparrow/sparrow-cache/hostname.txt'"
Connection to 127.0.0.1 closed.
running sparrow tasks on 127.0.0.1 ...
scp -o ConnectionAttempts=1 -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -F /tmp/ssh_config -r vagrant:/opt/sparrow/sparrow-cache/*.txt /home/spigell/.sparrowdo//opt/sparrow/
hostname.txt 100% 10 9.7KB/s 00:00
os.txt 100% 9 15.4KB/s 00:00
target OS is - archlinux
push [task] install rakudo [plg] rakudo-install OK
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; mkdir -p /opt/sparrow && touch /opt/sparrow/sparrow.list'"
Connection to 127.0.0.1 closed.
SPL file /opt/sparrow/sparrow.list is empty
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; sparrow index update'"
get index updates from SparrowHub ... OK
Connection to 127.0.0.1 closed.
scp -o ConnectionAttempts=1 -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -F /tmp/ssh_config /home/spigell/.sparrowdo//opt/sparrow/task-box.json vagrant:/opt/sparrow/sparrow-cache
task-box.json 100% 227 120.3KB/s 00:00
set up task box file - /home/spigell/.sparrowdo//opt/sparrow/task-box.json - OK
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; sparrow box run /opt/sparrow/sparrow-cache/task-box.json --mode quiet --purge-cache'"
public@rakudo-install is uptodate (0.1.6)
running task box from /opt/sparrow/sparrow-cache/task-box.json ...
2017-12-09 12:00:06 : [task] install rakudo [plg] rakudo-install [path] modules/install/archlinux/ [params] repo:https://spider-mario.quantic-telecom.net/archlinux/$repo/$arch
looks like rakudo already installed, nothing to do here
This is Rakudo version 2017.10 built on MoarVM version 2017.10
implementing Perl 6.c.
ok scenario succeeded
ok text has 'This is Rakudo version'
2017-12-09 12:00:06 : [task] install rakudo [plg] rakudo-install [path] /
done
ok text match /done|not supported/
STATUS SUCCEED
Connection to 127.0.0.1 closed.
2) с ключом --vagrant
[spigell@hammerhead fedora]$ sparrowdo --vagrant --verbose
exporting vagrant ssh configuration from current directory
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; rm -rf /opt/sparrow/sparrowdo-cache && mkdir -m 777 -p /opt/sparrow/sparrowdo-cache'"
Connection to 127.0.0.1 closed.
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; rm -rf /opt/sparrow/sparrow-cache && \
mkdir -m 777 -p /opt/sparrow/sparrow-cache && \
mkdir -m 777 -p /opt/sparrow/sparrow-cache/plugins && \
mkdir -m 777 -p /opt/sparrow/sparrow-cache/files && \
echo print os | perl -MOutthentic > /opt/sparrow/sparrow-cache/os.txt && \
uname -n > /opt/sparrow/sparrow-cache/hostname.txt'"
Connection to 127.0.0.1 closed.
running sparrow tasks on 127.0.0.1 ...
scp -o ConnectionAttempts=1 -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -F /tmp/ssh_config -r vagrant:/opt/sparrow/sparrow-cache/*.txt /home/spigell/.sparrowdo//opt/sparrow/
hostname.txt 100% 22 0.5KB/s 00:00
os.txt 100% 6 0.1KB/s 00:00
target OS is - fedora
push [task] install rakudo [plg] rakudo-install OK
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; mkdir -p /opt/sparrow && touch /opt/sparrow/sparrow.list'"
Connection to 127.0.0.1 closed.
SPL file /opt/sparrow/sparrow.list is empty
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; sparrow index update'"
get index updates from SparrowHub ... OK
Connection to 127.0.0.1 closed.
scp -o ConnectionAttempts=1 -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -F /tmp/ssh_config /home/spigell/.sparrowdo//opt/sparrow/task-box.json vagrant:/opt/sparrow/sparrow-cache
task-box.json 100% 98 262.5KB/s 00:00
set up task box file - /home/spigell/.sparrowdo//opt/sparrow/task-box.json - OK
ssh -o ConnectionAttempts=1 -o ConnectTimeout=5 -F /tmp/ssh_config -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -tt vagrant "sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; sparrow box run /opt/sparrow/sparrow-cache/task-box.json --mode quiet --purge-cache'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment