This file contains hidden or 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
| { | |
| "family": "my-ecs-task", | |
| "placementConstraints": [], | |
| "volumes": [ | |
| { | |
| "host": { | |
| "sourcePath": "/mnt/efs/dir1" | |
| }, | |
| "name": "uploads" | |
| }, |
This file contains hidden or 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
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: > | |
| AWS CloudFormation template to create a new VPC | |
| or use an existing VPC for ECS deployment | |
| in Create Cluster Wizard | |
| Parameters: | |
| EcsClusterName: | |
| Type: String | |
| Description: > | |
| Specifies the ECS Cluster Name with which the resources would be |
This file contains hidden or 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
| # Your ubuntu user | |
| TARGET_USER="me" | |
| # Your X Display | |
| export DISPLAY=:0.0 | |
| grep "autologin" /etc/lightdm/lightdm.conf || sudo /bin/bash -c 'echo -e "autologin-user=$TARGET_USER\nautologin-timeout=0" >> /etc/lightdm/lightdm.conf' | |
| gsettings set org.gnome.Vino enabled true | |
| gsettings set org.gnome.Vino prompt-enabled false |
This file contains hidden or 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
| <script type="text/javascript"> | |
| if (top.frames.length!=0) | |
| top.location=self.document.location; | |
| </script> |
This file contains hidden or 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
| namespace :bootstrap do | |
| task :default do | |
| system("knife bootstrap -d chef-solo -x #{user} --sudo #{server_ip}") | |
| end | |
| end |
This file contains hidden or 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
| bash -c ' | |
| <%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> | |
| exists() { | |
| if command -v $1 &>/dev/null | |
| then | |
| return 0 | |
| else | |
| return 1 | |
| fi |
This file contains hidden or 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
| namespace :chef do | |
| task :default do | |
| # Tar up Chef Cookbooks and Roles | |
| system("tar czf 'chef.tar.gz' -C chef/ .") | |
| # Upload | |
| upload("chef.tar.gz","/home/#{user}",:via => :scp) | |
| # Remove existing Chef dir to avoid conflicts... | |
| run("rm -rf /home/#{user}/chef") | |
| run("mkdir -p /home/#{user}/chef") | |
| # Untar new Chef Cookbooks and Rols |
This file contains hidden or 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
| set :chef_binary, "/usr/bin/chef-solo" | |
| set :user, "atomic" | |
| server "10.0.0.5", :chef, :no_release => :true | |
| set :server_ip, "10.0.0.5" |
This file contains hidden or 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
| { "run_list": [ "role[mysql]" ] } |
This file contains hidden or 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
| root = File.absolute_path(File.dirname(__FILE__)) | |
| file_cache_path root | |
| cookbook_path root + '/cookbooks' | |
| role_path root + '/roles' |
NewerOlder