Skip to content

tobias-jimdo/simple-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple proxy with authentication

Configuration

Add a file ansible_extra_vars.yml with the following contents:

---

# for local execution
listen_port: <port the proxy should listen on (e.g. 8080)>
basic_auth_user: <some user to be used for authentication>
basic_auth_password: <some password to use for authentication>

# for AWS execution
region: <an aws region (e.g. us-west-2)>
ec2_key_name: <an ssh key pair present in that region>

Runnig locally

vagrant provision

Running in AWS

export AWS_ACCESS_KEY=<an access key with rights to launch create security groups and launch ec2 instances>
export AWS_SECRET_KEY=<the belonging secret key>

ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook --extra-vars='@ansible_extra_vars.yml' -ilocalhost, provisioning/site.yml

Updating in AWS

Set up the ec2 inventory script as described here.

export AWS_ACCESS_KEY=<an access key with rights to launch create security groups and launch ec2 instances>
export AWS_SECRET_KEY=<the belonging secret key>

ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook --extra-vars='@ansible_extra_vars.yml' -u ubuntu -i ~/src/ansible/plugins/inventory/ec2.py provisioning/node.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published