https://github.com/cuppilekkia/local-env-setup
https://github.com/cuppilekkia/local-env-setup
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cuppilekkia/local-env-setup
- Owner: cuppilekkia
- Created: 2021-05-02T09:07:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-20T15:43:40.000Z (about 4 years ago)
- Last Synced: 2025-02-02T09:33:22.200Z (4 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install Ansible
#### Linux (Ubuntu only)## Requirements
Before starting the playbook make sure to have:- the npm token created in [KC Auth](https://kc-auth.motork.io/)
- setup an SSH key for your machine on your bitbucket account
- you might also need to install the following
```sh
sudo apt-get install python3-distutils
sudo apt-get install python3-apt
```## Prepare
1. Copy `default.config.yml.example` to -> `default.config.yml`
2. Change the variables in `default.config.yml` according to your setup
3. Launch the setup
```sh
$ chmod +x ./setup-ansible.sh && ./setup-ansible.sh
```
4. [optional] After the setup copy your .ovpn file into `/etc/openvpn` and change the extension to `.conf`## Content of the setup
Main:- Docker (with Docker-compose)
- GIT
- [Java](https://github.com/geerlingguy/ansible-role-java)
- NodeJS & NPM
- Yarn
- ZSH
- Oh my zsh
- Postman
---
APPS:
- Terminator
- OpenVPN
- CTop- Slack
- VSCode
- DataGrip
- PHPStorm
- Goland
- PyCharm- Zoom
- Teams
- Spotify---
TULU: (disabled)- leadspark-tulu repo
- keycloak-themes repo
- NPM_TOKEN exported globally
- Composer auth.json file
- .npmrc file
- `mkvpn` alias to start/stop openvpn service with personal conf
- `kibana`, `keycloak`, `dispatcher` added in hosts as 127.0.0.1
---
AUDIENS:- repos to clone defined in the roles/audiens/vars/main.yml
- sets app.audiens.local in hosts
---
And also as requirements:- curl
- make
- python3-pip
- virtualenv
---
### Helpers
After the firts run you won't need to execute the setup-ansible.sh again everytime you want to update the play, just run the Makefile commands:`make requirements`: Installs the requirements, is a shortcut for:
`$ ansible-galaxy install -r requirements.yml``make install`: Runs the playbook, is a shortcut for:
Run and input the password when asked
`$ ansible-playbook main.yml -i inventory -K`