2016-05-22 22:25:52 +00:00
|
|
|
---
|
|
|
|
addusers:
|
|
|
|
etcd:
|
2016-12-28 13:58:37 +00:00
|
|
|
name: "{{ etcd_user }}"
|
2016-05-22 22:25:52 +00:00
|
|
|
comment: "Etcd user"
|
2016-12-28 13:58:37 +00:00
|
|
|
createhome: >-
|
|
|
|
{% if ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] %}no{% else %}yes{% endif %}
|
2016-05-22 22:25:52 +00:00
|
|
|
home: "/var/lib/etcd"
|
|
|
|
system: yes
|
2016-12-28 13:58:37 +00:00
|
|
|
shell: /usr/sbin/nologin
|
|
|
|
group: "{{ etcd_group }}"
|
|
|
|
groups: "{{ etcd_cert_group }}"
|
|
|
|
type: >-
|
|
|
|
{% if ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] %}cloud-init{% endif %}
|
2016-05-22 22:25:52 +00:00
|
|
|
kube:
|
2016-12-28 13:58:37 +00:00
|
|
|
name: "{{ kubelet_user }}"
|
2016-05-22 22:25:52 +00:00
|
|
|
comment: "Kubernetes user"
|
2016-12-28 13:58:37 +00:00
|
|
|
shell: /usr/sbin/nologin
|
2016-05-22 22:25:52 +00:00
|
|
|
system: yes
|
2016-12-28 13:58:37 +00:00
|
|
|
group: "{{ kubelet_group }}"
|
|
|
|
groups: "{{ etcd_cert_group }},{{ kube_cert_group }}"
|
2016-05-22 22:25:52 +00:00
|
|
|
createhome: no
|
2016-12-28 13:58:37 +00:00
|
|
|
netplug:
|
|
|
|
name: "{{ netplug_user }}"
|
|
|
|
comment: "Network plugin user"
|
|
|
|
createhome: no
|
|
|
|
system: yes
|
|
|
|
shell: /usr/sbin/nologin
|
|
|
|
group: "{{ netplug_group }}"
|
|
|
|
groups: "{{ etcd_cert_group }}"
|
2016-05-22 22:25:52 +00:00
|
|
|
|
|
|
|
adduser:
|
|
|
|
name: "{{ user.name }}"
|
|
|
|
group: "{{ user.name|default(None) }}"
|
2016-12-28 13:58:37 +00:00
|
|
|
groups: "{{ user.groups|default(None) }}"
|
2016-05-22 22:25:52 +00:00
|
|
|
comment: "{{ user.comment|default(None) }}"
|
|
|
|
shell: "{{ user.shell|default(None) }}"
|
|
|
|
system: "{{ user.system|default(None) }}"
|
|
|
|
createhome: "{{ user.createhome|default(None) }}"
|
2016-12-28 13:58:37 +00:00
|
|
|
type: "{{ user.type|default(None) }}"
|