Browse Source

Initial configuration

master
Jonas Oberg 2 years ago
commit
b959e6c42a
6 changed files with 54 additions and 0 deletions
  1. 8
    0
      LICENSE
  2. 5
    0
      README.md
  3. 2
    0
      ansible.cfg
  4. 1
    0
      hosts
  5. 19
    0
      requirements.txt
  6. 19
    0
      rp.deploy.yml

+ 8
- 0
LICENSE View File

@@ -0,0 +1,8 @@
MIT License
Copyright (c) 2017 Free Software Foundation Europe e.V.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 5
- 0
README.md View File

@@ -0,0 +1,5 @@

## Deploy reverse proxy
```bash
$ ansible-playbook -i hosts rp.deploy.yml
```

+ 2
- 0
ansible.cfg View File

@@ -0,0 +1,2 @@
[defaults]
inventory = hosts

+ 1
- 0
hosts View File

@@ -0,0 +1 @@
lund.fsfeurope.org

+ 19
- 0
requirements.txt View File

@@ -0,0 +1,19 @@
ansible==2.2.1.0
appdirs==1.4.2
cffi==1.9.1
cryptography==1.7.2
enum34==1.1.6
idna==2.4
ipaddress==1.0.18
Jinja2==2.8.1
MarkupSafe==0.23
packaging==16.8
paramiko==2.1.2
proxmoxer==0.2.5
pyasn1==0.2.3
pycparser==2.17
pycrypto==2.6.1
pyparsing==2.2.0
PyYAML==3.12
requests==2.13.0
six==1.10.0

+ 19
- 0
rp.deploy.yml View File

@@ -0,0 +1,19 @@
---
- hosts: lund.fsfeurope.org
remote_user: root

tasks:
- name: build the image
command: docker build -t rp https://git.fsfe.org/jonas/fsfe-rp.git

- name: run the reverse proxy
docker_container:
name: rp
image: rp
state: started
restart: yes
ports:
- "81:80"
- "444:443"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"

Loading…
Cancel
Save