Last active
February 20, 2017 04:18
-
-
Save keithrozario/9b468e2ec8da5dfcf0723880a8c6bdf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using DOPY to create/rebuild an image onto a machine | |
https://github.com/Wiredcraft/dopy | |
Using Fabric to run SSH Scripts | |
https://www.digitalocean.com/community/tutorials/how-to-use-fabric-to-automate-administration-tasks-and-deployments | |
Using SSH keys with Fabric | |
http://stackoverflow.com/questions/5327465/using-an-ssh-keyfile-with-fabric | |
FABRIC: http://www.fabfile.org/ | |
Digital Ocean Libraries: https://developers.digitalocean.com/libraries/ | |
Add sudo user via script: | |
http://askubuntu.com/questions/424778/how-do-i-add-a-standard-user-into-sudoers-file-using-echo | |
http://stackoverflow.com/questions/8784761/adding-users-to-sudoers-through-shell-script | |
http://www.craftycomputing.com/run-python-scripts-jenkins/ | |
Current thinking: | |
0. There will be two Repos, one Python Repo to store DOPY/Fabric files to initiate Digital ocean | |
1. Use Jenkins with GitHub integration... | |
-Jenkins is triggered if Python Git Repo is updated; or | |
-Jenkins is triggered if BASH Git Repo is updated | |
2. Jenkins will download Python code into local repo and run.. | |
-run Python script to | |
-Create Droplet in DigitalOcean or; | |
-Rebuild Droplet from standard image (if it exists) | |
-run Fabric | |
-To execute BASH commands via SSH through Fabric | |
-Scripts will clone Bash Repo | |
-Run the Bash Scripts... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment