2023-11-13 09:33:28 -05:00
|
|
|
{#
|
|
|
|
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#}
|
|
|
|
|
|
|
|
{% if grains['nodename'] != 'dom0' -%}
|
|
|
|
|
|
|
|
"{{ slsdotpath }}-minion-start-sshd":
|
|
|
|
file.managed:
|
2023-12-19 16:50:59 -05:00
|
|
|
- name: /rw/config/rc.local.d/50-ansible.rc
|
|
|
|
- source: salt://{{ slsdotpath }}/files/client/rc.local.d/50-ansible.rc
|
2023-11-13 09:33:28 -05:00
|
|
|
- mode: '0755'
|
|
|
|
- user: root
|
|
|
|
- group: root
|
2023-12-19 16:50:59 -05:00
|
|
|
- makedirs: True
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
"{{ slsdotpath }}-minion-ssh-authorized_keys":
|
|
|
|
file.touch:
|
|
|
|
- name: /home/user/.ssh/authorized_keys
|
|
|
|
- dir_mode: '0700'
|
|
|
|
- file_mode: '0600'
|
|
|
|
- user: user
|
|
|
|
- group: user
|
|
|
|
- makedirs: True
|
|
|
|
|
|
|
|
{% endif -%}
|