Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
git clone https://github.com/stenio123/hashicorp-vault-token-auth-poc.git | |
cd hashicorp-vault-token-auth-poc | |
vagrant up |
I hereby claim:
To claim this, I am signing this object:
Dec 29 04:51:57 ip-10-228-0-59 consul[10367]: serf: EventMemberJoin: mongo-i-0889ee9c7bb38e8a1-stenio 10.228.0.59 | |
Dec 29 04:51:57 ip-10-228-0-59 consul[10367]: agent: Joining cluster... | |
Dec 29 04:51:57 ip-10-228-0-59 consul[10367]: manager: No servers available | |
Dec 29 04:51:57 ip-10-228-0-59 consul[10367]: agent: failed to sync remote state: No known Consul servers | |
Dec 29 04:51:57 ip-10-228-0-59 consul[10367]: agent: No EC2 region provided, querying instance metadata endpoint... | |
Dec 29 04:51:58 ip-10-228-0-59 consul[10367]: agent: Discovered 6 servers from EC2... | |
Dec 29 04:51:58 ip-10-228-0-59 consul[10367]: agent: (LAN) joining: [10.228.35.76 10.228.32.92 10.228.5.245 10.228.0.93 10.228.0.59 10.228.34.182] | |
Dec 29 04:51:58 ip-10-228-0-59 consul[10367]: memberlist: Initiating push/pull sync with: 10.228.35.76:8301 | |
Dec 29 04:51:58 ip-10-228-0-59 consul[10367]: serf: EventMemberJoin: mongo-i-061dcfd9ea976915b-stenio 10.228.0.93 | |
Dec 29 04:51:58 ip-10-228-0-59 consul[10367]: serf: EventMemberJoin: consul-i-0e1020f |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: raft: Initial configuration (index=0): [] | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: raft: Node at 10.228.32.92:8300 [Follower] entering Follower state (Leader: "") | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: serf: EventMemberJoin: consul-i-0ada6114c8d15aca7-stenio 10.228.32.92 | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: serf: EventMemberJoin: consul-i-0ada6114c8d15aca7-stenio.dc1 10.228.32.92 | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: consul: Adding LAN server consul-i-0ada6114c8d15aca7-stenio (Addr: tcp/10.228.32.92:8300) (DC: dc1) | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: consul: Adding WAN server consul-i-0ada6114c8d15aca7-stenio.dc1 (Addr: tcp/10.228.32.92:8300) (DC: dc1) | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: agent: Joining cluster... | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: agent: No EC2 region provided, querying instance metadata endpoint... | |
Dec 29 04:50:52 ip-10-228-32-92 consul[10098]: agent: Discovered 6 servers from EC |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
oldContainers="$(docker ps -f "status=exited" | grep -E 'Exited \(.*\) [5-9] h|Exited \(.*\) \d\d h' | awk '{ print $1 }')" | |
echo -e -n "\nRemoving containers older than 4 hours" | |
if [ "$oldContainers" != "" ]; then | |
echo "" | |
docker rm $oldContainers | |
else | |
echo "...none found." | |
fi |
#!/usr/bin/env python | |
import boto3 | |
import argparse | |
class StaleSGDetector(object): | |
""" | |
Class to hold the logic for detecting AWS security groups that are stale. | |
""" | |
def __init__(self, **kwargs): |
# Mount database backend | |
vault mount database | |
# Configure MySQL connection | |
vault write database/config/mysql \ | |
plugin_name=mysql-legacy-database-plugin \ | |
connection_url="vaultadmin:vaultadminpassword@tcp(127.0.0.1:3306)/" \ | |
allowed_roles="readonly" | |
# Create MySQL readonly role |