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

Custom 'script' is not persisted on Packer and Vagrant doesn´t display them when using Vagrantfile #192

Open
joudaon opened this issue Aug 1, 2020 · 5 comments

Comments

@joudaon
Copy link

joudaon commented Aug 1, 2020

Hello,

Thank for this project.

I have used this code to make an own custom devops environment (https://github.com/joudaon/vagrant-devops).

On the script folder I have added an script devops_tools.sh to install custom software (please see the script on: https://github.com/joudaon/vagrant-devops/blob/master/vagrant/provision/devops_tools.sh). And of course this script has been added to ubuntu.json file.

I want all these programs to be installed on the "box" packer build so that when I create a new Vagrantfile the software is already installed and I don´t have to provision it.

The thing is that when I create a new Vagrantfile and use that box, Ubuntu Destkop doesn´t display that installed software and that's why I have to provision devops_tools.sh on the Vagrant side and not on the Packer.

Any clue why this is happening?

Thank you.

@boxcutter-robot
Copy link

boxcutter-robot commented Aug 1, 2020 via email

@joudaon
Copy link
Author

joudaon commented Aug 1, 2020

Hi @boxcutter-robot I have tried that and didn´t work.

The devops_tools.sh script is run and packer builds box file for vagrant.

But when running, vagrant up none of the tools of that script are present.

Well, I placed devops_tools.sh just after motd.sh script. It must be placed after cleanup.sh?

Thank you.

@boxcutter-robot
Copy link

boxcutter-robot commented Aug 1, 2020 via email

@joudaon
Copy link
Author

joudaon commented Aug 1, 2020

I will try running devops_tools.sh just after cleanup.sh and let you know.

Thank you.

@joudaon
Copy link
Author

joudaon commented Aug 2, 2020

I tried running devops_tools.sh just after cleanup.sh and didn´t work neither... :(

I don´t know how to handle this, it should work and install those programs and they should be available on the base box.

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

No branches or pull requests

2 participants