https://github.com/dgapitts/vagrant-centos7-helloworld
Simple hello world style repo to demo base centos7 with provision.sh
https://github.com/dgapitts/vagrant-centos7-helloworld
Last synced: 8 months ago
JSON representation
Simple hello world style repo to demo base centos7 with provision.sh
- Host: GitHub
- URL: https://github.com/dgapitts/vagrant-centos7-helloworld
- Owner: dgapitts
- License: gpl-3.0
- Created: 2019-03-02T21:07:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T22:39:30.000Z (over 7 years ago)
- Last Synced: 2025-01-08T22:38:51.978Z (over 1 year ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Summary
Simple demo project to demo basic vagrant cantos7 VM setup and provisioning via a shell script - in only about 10 lines of code!
## Details - General
For more details please see : https://tinyurl.com/postgres-the-hardway (slides 7-11)
Note the Vagrantfile is slightly more complicated that I would have like because of the Centos/7 box bug/issue - where the work around is too harcode the centos7 box file URL:
```
config.vm.box = "https://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7-x86_64-Vagrant-1804_02.VirtualBox.box"
#config.vm.hostname = "centos7demo"
```
## Details - .gitignore
You don't want to add the following filles
```
~/projects/vagrant-centos7-helloworld# ls .vagrant/machines/default/virtualbox/*
.vagrant/machines/default/virtualbox/action_provision .vagrant/machines/default/virtualbox/id .vagrant/machines/default/virtualbox/synced_folders
.vagrant/machines/default/virtualbox/action_set_name .vagrant/machines/default/virtualbox/index_uuid
.vagrant/machines/default/virtualbox/creator_uid .vagrant/machines/default/virtualbox/private_key
```
so I've added a .gitignore file
```
~/projects/vagrant-centos7-helloworld# cat .gitignore
.vagrant
```