run etcd as root
All k8s service are runnig under root as well.
Change-Id: Ie69ed76a8f6f91284d1ea539e308ec39523cc07c
diff --git a/etcd/files/systemd/etcd.service b/etcd/files/systemd/etcd.service
index 6414481..9456f93 100644
--- a/etcd/files/systemd/etcd.service
+++ b/etcd/files/systemd/etcd.service
@@ -10,7 +10,6 @@
Environment=ETCD_DATA_DIR=/var/lib/etcd/default
EnvironmentFile=-/etc/default/%p
Type=notify
-User=etcd
PermissionsStartOnly=true
#ExecStart=/bin/sh -c "GOMAXPROCS=$(nproc) /usr/bin/etcd $DAEMON_ARGS"
ExecStart=/usr/local/bin/etcd $DAEMON_ARGS
diff --git a/etcd/server/service.sls b/etcd/server/service.sls
index 35de3f5..3a10146 100644
--- a/etcd/server/service.sls
+++ b/etcd/server/service.sls
@@ -25,13 +25,6 @@
{%- endif %}
{%- endfor %}
-user_etcd:
- user.present:
- - name: etcd
- - shell: /bin/false
- - home: /var/lib/etcd
- - gid_from_name: True
-
/tmp/etcd:
file.directory:
- user: root