Skip to content

iambowen/microservice-training-lesson-9-deployments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

准备


安装下列工具:

  1. virtualbox
  2. vagrant
  3. ansible

最好都是最新的版本.

provision


with shell


  1. cd shell
  2. 运行 vagrant up --provision-with shell

provision with ansible


  1. cd ansible
  2. 运行 vagrant up --provision-with ansible

provision with puppet


  1. cd puppet
  2. 运行 vagrant up
  3. 运行 vagrant up --provision-with puppet

provision with chef


  1. cd chef
  2. 运行 vagrant up --provision-with chef

cloudformation相关


  1. 创建vpc, aws cloudformation create-stack --stack-name vpc-20170108 --template-body file://aws/cloudformation/template/vpc.json --parameters file://aws/cloudformation/parameters/vpc-params.json

  2. 创建应用, aws cloudformation create-stack --stack-name ciao --template-body file://cloudformation/template/ciao.yml --capabilities CAPABILITY_IAM

  3. immutable asg deployment aws cloudformation update-stack --stack-name ciao --template-body file://cloudformation/template/ciao.yml --capabilities CAPABILITY_IAM

说明


  1. ssh 到vagrant虚拟机,vagrant ssh

参考资料


  1. Ansible Best Practice

  2. Ansible docker module

  3. Chef docker module

  4. Chef best practices

  5. Puppet Best Practices

  6. RPM package example

  7. bash my aws

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published