I work in linux based environment where we also need to access some test servers inside our intranet.
To do it, I updated my /etc/hosts entry to let system know "who is who". Inside our team we got also an idea, that we will "build" our .deb packages to ease life of newbies in the company. Idea is to run the .deb and let it do by yourselves.
My task is to provide a .deb package which will provide the /etc/hosts entry to everyone who will run it.
So far I have found augeas tool to programaticvally change the entry. But now, I am clueless how to actually make it happen during the .deb package install.
I can easily make a sh script to install to everyone, so it would be 2 step: Install my deb package and then write name of shell script and actually do it.
What I would like to do is to actually let user just install the deb package with result that /etc/hosts is changed. Any link to documentation how to do it would be appreciated. Thanks.