swarm-manager.service does not support enable as a command

Change-Id: I197ef53fc8b5d59efd793bc925a516b9d265427e
This commit is contained in:
Tong Li 2016-08-19 10:39:28 -04:00 committed by litong01
parent 5f51d55632
commit 85b502c8ce
1 changed files with 0 additions and 2 deletions

2
terraform/dockerswarm-coreos/templates/cloud-init Normal file → Executable file
View File

@ -9,7 +9,6 @@ coreos:
- name: docker.service
command: start
- name: swarm-agent.service
command: enable
content: |
[Unit]
Description=swarm agent
@ -24,7 +23,6 @@ coreos:
ExecStart=/bin/sh -c "/usr/bin/docker run --rm --name swarm-agent swarm:${swarm_version} join --addr=$COREOS_PRIVATE_IPV4:2376 etcd://$COREOS_PRIVATE_IPV4:2379/docker"
ExecStop=/usr/bin/docker stop swarm-agent
- name: swarm-manager.service
command: enable
content: |
[Unit]
Description=swarm manager