https://github.com/smartcat-labs/smartcat-ops
Ops scripts and tools
https://github.com/smartcat-labs/smartcat-ops
Last synced: 2 months ago
JSON representation
Ops scripts and tools
- Host: GitHub
- URL: https://github.com/smartcat-labs/smartcat-ops
- Owner: smartcat-labs
- License: apache-2.0
- Created: 2016-01-10T14:56:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T09:36:38.000Z (over 7 years ago)
- Last Synced: 2025-02-07T11:14:35.922Z (4 months ago)
- Language: Shell
- Size: 3.77 MB
- Stars: 3
- Watchers: 22
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smartcat-ops
Ops scripts and tools. Prerequest for OPS scripts is Vagrant and Ansible.
## Mac installation
### Vagrant
Vagrant uses VirtualBox. To install it use homebrew and following command:
```
brew cask install virtualbox
```After that you can install vagrant as well with homebrew:
```
brew cask install vagrant
```### Ansible
After that you need to install Ansible and you are good to go:
```
brew install ansible
```## Provisioning
Provision your virtual machine with following command:
```
ansible-playbook
-i projects/{project_id}/inventory/{environment} projects/{project_id}/layers/{layer}.yml
```Projects may require additional Ansible roles from [Ansible-Galaxy](https://galaxy.ansible.com/) hub. In order
to install those dependencies the following command could be issued:```
ansible-galaxy install -r projects/{project_id}/requirements.yml
```## Folder organization
*Roles* folder consists of reusable roles, each is self contained and from layer you define which set of roles
you want to install for that layer.*Projects* consists of all projects.
*Project* folder has
- files which is placeholder for various files
- inventory folder has inventory for different environments and group vars for different groups
- layers has playbooks for different layers application is using (database, application, web)
- Vagrantfile contain vagrant configuration for virtual machine