Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

alibaba-archive/ansible-role-cloudfoundry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#The repository aims to provide some template that can be used to deploy CloudFoundary quickly.

Prepare

  1. Install ansible

    $ sudo pip install ansible
    
  2. Install terraform

    • Download terraform and terraform-provider-alicloud and unarchive them

      $ wget https://releases.hashicorp.com/terraform/0.11.2/terraform_0.11.2_linux_amd64.zip
      $ unzip terraform_0.10.0_linux_amd64.zip
      
    • Build a work directory, such as /root/work/terraform

      $ mkdir -p /root/work/terraform
      
    • Copy terraform package to above directory

      $ mv ./terraform /root/work/terraform/
      $ mv ./bin/terraform-provider-alicloud /root/work/terraform/
      
    • Set PATH

      $ export PATH="/root/work/terraform:$PATH"
      

    ~> NOTE: Above terraform packages only support MAC OS. For more packages, refer to terraform and terraform-provider-alicloud.

Usage

Execute the following command with Alicloud Access Key, Region ID and Domain Name:

$ ansible-playbook -i hosts deploy.yml --extra-vars "alicloud_access_key=XXXXXX alicloud_secret_key=XXXXXX alicloud_region=cn-beijing system_domain=xip.io" -c paramiko

NOTE:

1. You must specify a system domain by 'system_domain' to access to application. System domain is a public subdomian, like `aliyun.com`
2. If you want to delete Alicloud resources, you can set parameter `delete` to `true` in above command.

About

A solution that deploying Bosh and Cloud Foundry quickly based on Terraform and Ansible.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages