moringaman
1/27/2017 - 4:38 AM

qbox stack template

qbox stack template

provider:
  digitalocean:
    access_token: '${var.digitalocean_access_token}'
resource:
  digitalocean_droplet: 'Qbox-ubuntu'
    # this is the name of your VM
      do-instance: '38297167'
      # and this is its identifier (required)
      name: 'koding-qbox-uk-${var.koding_stack_id}-${count.index+1}'
      # select your instance_type here: eg. 512mb
      size: '512mb'
      # select your instance zone which must be in provided region: eg. nyc2
      region: 'lon1'
      # base image for your droplet
      image: 'ubuntu-14-04-x64'
      # on user_data section we will write bash and configure our VM
      user_data: |-
        # let's create a file on your root folder:
        echo "hello world!" >> /helloworld.txt
        # please note: all commands under user_data will be run as root.
        # now add your credentials and save this stack.
        Username: 'root'
        Password: 'xxxxxxxxxxx'
        # once vm finishes building, you can see this file by typing
        # ls /
        curl https://install.meteor.com/ | sh
        # for more information please use the search box above