-
Notifications
You must be signed in to change notification settings - Fork 54
/
jupiter-brain.yml
36 lines (36 loc) · 1.19 KB
/
jupiter-brain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
description: Jupiter Brain image
variables:
aws_access_key: "{{ env `AWS_ACCESS_KEY` }}"
aws_secret_key: "{{ env `AWS_SECRET_KEY` }}"
subnet_id: "{{ env `JUPITER_BRAIN_SUBNET_ID` }}"
vpc_id: "{{ env `JUPITER_BRAIN_VPC_ID` }}"
jupiter_brain_binary: "{{ env `JUPITER_BRAIN_BINARY` }}"
builders:
- type: amazon-ebs
access_key: "{{ user `aws_access_key` }}"
secret_key: "{{ user `aws_secret_key` }}"
region: us-east-1
source_ami: ami-8e0b9499
ami_name: travis-ci-jupiter-brain {{ isotime "2006-01-02 15:04:06" | clean_ami_name }} <%= git_desc %>
instance_type: t2.micro
ssh_username: jupiterbrain
ami_virtualization_type: hvm
tags:
role: jupiter-brain
associate_public_ip_address: true
subnet_id: "{{ user `subnet_id` }}"
vpc_id: "{{ user `vpc_id` }}"
provisioners:
- type: file
source: "{{ user `jupiter_brain_binary` }}"
destination: "/tmp/jb-server"
- type: file
source: packer-assets/jupiter-brain.conf
destination: "/tmp/jupiter-brain.conf"
- type: shell
inline:
- sudo mv /tmp/jb-server /usr/local/bin/jb-server
- sudo chmod 755 /usr/local/bin/jb-server
- sudo mv /tmp/jupiter-brain.conf /etc/init/jupiter-brain.conf
- sudo touch /etc/default/jupiter-brain