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

Create a readme for this project #5

Open
DanRoeSparks opened this issue Oct 12, 2018 · 4 comments
Open

Create a readme for this project #5

DanRoeSparks opened this issue Oct 12, 2018 · 4 comments
Labels
enhancement New feature or request Hacktoberfest

Comments

@DanRoeSparks
Copy link
Owner

DanRoeSparks commented Oct 12, 2018

I thought it might be nice to have some more ansible/vagrant-related hacktoberfest issues for people to have a go at.

For this one, just add a readme explaining how to run the code, any prerequisites (e.g. ansible, python, vagrant) and so on.

Might be nice to link/give credit to the various roles used in this project, too.

There's a basic one here https://github.com/DanRoeSparks/jenkins-vagrant/blob/master/README.md to get you started

@DanRoeSparks DanRoeSparks added enhancement New feature or request Hacktoberfest labels Oct 12, 2018
@ksandhu16
Copy link

Can I work on this !

@DanRoeSparks
Copy link
Owner Author

Hi there, absolutely, yes!

@ksandhu16
Copy link

Can you please elaborate more on the readme file, about how the code should be run ?

@DanRoeSparks
Copy link
Owner Author

DanRoeSparks commented Oct 30, 2018

Normally for Ansible you'd run a command like (at the most basic):

ansible-playbook site.yml

(See https://docs.ansible.com/ansible/2.5/user_guide/playbooks_intro.html#executing-a-playbook for more info)

However, because we're using it as a provisioner for Vagrant, all we need to do here is run the standard Vagrant commands, e.g.:

vagrant up - creates a new vagrant box and runs through the provisioning steps in the Vagrant file
vagrant provision - runs the provisioning steps against an existing Vagrant VM
vagrant suspend - shuts down the vm and saves state
vagrant resume - resumes running a previously saved VM
vagrant destroy - shuts down and removes a Vagrant VM

You can add the --provision flag to any vagrant up/resume to force a reprovisioning of the machine.

For info on how Vagrant and Ansible work together, see:

https://docs.ansible.com/ansible/2.5/scenario_guides/guide_vagrant.html
https://www.vagrantup.com/docs/provisioning/ansible.html

And again, have a look at https://github.com/DanRoeSparks/jenkins-vagrant/blob/master/README.md for a basic example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants