PDA

View Full Version : Autoinstall include big files



benibunny
May 27th, 2023, 12:16 AM
I have successfully configured autoinstall. Now I would like to include some files and chown chmod them in the late commands.

I have tried many many variants of the write_files vaiable, but the files were never written. Logfiles said 'skipping modules ... , write_files, ... ‘
Now I tried 'echo content > filename' but this only works for small files. For a 600kb file I end up with the error 'argument list too long'.

What is the way to write a file during autoinstall?
Kind regards

TheFu
May 27th, 2023, 03:04 AM
Might help if you included which OS and version?

We use ansible post-install to configure most things and keep the initial install really trivial ... with just 1 deployment account and ssh. If you are shipping systems to disconnected locations, ansible won't work ... well, not very well, though you can run it locally. Doing that sorta defeats the reason for using a DevOPS tool, right?

benibunny
May 27th, 2023, 02:18 PM
I am using Ubuntu Server 22.04

Maybe also runcmd is an option (if it works)

benibunny
May 29th, 2023, 11:14 PM
I do everything with runcmd now. whoever might come across this thread in the future: don't waste time with write_files in an autoinstall context.

user-data:
runcmd:
- echo "let's get the party going"