Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add an arbitrary file to the build. #63

Open
ANDRIUS-D-ILGUNAS opened this issue Mar 27, 2017 · 1 comment
Open

Feature Request: Add an arbitrary file to the build. #63

ANDRIUS-D-ILGUNAS opened this issue Mar 27, 2017 · 1 comment

Comments

@ANDRIUS-D-ILGUNAS
Copy link

I didn't find an issue/request/comment that's similar to my request, so if I'm duplicating, could I ask you to please point me in the right direction?

I'm hoping to include rsa keys with my build so that I could then transfer my config files securely from a server on my local network. Then I could use the 'Run a command block' to either git clone or use some other transfer mechanism using an authenticated user.

OR, another approach would be to include these config files with the build and then do something like:

for h in `ls /home/*`; 
do cp <source-location-where?>/vimconfigs.tgz /home/$h && tar -xzf /home/$h/vimconfigs.tgz

Whether it's an rsa key, or the config files, the core of this request is: can I include an arbitrary file with the build? If so, might you have any pointers on how to do that?

Or better still, maybe point me to the block that does this already. I'd be happy to try to write my own block, but I have no idea as to how include an arbitrary file to the build. Any references on how to do that would be highly appreciated.

@ANDRIUS-D-ILGUNAS
Copy link
Author

ANDRIUS-D-ILGUNAS commented Mar 27, 2017

Oh, I forgot to mention: I do see the 'Add public SSH key for authentication' that would allow me to ssh into the RPI.

This request, however, is the inverse: to allow me to run a command whereby either root or the pi user can ssh/sftp out, authenticate, and fetch a file (e.g. git clone ssh://user@local-repo-keeper/vimconfig.git .vim)

But in order for me to ssh out, I need to include my rsa key with the build. And if I'm including an rsa key, I might as well be including the config files and thereby eliminating the need to ssh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants