1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00

add fleet.service

This commit is contained in:
kev 2015-10-01 03:56:42 +08:00
parent 5f4c8af492
commit d57f056447
4 changed files with 46 additions and 1 deletions

@ -0,0 +1 @@
FLEET_METADATA="region=us-west,az=us-west-1"

@ -0,0 +1,34 @@
# This config file is INI-formatted
# Lower the logging threshold. Acceptable values are 0, 1, and 2. A higher
# value corresponds to a lower logging threshold.
# verbosity=0
# Provide a custom set of etcd endpoints. The default value is determined
# by the underlying go-etcd library.
# etcd_servers=["http://127.0.0.1:4001", "http://127.0.0.1:2379"]
# Amount of time in seconds to allow a single etcd request before considering it failed.
# etcd_request_timeout=1.0
# Provide TLS configuration when SSL certificate authentication is enabled in etcd endpoints
# etcd_cafile=/path/to/CAfile
# etcd_keyfile=/path/to/keyfile
# etcd_certfile=/path/to/certfile
# IP address that should be published with any socket information. By default,
# no IP address is published.
# public_ip=""
# Comma-delimited key/value pairs that are published to the fleet registry.
# This data can be referenced in unit files to affect scheduling decisions.
# An example could look like: metadata="region=us-west,az=us-west-1"
# metadata=""
# An Agent will be considered dead if it exceeds this amount of time to
# communicate with the Registry. The agent will attempt a heartbeat at half
# of this value.
# agent_ttl="30s"
# Interval at which the engine should reconcile the cluster schedule in etcd.
# engine_reconcile_interval=2

@ -3,7 +3,7 @@ Description=Etcd Daemon
After=network.target
[Service]
EnvironmentFile=/etc/default/etcd
EnvironmentFile=-/etc/default/etcd
ExecStartPre=/usr/bin/mkdir -p $ETCD_DATA_DIR
ExecStart=/usr/local/bin/etcd

@ -0,0 +1,10 @@
[Unit]
Description=Fleet Daemon
After=etcd.service
[Service]
EnvironmentFile=-/etc/default/fleet
ExecStart=/usr/local/bin/fleetd
[Install]
WantedBy=multi-user.target