Compare commits
1 Commits
readme
...
dockerbox_
Author | SHA1 | Date | |
---|---|---|---|
03f0b41ae6 |
35
README.md
35
README.md
@@ -1,39 +1,25 @@
|
|||||||
# Homelab
|
# Project Moxie
|
||||||
This repository contains Ansible to automate Debian GNU/Linux servers, deploying
|
|
||||||
server technologies that are either useful in a personal capacity or provide
|
|
||||||
educational value on automating enterprise infrastructure.
|
|
||||||
|
|
||||||
Development is accomplished using Vagrant to allow easy reproducibility in an
|
Project Moxie is a personal IT homelab project written in Ansible and executed by Jenkins. It is a growing collection of infrastructure as code (IaC) I write out of curiosity and for reference purposes, keeping a handful of beneficial projects managed and secured.
|
||||||
isolated virtual environment that be ran on your local machine.
|
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
These steps assume a basic understanding of GNU/Linux, Hypervisors, Vagrant, and Ansible.
|
|
||||||
|
To configure a local virtual machine for testing, follow these simple steps.
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
- [Vagrant](https://developer.hashicorp.com/vagrant/docs/installation)
|
|
||||||
- [Supported hypervisor](https://developer.hashicorp.com/vagrant/docs/providers)
|
Vagrant and VirtualBox are used to develop Project Moxie. You will need to install these before continuing.
|
||||||
- Ansible
|
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
1. Clone this repository
|
1. Clone this repository
|
||||||
```
|
```
|
||||||
git clone https://git.krislamo.org/kris/homelab
|
git clone https://github.com/krislamo/moxie
|
||||||
```
|
|
||||||
OR download from the mirror on GitHub:
|
|
||||||
```
|
|
||||||
git clone https://github.com/krislamo/homelab
|
|
||||||
```
|
```
|
||||||
|
2. Set the `PLAYBOOK` environmental variable to a development playbook name in the `dev/` directory
|
||||||
|
|
||||||
2. Find available playbooks for development
|
The following `PLAYBOOK` names are available: `dockerbox`, `hypervisor`, `minecraft`, `bitwarden`, `nextcloud`, `nginx`
|
||||||
```
|
|
||||||
cd homelab
|
|
||||||
```
|
|
||||||
```
|
|
||||||
find dev -maxdepth 1 -name "*.yml" -exec basename {} .yml \;
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Set the `PLAYBOOK` environmental variable to a value listed in the last step, e.g.,
|
|
||||||
```
|
```
|
||||||
export PLAYBOOK=dockerbox
|
export PLAYBOOK=dockerbox
|
||||||
```
|
```
|
||||||
@@ -43,10 +29,11 @@ These steps assume a basic understanding of GNU/Linux, Hypervisors, Vagrant, and
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Copyright and License
|
#### Copyright and License
|
||||||
Copyright (C) 2020-2022 Kris Lamoureux
|
Copyright (C) 2020-2021 Kris Lamoureux
|
||||||
|
|
||||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||||
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
@@ -8,7 +8,6 @@
|
|||||||
- docker
|
- docker
|
||||||
- traefik
|
- traefik
|
||||||
- nextcloud
|
- nextcloud
|
||||||
- gitea
|
|
||||||
- jenkins
|
- jenkins
|
||||||
- prometheus
|
- prometheus
|
||||||
- nginx
|
- nginx
|
||||||
|
@@ -1,17 +1,3 @@
|
|||||||
# Copyright (C) 2020 Kris Lamoureux
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, version 3 of the License.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
- name: Install Docker Box Server
|
- name: Install Docker Box Server
|
||||||
hosts: dockerhosts
|
hosts: dockerhosts
|
||||||
become: true
|
become: true
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
- name: Reboot host
|
- name: Reboot host
|
||||||
reboot:
|
ansible.builtin.reboot:
|
||||||
msg: "Reboot initiated by Ansible"
|
msg: "Reboot initiated by Ansible"
|
||||||
connect_timeout: 5
|
connect_timeout: 5
|
||||||
listen: reboot_host
|
listen: reboot_host
|
||||||
|
Reference in New Issue
Block a user