replace createhome (#9314)

This commit is contained in:
Samuel Liu 2022-09-23 15:26:39 +08:00 committed by GitHub
parent 1b3c2dab2e
commit d387d4811f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

View file

@ -7,13 +7,13 @@ addusers:
etcd: etcd:
name: etcd name: etcd
comment: "Etcd user" comment: "Etcd user"
createhome: no create_home: no
system: yes system: yes
shell: /sbin/nologin shell: /sbin/nologin
kube: kube:
name: kube name: kube
comment: "Kubernetes user" comment: "Kubernetes user"
createhome: no create_home: no
system: yes system: yes
shell: /sbin/nologin shell: /sbin/nologin
group: "{{ kube_cert_group }}" group: "{{ kube_cert_group }}"
@ -24,4 +24,4 @@ adduser:
comment: "{{ user.comment|default(None) }}" comment: "{{ user.comment|default(None) }}"
shell: "{{ user.shell|default(None) }}" shell: "{{ user.shell|default(None) }}"
system: "{{ user.system|default(None) }}" system: "{{ user.system|default(None) }}"
createhome: "{{ user.createhome|default(None) }}" create_home: "{{ user.create_home|default(None) }}"

View file

@ -7,7 +7,7 @@
- name: User | Create User - name: User | Create User
user: user:
comment: "{{ user.comment|default(omit) }}" comment: "{{ user.comment|default(omit) }}"
createhome: "{{ user.createhome|default(omit) }}" create_home: "{{ user.create_home|default(omit) }}"
group: "{{ user.group|default(user.name) }}" group: "{{ user.group|default(user.name) }}"
home: "{{ user.home|default(omit) }}" home: "{{ user.home|default(omit) }}"
shell: "{{ user.shell|default(omit) }}" shell: "{{ user.shell|default(omit) }}"

View file

@ -5,4 +5,4 @@ addusers:
shell: /sbin/nologin shell: /sbin/nologin
system: yes system: yes
group: "{{ kube_cert_group }}" group: "{{ kube_cert_group }}"
createhome: no create_home: no

View file

@ -2,14 +2,14 @@
addusers: addusers:
- name: etcd - name: etcd
comment: "Etcd user" comment: "Etcd user"
createhome: yes create_home: yes
home: "{{ etcd_data_dir }}" home: "{{ etcd_data_dir }}"
system: yes system: yes
shell: /sbin/nologin shell: /sbin/nologin
- name: kube - name: kube
comment: "Kubernetes user" comment: "Kubernetes user"
createhome: no create_home: no
system: yes system: yes
shell: /sbin/nologin shell: /sbin/nologin
group: "{{ kube_cert_group }}" group: "{{ kube_cert_group }}"

View file

@ -2,14 +2,14 @@
addusers: addusers:
- name: etcd - name: etcd
comment: "Etcd user" comment: "Etcd user"
createhome: yes create_home: yes
home: "{{ etcd_data_dir }}" home: "{{ etcd_data_dir }}"
system: yes system: yes
shell: /sbin/nologin shell: /sbin/nologin
- name: kube - name: kube
comment: "Kubernetes user" comment: "Kubernetes user"
createhome: no create_home: no
system: yes system: yes
shell: /sbin/nologin shell: /sbin/nologin
group: "{{ kube_cert_group }}" group: "{{ kube_cert_group }}"