Skip to content

Configuration for setting up development and cloud servers for a new internal or client project at Cloudspace

License

Notifications You must be signed in to change notification settings

cloudspace-devops/project-server-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-server-setup

Configuration for setting up development and cloud servers for a new internal or client project at Cloudspace. The repo also contains initial Capistrano deploy setups and a dev environment Vagrantfile you can use as a starting point.

Default Builds

For most projects you can use a default build and then customize as needed. Here are links to download default Vagrant (.box files), Virtualbox (.ovf & .vmdk), and aws (ami listed in .txt file)

Building Custom Packer Images

  1. Copy this repo into your own project.

  2. Set your AWS key/secret as an environment variable

    export AWS_ACCESS_KEY_ID="xxxxxxxxx"
    export AWS_SECRET_ACCESS_KEY="xxxxxxx
    
  3. Edit devops/packer.json to add any needed config files from devops/packer-shell-scripts (Note: The packer-shell-scripts are a git submodule and will needed to be imported with git submodule update.)

  4. Run the build script in the devops directory

    packer build packer.json
    
  5. Use the sample Vagrantfile to launch the vagrant .box file that was created, open the ovf in Virtualbox, or launch your custom AMI on Amazon using the instructions below.

Launching AWS Boxes

  1. Login to the EC2 console with your Amazon IAM account using the IAM login for your client. (For cloudspace use https://cloudspace.signin.aws.amazon.com/console) If you don't have an Amazon IAM user setup, request one from DevOps.
  2. Click "EC2"
  3. Click "Launch Instance"
  4. Find the AMI for your project in my amis or community amis. Usually you will use one of the default builds from https://github.com/cloudspace-devops/packer-image-scripts to start; then create a custom build using packer as needed. If you are sure you can use ami-c8cf3ba0.
  5. Scroll down, select instance size (m1.small is a good start, then move to c3.large as needed) and click "Next: Configure Instance Details"
  6. Normally you can just leave the defaults and click "Next: Add Storage." If you need to set any keys or system jobs, especially with CoreOS, use cloud-init in the User Data field under Advanced Details. See http://cloudinit.readthedocs.org/en/latest/topics/examples.html for more information.
  7. Select your storage site (usually 8GB to start) & volume type (General Purpose SSD is the same price as Magnetic so you should usually select GPSSD), and click "Next: Tag Instance."
  8. Name your instance and click "Next: Configure Security Group"
  9. Create or select your security group. For most Cloudspace projects, select the existing "default" group. Click "Review and Launch."
  10. Scroll down and click "Launch."
  11. Choose an existing keypair or make a new one. For most Cloudspace projects, select the "ops" key pair and check the box acknowledging you have access to the key.
  12. Click "Launch Instances."
  13. Scroll down and click "View Instances."
  14. Grab the public ip of your launched container and toss that in the .env file under the environment you are setting up.

About

Configuration for setting up development and cloud servers for a new internal or client project at Cloudspace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published