This repository has been archived by the owner on Nov 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspacel-agent.yml
111 lines (110 loc) · 2.86 KB
/
spacel-agent.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
name: spacel-agent-{system.release}-{system.architecture}-{provider.virtualization}-{%Y}{%m}{%d}T{%H}{%M}{%S}
provider:
name: ec2
virtualization: hvm
enhanced_networking: simple
description: Debian {system.release} {system.architecture}
bootstrapper:
workspace: /target
include_packages:
- apt-transport-https
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
locale: en_US
timezone: UTC
volume:
backing: ebs
partitions:
type: gpt
root:
filesystem: ext4
size: 8GiB
packages:
mirror: https://cloudfront.debian.net/debian
install_standard: false
trusted-keys:
- /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
- /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
- /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
- /app/manifests/docker.gpg
sources:
docker:
- deb http://apt.dockerproject.org/repo/ debian-jessie main
install:
- dbus
- docker-engine
- python-dbus
- python-pip
- aufs-tools
plugins:
cloud_init:
metadata_sources: Ec2
username: space
groups:
- docker
- systemd-journal
disable_modules:
- byobu
- landscape
- mounts
pip_install:
packages:
- https://github.com/thepwagner/python-systemd/tarball/master#egg=python-systemd-0.1-planning-0
- https://github.com/pebble/spacel-agent/tarball/master#egg=spacel-agent-0.0.1
- https://github.com/pebble/cloudwatch-mon-scripts-python/tarball/master#egg=cloudwatchmon-2.0.4
file_copy:
files:
-
src: /app/manifests/spacel-agent.service
dst: /etc/systemd/system/multi-user.target.wants/spacel-agent.service
permissions: "644"
owner: root
-
src: /app/manifests/scripts/keys
dst: /opt/spacel/keys
permissions: "755"
owner: root
-
src: /app/manifests/sshd_config
dst: /etc/ssh/sshd_config
permissions: "644"
owner: root
-
src: /app/manifests/motd
dst: /etc/motd
permissions: "644"
owner: root
-
src: /app/manifests/developer.sh
dst: /usr/local/bin/developer.sh
permissions: "755"
owner: root
-
src: /app/manifests/cloudwatch-stats.service
dst: /etc/systemd/system/cloudwatch-stats.service
permissions: "644"
owner: root
-
src: /app/manifests/docker.service
dst: /lib/systemd/system/docker.service
permissions: "644"
owner: root
mkdirs:
-
dir: /opt/spacel
permissions: "755"
owner: root
ec2_publish:
manifest_url: https://pebble-amis.s3-us-west-2.amazonaws.com/spacel/latest.json
public: true
regions:
- us-east-1
- eu-west-1
- ap-southeast-1
- sa-east-1
- ap-northeast-1
- ca-central-1